ntfreak [Wed, 9 Jan 2008 15:58:01 +0000 (15:58 +0000)]
- rename flash_init and flash_erase to flash_init_drivers and flash_erase_address_range - stops conflicts with redboot. Thanks Øyvind Harboe
- gdb connection not dropped if we fail to allocate memory in query packets
ntfreak [Sat, 29 Dec 2007 13:51:48 +0000 (13:51 +0000)]
- minimum autoconf 2.59 is now required and verified - due to issues with AS_HELP_STRING
- native win32 now handles WSAECONNRESET - no longer exits openocd
- qCRC packet now works correctly under cygwin (gdb compare-sections command)
- removed __USE_GNU define from gdbserver.c
- gdb qSupported packet is now handled, with this we are able to tell gdb packet size, memory map of target
- added new target script gdb_program_config - called before gdb flash programming
- new gdb server command gdb_memory_map (enable|disable> - default is disable
- new gdb server command gdb_flash_program (enable|disable> - default is disable
- gdb flash programming supported - vFlash packets
- image_elf_read_section now does not clear any remaining data, this was causing the gdb checksum to fail with certain files
- reformat of usbprog.c
- memory leak in command_print fixed
- updated texi doc to include new commands
- added gdb programming section to docs
ntfreak [Thu, 20 Dec 2007 16:19:10 +0000 (16:19 +0000)]
- removed flash write_image - binary compare function has been moved to verify_image command
- minor code reformat and cleanup
- updated docs to include new commands
mifi [Tue, 18 Dec 2007 21:20:28 +0000 (21:20 +0000)]
- added patch for new flash functionality like:
flash verify_image and flash erase_address.
- added patch for new parport_write_on_exit command.
Even this patch will fix some memory leaks.
mifi [Mon, 17 Dec 2007 20:52:37 +0000 (20:52 +0000)]
- fixed relocation problems with image loading. Relocation is handled
in a single centralized place, and it now works for binaries.
(thanks to oyvind Harboe)
mifi [Mon, 17 Dec 2007 17:00:24 +0000 (17:00 +0000)]
The changes allows the "script" command to be used from within
config scripts to run sub-config scripts, which was probably the
original intention because "script" is registered as COMMAND_ANY.
This can be useful in e.g. splitting CPU and flash config scripts.
mifi [Sun, 16 Dec 2007 18:58:16 +0000 (18:58 +0000)]
- removed some compiler warnings
- added patch to fix problem in cfi_intel_write_block. In case of
cfi_info->write_algorithm is not NULL, target_code_size was not set.
(thanks to oyvind Harboe for the patch)
mifi [Fri, 14 Dec 2007 19:15:32 +0000 (19:15 +0000)]
Sorry, I have forgotten to add a description for the last version, where
I have added the clear_malloc and fill_malloc functionality. But the default
is the original malloc.
mifi [Fri, 14 Dec 2007 18:06:19 +0000 (18:06 +0000)]
- added patch from Dominic to unlock the ATMEL flash in cfi_read_atmel_pri_ext
- set cfi_info->write_algorithm and cfi_info->erase_check_algorithm to NULL to
get "flash erase_check" command working
mifi [Mon, 10 Dec 2007 19:46:04 +0000 (19:46 +0000)]
- Fixing two compiler warnings
- Reducing stack usage for recursive scripts
- Do not exit on bogus arguments to reset_config. No longer exit the application upon bogus arguments to reset_config, but return errors.
mifi [Sun, 9 Dec 2007 15:36:21 +0000 (15:36 +0000)]
- added patch to display device information as INFO too
- added patch which fixes a crash upon flash write error
- added patch which will improve the reset handling when
SRST is tied to TRST
bodylove [Wed, 5 Dec 2007 13:34:02 +0000 (13:34 +0000)]
Merged rev 215 changes from /branches/xscale-ixp-be into trunk:
- Obvious fixes to big endian type conversion macros
- Fixed obvious typos for byte masks
ntfreak [Wed, 21 Nov 2007 16:37:17 +0000 (16:37 +0000)]
- reset_run now works as expected on cortex-m3
- str9xpec erase status checked on option byte programming
- stm32x flash driver now supports sector protection
- surplus exit removed from flash.c
- openocd.texi documentation added
ntfreak [Mon, 8 Oct 2007 13:12:39 +0000 (13:12 +0000)]
- cleaned up str7, str9 and stm32 flash drivers
- str7 flash driver now checks correct busy bits depending on device
- str9 flash driver now disables ITCM order as per st programming manual
- added str7 disable_jtag command
- added gdb_detach command
- updated arm966e cp15 support
- fix crash on mingw build when enabling target_request debugmsgs
ntfreak [Mon, 1 Oct 2007 08:31:30 +0000 (08:31 +0000)]
- flash autoerase <on|off> cmd added, default is off - flash banks are calculated and erased prior to write (flash write_image only)
- corrected array overrun in armv7m.c
- corrected breakpoint memory allocation bug
- image read now uses fgets, vastly improves reading of large files
- improved hex file reading, support for Linear Address Record added
- Fixed display of sector sizes in flash.c
- Clean up, remove unused variables and code in armv7, cortex_m3 and stellaris code
- Move restore_context from cortex_m3 to armv7m
- Updated halt handling for cortex_m3
Patch by Michael Schwingen that
- adds support for the Altium universal JTAG cable
- adds support for "wiggler2" cable (basically a wiggler with added LED, documentation coming soon)
- adds LED support. The LED is turned on during data transfer - works fine on Altium and wiggler2.
- adds PORT_EXIT pattern that is written to port when exiting, in order to turn off power on cables that get their power from parallel port data lines
- move port writes (with the system-specific ifdefs) to one central function
- increased image cache size to 2KB (might require more adaptive cache handling, e.g. LRU)
drath [Sat, 25 Aug 2007 09:59:42 +0000 (09:59 +0000)]
- added support for setting JTAG frequency on ASIX PRESTO (thanks to Pavel Chromy)
- usbprog update (thanks to Benedikt Sauter)
- added embeddedice_send and _handshake functions (thanks to Pavel Chromy)
- added support for 4, 8 and 16 bit ports to etb.c
drath [Thu, 16 Aug 2007 13:12:48 +0000 (13:12 +0000)]
- update jtag_speed setting when changing it during runtime with a FT2232 based interface
- use 'etm trigger_percent' setting when programming ETB trigger count
- fixed some small bugs in ETM trace analysis
- fixed minor bug in flash writing (thanks to Pavel Chromy)
drath [Tue, 14 Aug 2007 09:48:54 +0000 (09:48 +0000)]
- reworked presto.c to allow use of either FTD2XX or libftdi (libftdi not functional yet). Configure option changed from --enable-presto to
--enable-presto_ftd2xx and --enable-presto_libftdi
- completed trace point support for use with ARM7/9 DCC
- completed debug message output with support for HEX dumps (1, 2 or 4 byte quantities)
- fixed bug in delete_debug_msg_receiver (thanks to Pavel Chromy)
- fixed bug in image_add_section (thanks to Pavel Chromy)
- at91sam7 sector erase reworked (thanks to Pavel Chromy)
- merge consecutive sections during flash image write to work around possible section alignment issues with LPC2000 targets
drath [Fri, 10 Aug 2007 20:21:35 +0000 (20:21 +0000)]
- changed mingw host detection to *-mingw instead of *-*-mingw to work with i586-mingw32msvc-gcc
- add replacements.h to log.h to make sure ERROR is undefined on windows
drath [Fri, 10 Aug 2007 19:44:06 +0000 (19:44 +0000)]
- renamed M5960 USB JTAG to "flyswatter"
- make ep93xx and at91rm9200 bitbang JTAG interfaces dependant on ARM host (thanks to Vincent Palatin)
- various whitespace fixes
- removed various warnings
- add support for Debian GNU/kFreeBSD (thanks to Uwe Hermann)
- fix OpenOCD compilation for various platforms (thanks to Uwe Hermann and Vincent Palatin)
- switched order of JTAG chain examination and validation (examine first, then multiple validation tries even if examination failed)
- added target_request subsystem to handle requests from the target (debug messages and tracepoints implemented, future enhancements might include
semihosting, all ARM7/9 only for now)
- added support for GDB vFlashXXX packets (thanks to Pavel Chromy)
- added support for receiving data via ARM7/9 DCC
- reworked flash writing. the 'flash write' command is now deprecated and replaced by 'flash write_binary' (old syntax and behaviour) and 'flash
write_image' (write image files (bin, hex, elf, s19) to a target).
- added support for AMD/ST/SST 29F400B non-cfi flashes
- calculate cycles since last executed instruction when cycle-accurate tracing is enabled
- increase memory pseudo-image cache size to 1024 byte for improved trace analysis performance
- added OpenOCD+trace as an ETM capture driver example implementation
- new usbprog driver (thanks to Benedikt Sauter)
- reformat src/jtag/bitq.c (thanks to Pavel Chromy)
- fix multiple reads from FT2232 into same buffer location (thanks to Magnus Lundin)
- retry JTAG chain validation (thanks to Magnus Lundin)
- reworked GDB packet input handling (thanks to Pavel Chromy)
- output error message when setting a watchpoint failed
- removed duplicate out-of-bounds check in at91sam7.c (thanks to Pavel Chromy)
- added support for Asix Presto JTAG interface (thanks to Pavel Chromy and Asix for making this addition possible)
- added support for usbprog (thanks to Benedikt Sauter)
- make OpenOCD listen for WM_QUIT messages on windows (thanks to Pavel Chromy)
- register at_exit handler to do necessary unregistering (thanks to Pavel Chromy)
- added dummy ETM capture driver to allow ETM to be registered without a capture driver
ntfreak [Sun, 24 Jun 2007 15:04:07 +0000 (15:04 +0000)]
- ST STM32x cortex support added
- ST STM32x flash support added
- cleaned up armv7m and cortex-m3 support, removed luminary specific code
- cortex-m3 16bit read/write added (required for STM32x flash programming)
drath [Thu, 21 Jun 2007 13:15:22 +0000 (13:15 +0000)]
- added support for Intel/Marvel PXA27x (XScale) targets
- added support for scans coming from or ending in Shift-DR or Shift-IR to bitbang code (required for XScale debugging)
- cleaned up errror handlers. only use when there's a catchable error
- fix segfault when etm was configured without a valid driver
ntfreak [Sat, 16 Jun 2007 14:45:55 +0000 (14:45 +0000)]
- added mingw elf patches from Vincent Palatin
- added str9x programming using flash controller tap (str9xpec), including option bytes and device lock/unlock
- inttypes.h now used for long long printf style declarations
drath [Thu, 14 Jun 2007 09:47:00 +0000 (09:47 +0000)]
- added manpage for OpenOCD (thanks to Uwe Hermann)
- fixed bug in ARM926EJ-S cache handling that caused cache linefills to be disabled after first debug entry
- added support for auto image type detection (thanks to Vincent Palatin)
- further work on ETM trace decoding (tested with a ETB interface using an ETM in normal 16-bit port mode, still experimental)
drath [Wed, 30 May 2007 15:47:18 +0000 (15:47 +0000)]
- reworked image handling to support multiple sections (tested with ihex file containing gaps)
This checkin is still experimental, not recommended for general use
drath [Tue, 29 May 2007 11:23:42 +0000 (11:23 +0000)]
- split fileio handling into fileio part and image handling
- reworked etm/etb into a generic etm part with trace capture drivers (currently only etb supported)
- added XScale debug handler binary to repository
- added Thumb disassembling (thanks to Vincent Palatin for this patch)
- added support for non-CFI compatible flashes to cfi driver (currently only SST39VFxxx devices supported)
This checkin is experimental, not suitable for general use
drath [Sat, 5 May 2007 11:02:03 +0000 (11:02 +0000)]
- further work on ETB decoding (not yet functional)
- fixed several uses of uninitialized bits (Thanks to Vincent Palatin for finding and fixing these bugs)
- explicitly disable monitor mode on ARM7/9 targets
- added "prepare_reset_halt()" to target_type_t, which allows reset_halt to be prepared before a reset is asserted, possibly preventing communication with the target
- arm7/9 devices now use a breakpoint at 0x0 or reset vector catching for debug out of reset
- correctly mask out bits that aren't part of a copied buffer
- fixed arm926ej-s CP15 register access handling
- correctly identify SYSCLK source in LPC3180 NAND flash controller driver
- disabled excessive debug output in jtag.h
- output all of EmbeddedICE version register in error message
- update OpenOCD's idea of the current core mode, and immediately change core mode, on CPSR changes
- added support for CFI cmdset 0002 (patch by Andrew Dyer, thanks a lot)
- enhanced CFI cmdset 0002 support to Atmel AT49 flashes (thanks to Joerg Krein for providing test hardware)
drath [Wed, 28 Mar 2007 16:31:55 +0000 (16:31 +0000)]
- merged XScale branch back into trunk
- fixed some compiler warnigns in amt_jtagaccel.c, bitbang.c, parport.c
- free working area and register stuff if str7x block write algorithm failed
- check PC after exiting a target algorithm in armv4_5.c
drath [Mon, 26 Mar 2007 21:47:26 +0000 (21:47 +0000)]
- fixed arm926 cp15 command bug (thanks to Vincent Palatin for this patch)
- fixed compiler warnings throughout the code (thanks to Vincent Palatin for this patch)
- added support for accessing ETB (embedded trace buffer) registers
drath [Thu, 15 Mar 2007 13:36:44 +0000 (13:36 +0000)]
- reworked file i/o. every fileaccess (target, flash, nand, in future configuration, too) should now go through the fileio subsystem
- added support for reading IHEX files (through fileio)
- load/dump_binary renamed to the more generic load/dump_image <file> <address> ['bin'|'ihex']
- added NAND framework (preliminary)
- added support for the LPC3180 SLC and MLC NAND controllers (preliminary)
- fix initialization for parport
- gw16012 fixes/cleanups
- added EmbeddedICE version 7 (preliminary, reported on two LPC23xx devices so far)
- added 'arm7_9 etm <target#>' configuration command to enable access to the ETM registers