2013-05-05 Freddie Chopin * : The openocd-0.7.0 release. Change-Id: I08157f47ac056e6d2089119dd2d6cbab11b521e8 Signed-off-by: Freddie Chopin 2013-04-28 Freddie Chopin * : doc: Update list of interfaces, targets and boards Change-Id: If9481e061f09a37f9ee3c461a1a0ce4d382a9a0d Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/1366 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-05-02 Spencer Oliver * : cfg: remove whitespace Change-Id: I20edbb50efc03711195102f4c6dc8bcfaf043d44 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1374 Tested-by: jenkins Reviewed-by: Peter Stuge 2013-04-28 Freddie Chopin * : Restore -dev suffix Change-Id: I26f49e02d228b59533237607fa8307ecc627409e Signed-off-by: Freddie Chopin 2013-02-01 Spencer Oliver * : target: rename cortex_a8 to cortex_a Rename cortex_a8 target to use a more correct cortex_a name. This also adds a deprecated_name var so that older scripts issue a warning to update the target name. cfg files have also been updated to the new target name. Change-Id: I0eb1429c9281321efeb444b27a662a941a2ab67f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1130 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-04-20 Freddie Chopin * : Mention "lpc4300" (with "lpc1800" alias) flash drivers in manual Change-Id: I0bb28910b2c07b1ca5bd644e0d88b931d585d3e7 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/1352 Tested-by: jenkins 2013-04-22 Christopher Kilgour * : kinetis: fix "SF1" parts to limit FlexRAM usage Ensure FlexRAM usage is limited to half the FlexRAM size when programming. Assume the FlexNVM sector size is equal to half the FlexRAM. Fix sector erase checking which had an error introduced when the kinetis_ftfx_command( ) signature was changed. Change-Id: I88edd9c7d4a4ba474cad7b00052feaeedfa8ced8 Signed-off-by: Christopher Kilgour Reviewed-on: http://openocd.zylin.com/1358 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-04-23 Spencer Oliver * : arm: fix arm reg regression Seems commit fc2abe63fd3cea7497da7be2955d333bd3f800b9 caused a regression in that the arm reg cmd no longer worked. The issue was caused because we changed the value of ARM_MODE_THREAD which was being checked in arm_init_arch_info. Change-Id: Id571d4ab336d1b0e2b93363147af245d24b65ca5 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1362 Tested-by: jenkins Reviewed-by: Luca Bruno Reviewed-by: Freddie Chopin 2013-04-23 Hsiangkai Wang * : gdb server: Fix bug. Parse 'M' packet error. The format of 'M' packet is 'M addr,length:XX...'. The data follows ':' immediately. No need to '+2' to SEPARATOR in unhexify(), because SEPARATOR points to data correctly. Change-Id: I15b5758b540816cc727752e7bf68cd45e623f603 Signed-off-by: Hsiangkai Wang Reviewed-on: http://openocd.zylin.com/1360 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Freddie Chopin 2013-04-21 Freddie Chopin * : Restore -dev suffix Change-Id: I3662c5993766a76d6dd62b919c56cc059c4e50d4 Signed-off-by: Freddie Chopin 2013-04-20 Freddie Chopin * : Add "lpc1800" alias for "lpc4300" flash driver Change-Id: I6d2bb9105cc778bd1d21580022529d684c3b21b0 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/1351 Tested-by: jenkins 2013-04-20 Freddie Chopin * : Improve HACKING Reword info about creating SSH key - it's not required to add it to Github account. Mention adding created SSH key to Gerrit account - without this step it's not possible to access Gerrit in further steps. Change-Id: Ibd81521fbe47d4b4beae0b77cdc9d939fd3ee20c Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/1350 Tested-by: jenkins Reviewed-by: Paul Fertser 2013-04-19 R. Steve McKown * : Support newer OSBDM firmware OSBDM: add new VID:PID implemented in OSJTAG/OSBDM firmware somewhere between versions 30.13 and 31.21. PFLASH programming works with this patch, tested on a Freescale Kinetis TWR-K20D72M using its onboard OSBDM JTAG adapter. Note: flash program testing required hacking kinetis_write() to force longword programming, as the FTFL program section commands formulated by kinetis_write() currently fail on this board's PK20DX256VLL7 processor. Change-Id: Ib7b92ff2fe9ebf6158fb1489f554a19e96cd9651 Signed-off-by: R. Steve McKown Reviewed-on: http://openocd.zylin.com/1348 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-04-03 Salvador Arroyo * : mips: m4k alternate pracc code. Patch 4 Now all the functions with only fetch accesses are modified. The same delay between scans has been added to mips32_pracc_fastdata_xfer(), it should work at the same scan rates as the other pracc functions, but it needs higher scan_delays to work. Change-Id: Ifb31d8ea6de9d22674385782913d221a2494dbbf Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/1196 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-03-03 Salvador Arroyo * : mips: m4k alternate pracc code. Patch 2 Each pracc function defines a variable ctx of type struct pracc_queue_info. To simplify the code tree auxiliary functions are defined: pracc_queue_init(), pracc_add() and pracc_queue_free(). The second parameter in pracc_add() is the store address if the instruction is a store at dmseg, otherwise it should be 0. The code is executed by mips32_pracc_queue_exec(). If ejtag_info->mode is 0 mips32_pracc_exec() is called and it should work like with current code. To generate the delay between scans the number of clock ticks are calculated with the help of jtag_get_speed_khz(). Due to delays in the execution of each single ftdi instruction the number of ticks are higher as it should be, specially at higher scan rates. mips32_pracc_read_u32() should now work with the new code. Change-Id: I471590a4fc89b56af10bd46c48767b4c64de154f Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/1194 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-04-20 Freddie Chopin * : Improve clone command in README Without the explicit dir at the end the repository will be cloned to "code". Change-Id: Icd8b55b4ba74f23b214c3844e2fb785377768119 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/1349 Reviewed-by: Øyvind Harboe Tested-by: jenkins 2013-04-17 Ben Nahill * : topic: STM32W support added to em357 driver The em357 driver only supported one page configuration (192k in 96 2048k) pages. This is fine for em357 chips since that's the size they have, but ST's STM32W chips (pretty much the same) have different flash configurations available (64, 128, 192, 256k). I can't find anywhere that would indicate the size of the chip anywhere in memory so the selection must be manual, using the 'size' parameter. For backwards compatibility, any size not known to be in use defaults to the 192k configuration. I don't have any em357 devices to test, but I also found that I had to re-assert the FPEC clock enable before performing an erase. This is a single line and shouldn't break any configurations. My testing so far has only been with a 64k device with 8k of RAM. Change-Id: Ic0ac400a9696efaa09d1407dd4a4d456bc2c318b Signed-off-by: Ben Nahill Reviewed-on: http://openocd.zylin.com/1336 Tested-by: jenkins Reviewed-by: Peter Stuge 2013-04-11 Spencer Oliver * : stlink: fix connect under reset issues We need to make sure that srst is asserted before we attempt to switch into jtag or swd mode otherwise we receive a error (-9) - invalid device id. Change-Id: I625166c751cfba8e8a5290f40122bb9afc9dbb39 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1315 Tested-by: jenkins 2013-03-19 Andreas Fritiofson * : ft2232: remove ft2232_large_scan memory leak This is a very long outstanding issue see: http://lists.berlios.de/pipermail/openocd-development/2011-June/019404.htmlAs this driver is deprecated the fix is added to purely to reduce the warnings reported by clang. Change-Id: I3a16a704e0e8db27efda50fdcfdd35abf5ebed0f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1278 Tested-by: jenkins 2013-03-28 Spencer Oliver * : jimtcl: update embedded jimtcl Update to latest jimtcl commit 2c1eba991e21a6f0b531fb0f83e21f9e6ee7c515. This fixes issues when building on certain versions of Mac OSX. Change-Id: I551477752d7913c84e6deb60b889d0c14bd200a0 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1311 Tested-by: jenkins Reviewed-by: Xiaofan 2013-04-15 Peter Dietzsch * : flash: Added support for at91sam4sd32c Change-Id: I7223980602d7595a3dd7a3ceaac3f58d4f73f88d Signed-off-by: Peter Dietzsch Reviewed-on: http://openocd.zylin.com/1332 Tested-by: jenkins Reviewed-by: Peter Stuge 2013-03-18 Michel JAOUEN * : arm_adi_v5: fix for csw nonsecure access. Add command to fix CSW_SPROT in register AP_CSW. This solves dap apmem access in non secure access. Change-Id: I7cfcb6434d75f5cfd4a2630a059901cdeea010ce Signed-off-by: Michel JAOUEN Reviewed-on: http://openocd.zylin.com/1276 Tested-by: jenkins Reviewed-by: mike brown Reviewed-by: Spencer Oliver 2013-02-24 Salvador Arroyo * : mips: change in restoring debug working register In current devel code there are 3 functions (related to m4k code) that need to restore register 8 from pracc stack: mips32_pracc_read_u32() mips32_cp0_read() mips32_pracc_write_mem_generic() And mips32_pracc_read_mem() needs to restore regs 8 and 9 from pracc stack. Values in this registers should be the same as read by mips32_pracc_read_regs() when entering debug mode and can be modified by mips32_pracc_write_regs() when leaving debug mode. There is no need to read their values from the processor registers every time. The fields reg8 and reg9 are added to struct mips_ejtag to store these register values and the call to mips32_save_context() is shifted in mips_m4k_debug_entry() in order to store them before any other function needs to restore these registers. For the same reason in function mips_m4k_step() the call to mips_m4k_set_breakpoint(), if needed, should be made after calling mips_m4k_debug_entry(). For single word write the number of pracc accesses are now 9 or 8, from 13 or 12 in current code, single word read takes now 10 instead of 12. This patch is really the first in a set of patches for an alternate m4k pracc code much faster that current code. At least for me with pic32mx works fine. Change-Id: Ibd9df5e8b9f78ce05a180949ba6a561c761b61d6 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/1146 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-02-23 Salvador Arroyo * : pic32mx: 0 wait state option By default pic32mx starts after any reset with 1 wait state for RAM access/exec. It can be changed to 0 wait states by clearing the BMXWSDRM bit (bit 6) in BMXCON register. With 0 wait states near doubles the execution speed. CRC check sum can be done much faster increasing verify_image speed. Fast data transfer also works with a bit higher scan rate, up to 1500 Khz. This option can be set at any time with mww 0xbf882004 0x40 or cleared with mww 0xbf882008 0x40. Some numbers for FTDI/HS with current devel code and a elf file: Core clock / wait states verify_image speed ------------------------------------|------------------------------ 4 Mhz / 1 21 KiB/s 4 Mhz / 0 36 KiB/s 8 Mhz / 1 37 KiB/s 8 Mhz / 0 57 KiB/s Change-Id: I4092ad0f3753f72f77108718d0ed3a3ab84e3b23 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/1141 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Xiaofan 2013-02-27 Henrik Nilsson * : Added support for ARMv7-M in arm io. Added support for ARMv7-M targets in arm_nandwrite and arm_nandread. Change-Id: Iab1d78d401f735e191c6a8519f3619035a300fae Signed-off-by: Henrik Nilsson Reviewed-on: http://openocd.zylin.com/1188 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-03-18 mike brown * : arm_adi_v5: fix mem_ap_read_buf_u32() JTAG nastiness.. Moved JTAG code out of transport-neutral file (arm_adi_v5.c) into transport specific file (adi_v5_jtag.c). Added ap_block_read to dap_ops interface (arm_adi_v5.h) to support the move. Change-Id: I796d3984f138aad052b97c77ac9c12ffd1158f74 Signed-off-by: mike brown Reviewed-on: http://openocd.zylin.com/1277 Tested-by: jenkins Reviewed-by: Michel JAOUEN Reviewed-by: Spencer Oliver 2013-03-19 Spencer Oliver * : ti_icdi: add icdi_usb_query result check Change-Id: I0b40586677a77ee6ae46fe120a677616bde22d1e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1279 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Andreas Fritiofson 2013-03-14 Spencer Oliver * : docs: remove unnecessary whitespace Change-Id: I11bad3de145d941b61e9bd4920bc3281ece91ab3 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1245 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-03-23 Thomas Schmid * : at91sam3: Wrong PLLA frequency calculations The command 'at91sam3 info' ignores PLLA DIV values >1. This patch fixes it. Tested on a SAM3S4C chip. Change-Id: I051f41bb3dcefe1ac785fbcb48477a807daa16a2 Signed-off-by: Thomas Schmid Reviewed-on: http://openocd.zylin.com/1307 Tested-by: jenkins Reviewed-by: Peter Stuge 2013-03-15 Spencer Oliver * : target: fix broken Cortex-R4 support This regression was caused due to the recent addition of R4 support and the removal of the bulk_write_memory handler. Change-Id: Ide692737f235c0e9906becb6f3502ba52c5907aa Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1246 Tested-by: jenkins 2013-03-08 Andreas Fritiofson * : target: Add default implementation of bulk_write_memory Remove dummy implementations from all targets except arm7_9 and mips, which are the only ones with real implementations. Replace with a single default implementation simply calling target_write_memory(). Change-Id: I9228104240bc0b50661be20bc7909713ccda2164 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/1213 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2012-10-12 Evan Hunter * : adi_v5: search for Debug and Memory AP support Adds dap_find_ap() function. Change-Id: I6643025624009b12d4936de67a605da52c07be49 Signed-off-by: Evan Hunter Reviewed-on: http://openocd.zylin.com/909 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-06-05 Stefan Mahr * : jtag: add support for some probes that are mostly compatible with opendous This patch adds support for usbprog-jtag and usbvlab that are mostly compatible to opendous except for IN and OUT endpoints and usb transfer mode. Change-Id: I44557c2449fe7473295038efa6ae4fc8d80ec7bf Signed-off-by: Stefan Mahr Reviewed-on: http://openocd.zylin.com/687 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-03-12 Stefan Mahr * : jtag: parport: avoid freeing read-only memory section If command parport_cable is not executed, parport_cable points to const char array in read-only memory as default. On exit free() will try to free this read-only memory. This patch uses strdup to allocate memory when defining default setting. Change-Id: I290e707ac6a37e9dc1b45c85ca51d8bd6aac6761 Signed-off-by: Stefan Mahr Reviewed-on: http://openocd.zylin.com/1223 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-03-10 Andreas Fritiofson * : target: Remove read_memory_imp Change-Id: Idc6ef3b075ccbb5945df8fea746011cb17175d8f Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/1219 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-03-10 Andreas Fritiofson * : target: Remove soft_reset_halt_imp Change-Id: I12c907584ef73de570eba2dcfeb8477cabc6098f Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/1217 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-12-27 Rodrigo Melo * : interface: opendous_ftdi config file added This config file add support to the opendous cable based on the chip ft2232H, using the ft2232 interface driver. Change-Id: I8171a0c475af8d61e081844ee86466a392138fb0 Signed-off-by: Rodrigo Melo Reviewed-on: http://openocd.zylin.com/1096 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-08 Drasko DRASKOVIC * : doc: Added MIPS target document This document explains MIPS EJTAG operations implementations within OpenOCD. Change-Id: Ieaf01f8bc5a97d7b0f2c847bac5fbb2ccf8ba088 Signed-off-by: Drasko DRASKOVIC Reviewed-on: http://openocd.zylin.com/904 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-03-02 Alex Austin * : Kinetis: Symbolic names for Addresses and Commands Change-Id: I2165b66c37bd1608139b5dd00f48124161e13ef0 Signed-off-by: Alex Austin Reviewed-on: http://openocd.zylin.com/1191 Tested-by: jenkins Reviewed-by: Christopher Kilgour Reviewed-by: Spencer Oliver 2013-03-06 Spencer Oliver * : tcl: add flash programming helper This adds a program proc that simplifies using OpenOCD as a standalone programmer. Change-Id: I6ece492cd878c170b734e8bb2e09fe8c4557d5a6 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1199 Tested-by: jenkins Reviewed-by: Jörg Fischer Reviewed-by: Andreas Fritiofson Reviewed-by: Øyvind Harboe 2013-03-07 Spencer Oliver * : gdb: use stdio functions to convert parameters This reduces the number of gdb conversion routines we have to maintain. Change-Id: Ia43d6cac86cbe4f76fe0875b9d9c16ac340296db Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1128 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin 2013-03-07 Spencer Oliver * : docs: use doxygen keywords for formatting Rather than use bold fonts etc, use the correct keywords so doxygen formats better. Change-Id: Id9d63f0fc3465665376d7a536c4d6da71998f40e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1210 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2013-02-27 Spencer Oliver * : flash: fix stm32 failed probe using incorrect flash size This fixes an issue if the device is manually probed after the initial probe fails due to being unable to read flash size register. In this situation the driver assumes the user has overridden the flash size when infact this may not be the case. It also seems on the older stm32f1 devices the flash register is not readable when locked, this does not seem to apply to the newer parts - f0, f3, f4. Change-Id: I125f872fcb2d962ca6705f97b62d957e2b31303b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1187 Tested-by: jenkins Reviewed-by: Johan Almquist Reviewed-by: Freddie Chopin 2013-02-25 Spencer Oliver * : ti-icdi: catch failed icdi_send_cmd warnings detected by clang. Change-Id: I1532bcc12a8ab7446646dfb2a7afa8894ff03679 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1180 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Freddie Chopin 2013-02-25 Spencer Oliver * : target: use common target_name to access target::cmd_name member Change-Id: I203b89ef25a072c3b00b504483d5f2a83477fad6 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1182 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Andreas Fritiofson 2013-02-27 Mathias K * : Change reset configuration. This patch change the default reset config from SYSRESETREQ to the working VECTRESET. Change-Id: I21a9a74b9c0c68cfa3a6e6dac9b123acc98a93cb Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/1186 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-02-25 Mathias K * : Add the target name to debug output for better understanding and error identification. Change-Id: I1054debea6cd3a6548aadeae2d84000a0039814e Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/1178 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-01-31 Spencer Oliver * : gdbserver: use common hexify/unhexify routines Change-Id: I9989b625666e9c60ec9867cf6f4d94f41c998c3f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1105 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Øyvind Harboe 2013-02-07 Spencer Oliver * : target: hla correctly use target events Because we were always running using target state TARGET_RUNNING target algorithm's were a bit verbose compared to other targets. This brings the hla target inline with the other targets. Change-Id: I3a257fdc878b87660fac8b5eca22b421eee5b349 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1134 Tested-by: jenkins 2013-02-19 Johan Almquist * : stm32: add support for stm32l1x 256k high density single bank devices Added support for new ST devices in the stm32lx portfolio, with device id 0x427. These have 256k flash, but in a single bank compared to device id 0x436 which is a dual bank flash. Change-Id: Iafdfe990f24bd04b0d6e00385ee70690f3bf8d5f Signed-off-by: Johan Almquist Reviewed-on: http://openocd.zylin.com/1140 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-02-05 Spencer Oliver * : stm32: enable flash bank size override It has been seen on some stm32 targets that the flash size register that is probed by the driver may contain an invalid size. This change enables the user to override the probed value. Change-Id: I09359e59a96f9133d3d939670957d32a830a944e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1132 Tested-by: jenkins Reviewed-by: Johan Almquist 2013-02-01 Spencer Oliver * : armv7m: use ARM_MODE_THREAD core mode for algoorithm's This makes sure we are using privileged mode when executing any loaders. Change-Id: I18bf32ec92e1c76a66ab25e3712652bc3650b332 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1108 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2013-01-09 Spencer Oliver * : armv7m: use generic arm read/write_core_reg Change-Id: I0c15acc1278d2972269d294078495e6b069c830b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/969 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-11-08 Spencer Oliver * : armv7m: remove unused armv7m_regtype This simplifies the armv7m_core_reg structure ready for the move to using the generic struct arm_reg. Change-Id: I8edb9d77cc54965d49cd2e754568ebcea4cf6964 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/967 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2013-01-28 Spencer Oliver * : helper: hexify correctly handle signed chars The current implementation of hexify was not correctly handling signed chars. This function is currently used by the ti-icdi driver and as such was causing random write issues. As a note perhaps a better long term fix would be to change to using uint8_t buffers rather than char. This will require changes to the ti-icdi driver aswell. Change-Id: I572e69ff2b99227a7d412de056458c0393794b03 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1124 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2013-01-03 Spencer Oliver * : rtos: do not use LOG_OUTPUT LOG_OUTPUT is not intended for general output so use the correct LOG_* functions instead. Change-Id: I48d0fe765637024dbafc68f2ea08219d3ff42754 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1104 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-01-16 Spencer Oliver * : jtag: only change state if necessary All the other drivers will only change the state if required. This brings all the other drivers inline with this behaviour. The original issue relates to problems on xscale commit 7989000e0969c1ccf69acbc3ce649a020bc1ee66 Change-Id: Ifc90ec2eef68a70a14f37c00931a07982bfa200c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1114 Tested-by: jenkins Reviewed-by: Freddie Chopin 2013-01-25 Spencer Oliver * : hla: enable DWT component and fix watchpoints The makes sure the DWT component is always enabled so that watchpoints work as expected. This does need merging into the existing cortex_m logic, however at the moment this is non trivial. Change-Id: Ic6cccd1badb51f70a2ca8ea9ab6923788a94c1bf Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1122 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-12-07 Spencer Oliver * : flash: reduce stm32lx loader timeout Waiting 20secs is a bit much excessive, we could probably reduce to 5. Change-Id: Iffb97adb99c2541a075fe78dbc88a53ddf340214 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1009 Tested-by: jenkins 2012-12-30 Spencer Oliver * : docs: update stm32f1x/stm32f2x driver info As we use the two ST flash drivers for multiple stm32 variants update the docs as to which targets use which driver. Change-Id: I84943ff45482a22b3d3dd8491bb4242d79415939 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/990 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2013-01-04 Spencer Oliver * : flash: add stm32f2x flash lock/unlock cmds Change-Id: I35344cc47fa4f0a49c034455c5abf479faa0344a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/988 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2013-01-18 Roman D * : flash: EFM32 GG/LG page size detection fix Fixed flash page size detection according to EFM32 GG/LG errata. MEM_INFO_PAGE_SIZE register containts invalid value in devices with revision number lower than 18 and should not be used. Change-Id: Idb2832246efcbbec2fd98a5c458f72a36df386fb Signed-off-by: Roman D Reviewed-on: http://openocd.zylin.com/1116 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-01-10 Roman D * : flash: EFM32 flash implementation Limited (no page unprotect, no block writes) implementation of EFM32 flash support. Verified with EFM32 development kit and STLink V2 adapter using SWD. Change-Id: I3db2054d9aa628a1fe4814430425db3c9959c71c Signed-off-by: Roman D Reviewed-on: http://openocd.zylin.com/1106 Tested-by: jenkins Reviewed-by: Spencer Oliver 2013-01-02 Spencer Oliver * : hla: support setting DCB_DEMCR on resume This is only minimal support to enable use to catch a Hard Fault in the stm32l flash bootloader. Change-Id: I21d6a11893e2f1d173ebff1a651d6f52bf6eec32 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1103 Reviewed-by: Peter Stuge Tested-by: jenkins 2012-11-20 Spencer Oliver * : flash: use correct stm32f1x option read mask Make sure we do not mask out the BFB2 boot bank bit, as this is used on the larger XL devices. Change-Id: Iacfdf874140e409e0c4ca9b9aee8f5c2f90dc9be Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/991 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-11-20 Spencer Oliver * : stm32f1x: preserve user option byte data The user is able to use 2bytes of the options byte data for whatever purpose they wish. Make sure we preserve this during an option erase/write. Change-Id: Ibf951b11c59a148e671b1eb47fdc9b4f49ccae15 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/983 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-12-29 Andreas Fritiofson * : doc: Clarify the topic field in the commit comment template Change-Id: Iea1f3b665b011ca3748800048039d3f6b33d7756 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/1101 Reviewed-by: Øyvind Harboe Reviewed-by: Tomasz CEDRO Reviewed-by: Spencer Oliver Tested-by: Spencer Oliver 2012-12-06 Spencer Oliver * : cfg: increase stm32l-discovery working area This part has 16k ram so make it all available. Change-Id: Ifeb7bc850bfe4f68d0affb8f6a0931b4327e7257 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1006 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-12-04 Spencer Oliver * : cfg: enable stlink stm32l HSI Switch to using the internal HSI when a reset init is called, this also matches the std stm32l cfg. Read (verify) speed is increased from 17 to 120 KiB/s. Change-Id: Ic94ba85949ffdefa17b7be45eef14e30f941d107 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/1004 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-11-20 Spencer Oliver * : flash: format stm32f2x driver defines Change-Id: Ie903996368a8d4313df87839d5ba3f2a102796a3 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/987 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-11-15 Spencer Oliver * : stlink: add generic open error routine Change-Id: I1cd18896ab2a37255471a2d160befed8dd8fb544 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/979 Tested-by: jenkins 2012-11-22 Spencer Oliver * : gdb: fix correct shutdown when using pipes 50d5441e2a615fb2c44b41a777e4373901f7a2e6 commit added a regression when using pipes with GDB, OpenOCD would appear to hang when exiting GDB. This fixes that behaviour so we shutdown correctly. Change-Id: I9b337c2bdd41b1966de1c7631118257afcbfa6bd Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/993 Tested-by: jenkins 2012-11-08 Spencer Oliver * : doc: replace luminary with TI urls's Change-Id: Ic8a768f5a498e78b96421c6137238593c159fd72 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/970 Tested-by: jenkins 2012-11-12 Spencer Oliver * : icdi: add TI icdi interface This is the new proprietary interface replacing the older FTDI based adapters. It is currently fitted to the ek-lm4f232 and Stellaris LaunchPad. Change-Id: I794ad79e31ff61ec8e9f49530aca9308025c0b60 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/922 Tested-by: jenkins 2012-10-25 Spencer Oliver * : hla: fix watchpoints not being set Watchpoints were not being enabled when the hl adapter target was resumed. This effects both stlink and icdi interfaces. Change-Id: Ia9f8a9415be97a467cd099b63b6bc9f7f37d0c0d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/931 Tested-by: jenkins 2012-10-24 Spencer Oliver * : stlink: rename stlink cmd names As part of the switch to using the hla for the stlink interface we rename the cmds to a more generic name. Update scripts to match new names. Also add handlers for deprecated names. Change-Id: I6f00743da746e3aa13ce06acfdc93c8049545e07 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/921 Tested-by: jenkins 2012-10-24 Spencer Oliver * : stlink: print version info Print stlink info always rather than just when debug log enabled. Change-Id: I2a29ef046925200e1c94624280c0b252fab5219a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/925 Tested-by: jenkins 2012-11-15 Muranaka Masaki * : flash: fm3 mb9bfxx7 mb9bfxx8 support Patch submitted by Trac #55 Change-Id: I08b0d79d24fe9108ca0bbfbc9b45c60359b6d180 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/981 Tested-by: jenkins 2012-12-10 Kamal Dasu * : mips_m4k: Fixed mips_m4k_resume code for smp targets Fix for bug introduced in in mips smp support code in the resume logic that is checking for wrong return value. Change-Id: Ice3e0069f936b556fecc338ccc12ddba38deeaf6 Signed-off-by: Kamal Dasu Reviewed-on: http://openocd.zylin.com/1048 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-11-26 Spencer Oliver * : jtag: fix reset_config copy/paste error As the other arg checks do not OR, it is assumed this is a copy/paste error from the original code author. Change-Id: I7dfc7396254a6f558887def951c57dfd4a0e6c2c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/997 Tested-by: jenkins Reviewed-by: Paul Fertser Reviewed-by: Freddie Chopin 2012-11-13 Spencer Oliver * : jtag: enable connect under reset Currently if the target supports srst_nogate we wait until target assert_reset until we get a chance to assert the srst. However sometimes we will not get this far if the target has already failed the jtag_examine_chain. This has been tested on targets that support this behaviour (STM32 and STR9). Change-Id: Ibcf7584b137b472f31ba6ddd5cd99d848c5508d1 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/971 Tested-by: jenkins Reviewed-by: Paul Fertser Reviewed-by: Freddie Chopin 2012-11-02 Evan Hunter * : cortex_a: Fix target entry state route. If target is disabled at init, then is examined using 'arp_examine', it can get to cortex_a8_poll with the target state being unknown. Change-Id: Ifffb345bf971d275d2eb1912648b29f0a75f6ccc Signed-off-by: Evan Hunter Reviewed-on: http://openocd.zylin.com/954 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-17 Kamal Dasu * : mips_ejtag: Adding EJTAG 4.x and 5.x as valid versions This is a minor change to log EJTAG version 4.x and 5.x as valid versions when debug log is enabled. Change-Id: Ie20458d033c6d22842cb4a31b56765d4ba2ff123 Signed-off-by: Kamal Dasu Reviewed-on: http://openocd.zylin.com/936 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-11-30 Aymeric Vincent * : Make NetBSD a recognized system Change-Id: I7fcb540553da7833a8b6a82335a7296539a8f491 Signed-off-by: Aymeric Vincent Reviewed-on: http://openocd.zylin.com/998 Reviewed-by: Peter Stuge Tested-by: jenkins 2012-11-15 Spencer Oliver * : stlink: format src defines Change-Id: I7c3fd6e84681e007f1983ad9b8c85369cf9f3ba1 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/978 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-11-11 Salvador Arroyo * : mips: patch mips32_pracc_exec_write() No function writes to MIPS32_PRACC_PARAM_IN addresses and probably has no much sense. Any attempt to write to those addresses should be an error. Change-Id: Iebea5fa9954e2cd56ad34976dd7d25009c6e6388 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/975 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-11-03 Salvador Arroyo * : mips: optimize mips32_pracc_write_regs() code. All the the loads are done with lui and ori instructions, there is no need to save any register, they will be overwritten. Like in the previous patch, for speed optimization in write code, same instructions can be saved if the lower half word or the upper half word is 0. If the lower half word is 0, it can be loaded with only a lui instruction. If the higher half word is 0 it can be done with an ori instruction with register 0. This code saves 10 pracc accesses at a minimum, and 40 at a maximum, obviously if register 2 to 31 are 0 or a half word is 0 Current code needs 91 pracc accesses. Change-Id: I892c5b440191d0c7a474c96845d41c373b7fc637 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/957 Reviewed-by: Spencer Oliver Tested-by: jenkins 2012-11-02 Salvador Arroyo * : mips: optimize read code for speed Really nothing new that not explained in previous patches. The code is expanded as needed, there are no loops in pracc code. For the first value pracc accesses are reduced from 39 to 16 and for aditional values from 10 to 3. dump_image should work around 3x faster. Change-Id: I37c9b13395c09eb52a91f10cdb6cbaedef8ab98b Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/955 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-11-01 Salvador Arroyo * : mips: optimize CP0 read/write code MIPS32_PRACC_BASE_ADDR is defined as 0xFF200000. Now is possible to load the base address with a lui instruction and only one pracc access. Offsets to the pracc code addresses are defined to simplify the code and probably make it a bit more readable or self-explained. Change-Id: I853dd2d7fad52745931cc6e6be68c0ae156d897e Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/951 Reviewed-by: Spencer Oliver Tested-by: jenkins 2012-10-30 Salvador Arroyo * : mips: optimize mips_ejtag_step_disable() code The code is a bit large compared to mips_ejtag_step_enable(). With the mips32 xori instruction the code can be reused. The number of pracc accesses are reduced from 18 to 7. Change-Id: If3974ebd64da4461c22b089796646990e68e1b72 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/944 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-11-15 Spencer Oliver * : doc: update to new sourceforge git url The new sourceforge platform also supports http access, so use that rather then repo.or.cz. Change-Id: Ica89d9475847a2095c179b240053145795549802 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/982 Tested-by: jenkins 2012-11-10 Matthias Blaicher * : rtos: Fix error in reading the current thread in ChibiOS/RT Commit c4ab127b4069e20e introduces a copy&paste error which affects the detection of the current thread. As a result, the stack of the current thread won't be detected correctly in most cases. Change-Id: Ib46b8f64be8053d7e9103f427c66796963214419 Signed-off-by: Matthias Blaicher Reviewed-on: http://openocd.zylin.com/974 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-22 Karl Kurbjun * : ARM v4/v5 target files: mrc and mcr help information is incorrect. The order of the mrc/mcr command matches the ARM Architecture Reference Manual. This patch corrects the help information for mrc/mcr. Change-Id: I1f0e6a628a3644124591a6aa291b8a58cfd93b44 Signed-off-by: Karl Kurbjun Reviewed-on: http://openocd.zylin.com/914 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-08 Peter Horn * : cortex_m: Fix single stepping will not return to debug mode sometimes This occurs when stepping past a breakpoint on a even address with maskisr option set to auto With -d3 the following log message appears in this case: "Debug : Interrupt handlers didn't complete within time, leaving target running" Cause : Given a breakpoint is set on the lower half word and the PC is on the upper half word. When another breakpoint is now set on the current PC then resuming the core will not result in a break on the newly set breakpoint. This has been observed on a STM32F1x, STM32F2x (CM3) but not on a STM32F0x (CM0). It's not clear if this is a STM32F1/F2 only or a general CM3 problem. Change-Id: I384813f3bfdf935373b5e23cdb2d7f243c70cc00 Signed-off-by: Peter Horn Reviewed-on: http://openocd.zylin.com/864 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-25 Gianluca Renzi * : Generic LPC1850 board w/ SPIFI flash. This config file is intended as an example of how to use the lpcspifi flash driver, but it should be functional for most LPC1850 boards utilizing SPIFI flash. Change-Id: I855854282336701fd210134497ce014017f3aaec Signed-off-by: Gianluca Renzi Reviewed-on: http://openocd.zylin.com/929 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-11-05 Spencer Oliver * : cortex_m: fix define formatting Change-Id: Ibdec882b2afc7e16f2361f86715463e030a54964 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/963 Tested-by: jenkins 2012-11-05 Matthias Blaicher * : rtos: Add FPU detection to ChibiOS/RT The stacking of ChibiOS/RT depends on the usage of an FPU. If the FPU is enabled the FPU registers are also saved on context switch. This patch adds automatic detection of FPU for armv7m targets. Note: With this patch, openocd will only output an error message warning that the FPU is enabled. For further FPU support, the correct stacking information also needs to be added. Change-Id: I0984cbd9180f247ba2fa610e74a6413cc54239ea Signed-off-by: Matthias Blaicher Reviewed-on: http://openocd.zylin.com/961 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-09-19 Sergey Borshch * : fix memory leaks if add_connection() fails, memory allocated in copy_command_context() is lost. Signed-off-by: Sergey Borshch Change-Id: I91a2757f29612038031eb8953100faa3b850d3a6 Reviewed-on: http://openocd.zylin.com/836 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-28 Peter Stuge * : mpsse: Always perform a general reset of the MPSSE in mpsse_open() Per AN_135 FTDI MPSSE Basics Version 1.1, section 4.2 step 7. http://www.ftdichip.com/Support/Documents/AppNotes/AN_135_MPSSE_Basics.pdfThis allows to stop and restart OpenOCD reliably, without needing to power cycle the interface. Change-Id: Ibeafe5ecfe7b2f6f82712cbc85116904407ddb36 Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/939 Tested-by: jenkins 2012-10-28 Peter Stuge * : ftdi/flyswatter2.cfg: Fix the signal layout Change-Id: If6612af25fa3562f49e9c8ccff01b6ef0af5ceb0 Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/938 Tested-by: jenkins 2012-10-26 Spencer Oliver * : gdb: fix broken qCRC packet handling The rtos layer was incorrectly handling a qCRC packet as a qC packet. Make sure we check for the qCRC packet and return unhandled so the gdb server gets a chance to handle it. This packet is used in the gdb compare-sections cmd. Change-Id: I21f8e5fa7225fccd13d65cf9e40186895065a7e3 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/933 Tested-by: jenkins Reviewed-by: Matthias Blaicher Reviewed-by: Peter Stuge 2012-10-18 Edgar Grimberg * : ioutil: make the file compile on MacOS The meminfo command cannot exist if the malloc.h header is not present. Cannot get the mac address without sys/ioctl.h and SIOCGIFHWADDR defined Change-Id: Ifc0fb98c3a60c53ad2e19473e08b34c460529d0b Signed-off-by: Edgar Grimberg Reviewed-on: http://openocd.zylin.com/912 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Peter Stuge 2012-10-23 Matthias Blaicher * : rtos: fix gdb qC command answer rtos->current_thread is of type int64_t. All other commands already respect this. Change-Id: I9951946ff2a09c53cd78c6ab882c80cdd2ab7ac6 Signed-off-by: Matthias Blaicher Reviewed-on: http://openocd.zylin.com/917 Reviewed-by: Spencer Oliver Tested-by: jenkins Reviewed-by: Peter Stuge 2012-10-27 Matthias Blaicher * : rtos: Fix wrong allocation in linux_get_symbol_list_to_lookup linux_get_symbol_list_to_lookup allocates to few memory. On 64 bit systems the error did not show due to char* being twice its size, leaving accidentally enough space. This patch makes linux_get_symbol_list_to_lookup behave identical to all other RTOS. Change-Id: I290ea241fb20b65585c8be14609a92fdbd2a307d Signed-off-by: Matthias Blaicher Reviewed-on: http://openocd.zylin.com/934 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-10-18 Spencer Oliver * : docs: mention extended-remote support Change-Id: Idd7cc0364856082cbbfee5015e49cd7d237d68ef Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/913 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-10-11 Spencer Oliver * : gdb: fix extended-remote restart Seems versions of gdb > 6.8 require an W stop reply after receiving a kill packet. Without this we receive the following error from gdb: gdb/thread.c:72: internal-error: inferior_thread: Assertion `tp' failed. Change-Id: I86765a321f0429c9b517fe13ded0ee2dbd4b2f87 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/911 Tested-by: jenkins Reviewed-by: Joel Bodenmann Reviewed-by: Freddie Chopin 2012-10-06 Freddie Chopin * : Fix serious bug in LPC2xxx/LPC17xx flash algorithm. Flash algorithm for LPC17xx/LPC2xxx was trying to "reuse" previously allocated working area on next flashing which is not possible - working areas are freed automatically on reset. This caused all but first flashing attempts to fail. As there is no point in storing pointer to working area, it was converted to local variable. Change-Id: I939946325ff9eecc4861c0f51ab0f73871a3d7b9 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/860 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-05 Matthias Blaicher * : rtos: Add ChibiOS/RT support This patch adds ChibiOS/RT support. This patch requires at least ChibiOS/RT development version starting from SVN revision 4734. Note, that the Thread structures depend not only on the target but also on the ChibiOS configuration at build time. To correct this ChibiOS includes a new "memory signature" which specifies the offsets. Special thanks go to Peter Stuge and Spencer Oliver for their continous input and feedback to this patch. Change-Id: I842bf7ba6c2309a4efe93d29ea6cd0784a8b22a3 Signed-off-by: Matthias Blaicher Reviewed-on: http://openocd.zylin.com/901 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-09-27 Spencer Oliver * : flash: update stellaris flash data to latest dev package 9453 Change-Id: I16107a093d4ed7342583f5c32ad16aa98f81d122 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/856 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-05-17 Paul Fertser * : rtos: support FreeRTOS over stlink Since stlink is a special case it presents the same CPU core under a different name, so copy the configuration to account for that. Change-Id: I9febf79b388301bde6211d185b5b8161cdadb9ff Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/652 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-09-30 Andreas Fritiofson * : dsp5680xx_flash: Remove unused flash bank structure Change-Id: I947b6730b3741a71303e440daefa4fcf583cb9cf Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/867 Reviewed-by: Freddie Chopin Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-09-30 Andreas Fritiofson * : flash/nor/stellaris: Remove unnecessary write_algorithm check The pointer must be non-null here since we returned if allocation failed. Change-Id: I9b75099ed3b3870c815d1df5760ed1f3fe1d20d6 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/866 Reviewed-by: Freddie Chopin Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-10-04 Spencer Oliver * : readme: update missing configure args Change-Id: I495a4557f161290f8f99788de27958f7dc08d6f6 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/900 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-10-04 Peter Stuge * : rtos: Rewrite rtos_qsymbol() and fix auto-detect false positive Matthias Blaicher submitted a patch at http://openocd.zylin.com/#/c/891/ to fix the false positive; when no RTOS was detected OpenOCD used the last RTOS in the list. While reviewing the code affected by Matthias' patch a rewrite seemed appropriate, to make the code readable. Matthias has abandoned his change and this change also fixes the false positive. Change-Id: Ic3327ccd036da52ba0a7e21ef93018205e74149c Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/895 Reviewed-by: Matthias Blaicher Tested-by: jenkins 2012-10-04 Peter Stuge * : rtos: Rewrite rtos_create() for readability The new code is almost functionally equivalent to the old; besides error handling the only difference is that the code is now readable. Many thanks to Matthias Blaicher for pointing out an iteration error in the rtos_try_next() change, which also affected this change. Change-Id: If38b87439e9de2303b220b3a7e3200ceaa8391da Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/893 Tested-by: jenkins Reviewed-by: Matthias Blaicher 2012-10-04 Spencer Oliver * : build: fix broken ftd2xx bus blaster If configure is executed without --enable-ft2232_ftd2xx then the bus blaster or presto will fail to build with unresolved external ftd2xx_status_string. Make sure we run the ftd2xx build test if --enable-usb_blaster_ftd2xx is enabled. Change-Id: I09d270d6fcd083d77f6785b8969d9acb3dfef11d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/892 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-09-26 Spencer Oliver * : cfg: cortino tested and working Change-Id: I13534742c76ebbb05b47bf98768c997068da747a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/851 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-26 Spencer Oliver * : cfg: ftdi icdi enable srst open drain config Change-Id: I21a115121f167dc88cd9bf2d1ca1ac9f3e1110d7 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/848 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-25 Spencer Oliver * : cfg: lm3s811ek config tested and working Change-Id: I5402b5521d6e1ef0a569f5cad02c003681f5444b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/847 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-25 Spencer Oliver * : cfg: stm32-performance stick config tested and working Change-Id: I9852d11e369e501af240a2b8e9f74306aee4e4a0 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/845 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-28 Spencer Oliver * : docs: enable local structs in doxygen output Change-Id: I9c811d49690524f1ce5372326de67ec4ac7b09f4 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/858 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-26 Spencer Oliver * : cfg: add ti ek-lm3s9d92 config Change-Id: Ib09ca3e57de363a24d704b184ba8546bad08f56f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/853 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-27 Spencer Oliver * : sysfsgpio: remove ignoring return value build warning fixes following gcc warning: error: ignoring return value of write, declared with attribute warn_unused_result Change-Id: I96ea6649078449208a77690caea2cb237c388e6e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/854 Tested-by: jenkins Reviewed-by: Marc Reilly Reviewed-by: Freddie Chopin 2012-09-26 Spencer Oliver * : cfg: add STM32F3-DISCOVERY board support Change-Id: I4a02e0504fc04ffc1238d9bb77ec05c1f781e7e8 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/810 Reviewed-by: Freddie Chopin Tested-by: jenkins 2012-09-26 Spencer Oliver * : cfg: fix incorrect str9-comstick reset config The str9-comstick uses a direct srst connection rather than via any buffer. As a result this fixes issues with the newer ftdi driver. Change-Id: I0968e8459997a6a2b7bf0c46e89662cd57b4f496 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/842 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin 2012-09-24 Spencer Oliver * : ftdi: correct ftdi_initialize error text Change-Id: If230c0b5b3a18fd273106b743404079d0cbc9ddc Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/840 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin 2012-09-27 Spencer Oliver * : cfg: fix incorrect stm32f3 TAPID Change-Id: Id66d4e03a77c47a49086ee753bed01b3944064e1 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/855 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-22 Spencer Oliver * : jtag: remove libftdi enum-compare warning See Trac #52 for details. Change-Id: Idb509ead2b51bfcceeb00d0224a4d1c395b28a04 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/801 Tested-by: jenkins Reviewed-by: Olivier Schonken Reviewed-by: Freddie Chopin 2012-08-16 George Harris * : Added SPIFI flash driver, algorithms, and docs Added a flash driver designed to allow program/erase of memory-mapped SPI flash chips for LPC43xx/LPC18xx family micros. This driver includes three algorithms - erase, write, and SPIFI peripheral initialization (to allow memory-mapped access after a reset). The driver has been added to the flash driver table (drivers.c), and the OpenOCD documentation has been updated to include the flash driver configuration command. Change-Id: I79f4ff8f1f07de4e5f2fe4f8c23aeb903f868514 Signed-off-by: George Harris Reviewed-on: http://openocd.zylin.com/783 Tested-by: jenkins Reviewed-by: Aurelien Jacobs Reviewed-by: Freddie Chopin 2012-08-20 Marc Reilly * : drivers: new jtag bitbang driver using sysfs gpio This driver implements a bitbang jtag interface using gpio lines exported via sysfs. The aim of this driver implementation is to use system GPIOs but to avoid the need for an additional kernel driver. A config suitable for RaspberryPi is included. Change-Id: Ib2acf720247a219768d1cbfeebd88057ed2d7b8b Signed-off-by: Marc Reilly Reviewed-on: http://openocd.zylin.com/762 Reviewed-by: Spencer Oliver Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-07 Freddie Chopin * : The openocd-0.6.0 release. Change-Id: I72eeabfc704d2a979ac0b4492771690631d2300f Signed-off-by: Freddie Chopin 2012-09-02 Chuen Chou * : flash: fix sam3 page read/write address computation error In at91sam3.c for Atmel SAM3 flash support, there are arithmetic errors in the functions sam3_page_read() and sam3_page_write(). Address locations are computed incorrectly due to an extra addition operation. This leads to memory locations being skipped during flash writes and reads. Smaller programs are written successfully into flash, with memory gaps, while larger programs of legitimate size fail because the skipped memory is not utilized and therefore unavailable. The changes address this condition, and have been tested with an Atmel SAM3X-EK evaluation board. Change-Id: I9ea3b9ed0130b71cbc32b2294e31a6a2bc71b47a Signed-off-by: Chuen Chou Reviewed-on: http://openocd.zylin.com/806 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-09-05 Spencer Oliver * : docs: add user mailing list and irc info Change-Id: I7000b5ab2967f8dc4cea8983978fce824ea1f98e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/807 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-29 Freddie Chopin * : Restore -dev tag. Signed-off-by: Freddie Chopin 2012-08-25 Salvador Arroyo * : Pic32mx: make row programming work with any offset In function pic32mx_write_block() if the parameter offset is not a multiple of row size the row offset (offset % row_size) will be ignored by the flash controller, shifting the code to the beginning of the row. Word programming gets it right. Change-Id: I134913e3d533688f791bbcb0c6e8983524197f3c Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/796 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Freddie Chopin 2012-08-28 Spencer Oliver * : stlink: fix typo Change-Id: I5fe7b695b00faef966e7621614bbd60b6e694a4f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/800 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin 2012-08-23 Andreas Fritiofson * : ftdi: fix overflow if last field of a scan is empty The last bit of a scan is clocked during TAP movement so it's necessary for the last field to have at least one bit. Strip trailing empty fields and make sure the TAP is not affected if there's nothing to scan. Clients probably shouldn't add empty fields so add a debug message to be able to track and fix them. Change-Id: I27552568bc11146570b9b99ed8a1ae81b5fb2c50 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/794 Reviewed-by: Spencer Oliver Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-28 Spencer Oliver * : adapter: remove superfluous line breaks Change-Id: I8e68b9d6f571ef7715a2f4cad0aa78fe4e3b48e8 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/798 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-17 Freddie Chopin * : Update NEWS Added some missing items to NEWS file prior to final 0.6.0 release. Change-Id: I69255c85fa8f4b6f06eae7c56f78072e3ec2d6f8 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/784 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-08-17 Freddie Chopin * : Add another scripts search path for Windows builds Add single "scripts" folder to search path for Windows OpenOCD builds that don't use cygwin bin/openocd.exe scripts/interface/dummy.cfg scripts/target/at91eb40a.cfg Do some refactoring of current code (thx to Andreas). Change-Id: Idbb08d1368b06f25da44f4f9ab1511db992b1724 Signed-off-by: Freddie Chopin Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/785 Tested-by: jenkins 2012-07-07 Christopher Kilgour * : kinetis: ensure flash writes are not truncated The number if longwords or "sections" (Freescale term) written for a Kinetis flash write (4, 8, or 16 bytes depending on the part density/granularity) are now rounded up to ensure there are no truncations when the desired write is not a multiple of the minimum write size. Change-Id: I8db40a8769d8ac5393a46cbf4e5ff0df82faf916 Signed-off-by: Christopher Kilgour Reviewed-on: http://openocd.zylin.com/738 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-22 Salvador Arroyo * : Patch: Make pic32mx unlock work at higher scan frequencies For example in a pic32mx220, pic32mx unlock don't work if adapter_khz is set to 5000 or more. A short delay after asserting reset fix the problem. Change-Id: I62e493edfcea585c36c8de77a969cebac7227b96 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/790 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-23 Spencer Oliver * : stlink: stlink_interface_init_target use hex prefix Change-Id: I782da74687bcf111c1f04c53b2c1120d6a034441 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/791 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-05 Salvador Arroyo * : Severe bug in Pracc code The function wait_for_pracc_rw() fails if Pracc bit is 0. The variable ejtag_ctrl is loaded with the content of the control register in the first scan. In the second scan Pracc bit is scanned out as 0, letting the proccesor go. The result is unpredictable. All the strange data corruption when scanning at certain frequencies, or the strange delays needed when entering or leaving fasdata area are retated to this bug. Now the code works at any scan frequency, tested up to 15000Khz and indepently of processor speed, tested at 31.25Khz and 4/8Mhz. Change-Id: Iedfd81d06d6af4bc738a521f720e42323025b268 Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/769 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-14 Andreas Fritiofson * : cfi: fix type-punning warnings in cfi_spansion_write_block Retest the condition when needed, instead of abusing the common_magic field as a flag. There are only two options here. Either it's an armv7m or it's another arm. is_arm(...) will return true even for armv7m, so it's imperative to check in the right order. Change-Id: Ic227f19f7babf1b0b0fe075f9a3abc4eabc7d5f1 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/779 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Freddie Chopin 2012-08-13 Spencer Oliver * : target: catch dap_lookup read error Issue found by clang-3.1 Change-Id: I2e922ec83117e75db5bec1e82edaa75a9e6e7464 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/778 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-13 Spencer Oliver * : tcl: fix potential memory leaks Reorder to allocate all memory after COMMAND_PARSE_NUMBER call. This removes a clang warning about un-released memory Change-Id: I8dbeb664a6467077157015bd879bc0aefc5e8614 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/776 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-10 Spencer Oliver * : flash: fix FC_FLEX_RAM class code path If the flash class was defined as FC_FLEX_RAM then this would always drop through to the default handler. This bug was found by clang, so untested. Change-Id: I2d9fe6415dd216728a145519400f7b9ef1bd3c3a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/773 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Mathias Küster 2012-08-07 Aurelien Jacobs * : ftdi: Olimex ARM-USB-TINY validated Flashing a CFI flash and debugging with gdb work fine. Change-Id: Ib2578ee6f41c1003968198439033d00d805122f7 Signed-off-by: Aurelien Jacobs Reviewed-on: http://openocd.zylin.com/770 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Freddie Chopin 2012-08-14 Spencer Oliver * : cfg: remove duplicate Olimex ARM-USB-OCD config This file is already included as olimex-arm-usb-ocd.cfg. Change-Id: I0e66977c58e74ac93a0dc3a0c88a5e5af4992f8b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/780 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-08-02 Freddie Chopin * : Restore "-dev" tag. Change-Id: Ibb7669ea73872d75a5c2f32f2264e57b1d0f20c7 Signed-off-by: Freddie Chopin 2012-08-02 Spencer Oliver * : target: add valid smp target check Check that the target is valid before calling any target functions. Change-Id: I538fccc79d5ec89976e14beab02cb20490b299bb Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/766 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-08-02 Freddie Chopin * : Add missing files (header and .txt) for release. make distcheck is used to make packages with OpenOCD release, this command uses information from Makefile.am files to know which files should be included in the package and which can be left only in repository. This patch makes a few headers from recent JTAG drivers and one txt file with info about target tcl config files included in released packages. Change-Id: I91202290633a30f53624a8c7d9a0ebf72c40772b Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/767 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-06-08 Alexander Osipenko * : arm946e: cp15 command returns value to the script Not just print it. This enables scripts to analyze valuable config options of arm946e-s cores, do internal BIST memory tests and more. Be careful to flush caches before disabling it. Do not forget that BIST test overwrites memory. - cp15 rewritten from COMMAND_HANDLER to jim_handler. Change-Id: I734da0be6db0a3127c2daa94ed75efef94da8ceb Signed-off-by: Alexander Osipenko Reviewed-on: http://openocd.zylin.com/694 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-07-31 Alexander Osipenko * : arm946e: don't use global variables for context Global variables 'dc' 'ic' had been used in the code to keep target's state of D-cache and I-cache on debug entry. This may lead to incorrect operation in configurations with multiple cores and unequal cache states. Fix: move cache state to the appropriate bits of the 'cp15_control_reg' field (already present but unused). Vaule of cp15 control register stored here on arm946e_post_debug_entry(), and analyzed later in arm946e_write_memory(). Change-Id: I71ef82be00c21d6fffb3726cec4974d1ece70dfe Signed-off-by: Alexander Osipenko Reviewed-on: http://openocd.zylin.com/692 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-07-25 Joerg Fischer * : cfg: Add Hitex LPC1768-Stick using ftdi driver Add cfg files for Hitex LPC1768 Stick Website: http://www.hitex.com/?id=1602 This board has a FTDI2232D as JTAG interface, using the same layout as the Hitex STM32-PerformanceStick but with different USB PID. Main MCU is a LPC1768 from NXP. The interface config uses the ftdi driver instead of ft2232. The corresponding ft2232 layout would be "stm32stick". Change-Id: I1fd15588c5af35f7d51777d1ad958cc1dc72c6f7 Signed-off-by: Joerg Fischer Reviewed-on: http://openocd.zylin.com/763 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-07-19 Freddie Chopin * : cfg: Add config file variants using the ftdi driver instead of ft2232 part 4 - files that are currently untested Change-Id: Ic4a08fdefc99e7a9d50885c888c3fca60ffa39bd Signed-off-by: Andreas Fritiofson Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/750 Tested-by: jenkins 2012-07-20 Freddie Chopin * : cfg: Add config file variants using the ftdi driver instead of ft2232 part 2 - files that are currently untested but assumed to work, as other configs using the same layout work fine Change-Id: Ifaa1904227ebdc394362ccaf3ad3c5384a716657 Signed-off-by: Andreas Fritiofson Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/754 Tested-by: jenkins 2012-07-19 Spencer Oliver * : telnet: cleanup comments seems comments were mangled during the last cleanup. Change-Id: If759f62032705c7baffd3973e9717eb7e8a5d17c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/752 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-06-07 Salvador Arroyo * : Bugfixes in mips32_pracc.c When testing a pic32mx220f032b with different values for adapter_khz and cpu clocks i was getting a lot of corrupted data from the chip. From time to time openocd fails with segmentation faults or is aborted due to memory corruption. Change-Id: I134743f75c477b3d55dc74ae4474598e153b4a4a Signed-off-by: Salvador Arroyo Reviewed-on: http://openocd.zylin.com/690 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin 2012-07-17 Andreas Fritiofson * : flash: reduce code duplication in stm32 flash probe Remove a lot of the repetitive code in stm32f1x flash probe by converting the large if-selector to a switch, moving the common checks outside it and concentrating the failure handling to a single point. Do the same with stm32f2x and stm32lx for consistency. Change-Id: Ic0ecfb1533c49f5d2108cda5fd20c8372d7c71ef Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/746 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Freddie Chopin 2012-07-12 Spencer Oliver * : flash: handle zero when reading stm32 flash size reg Some variants read 0 for the flash size register, rather than failing lets assume we have max flash fitted. Change-Id: Ie1fb4e73606f49268a6fd5921c3aef75bc4790d3 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/744 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin 2012-07-12 Spencer Oliver * : flash: add stm32l Revision X support Revision X is not mentioned in the latest RM0038 rev5, however it has been confirmed correct by ST using ST-LINK Utilty. Change-Id: I65210e512ea25818a1d0d3b223502ebd7535b29d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/742 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin 2012-07-11 Andreas Fritiofson * : cfg: remove deprecated stm32 target configs These were deprecated in commit 69ac20a. Signed-off-by: Andreas Fritiofson Change-Id: I047872f8cd61b42aaca6588ab75566219e4a3f5d Reviewed-on: http://openocd.zylin.com/741 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Spencer Oliver 2012-07-11 Andreas Fritiofson * : flash: don't write to FLASH_CR in stm32x_write_block It's unnecessary and prevents reusing this function to fix option byte writes. Also try to disable flash writing after an error. Change-Id: Ib5a7b768a1523e6b8da1555126fef4c1e60ab083 Signed-off-by: Szymon Modzelewski Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/479 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-07-20 Alex Austin * : Revert "When calling openocd from a shell like this:" This reverts commit e8641695c634109ebf5f1149923971770da1d28a Original premise was wrong. Proper command is "shutdown", not "exit". Change-Id: I07f5fe0dda9c24abe53628da986bfda0e406bb4a Signed-off-by: Alex Austin Reviewed-on: http://openocd.zylin.com/757 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-07-17 Freddie Chopin * : Add config file for Lattice LC4032ZE CPLD (ispMACH 4000ZE family) Change-Id: Iefec12b30ff737317c454b472200fd7e7edde619 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/748 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-01-30 Andreas Fritiofson * : Add FTDI JTAG driver using MPSSE layer Based on ft2232.c but uses the MPSSE layer for low-level access, greatly simplifying the JTAG logic. Remove all libftdi/FTD2XX code and all layout specific code. Layout specifications are instead handled in Tcl. Use a signal abstraction to enable Tcl configuration files to define outputs for one or several FTDI GPIO. These outputs can then be controlled using the ftdi_set_signal command. Special signal names are reserved for nTRST, nSRST and LED (for blink) so that they, if defined, will be used for their customary purpose. Depending on the type of buffer attached to the FTDI GPIO, the outputs have to be controlled differently. In order to support tristateable signals such as nSRST, both a data GPIO and an output-enable GPIO can be specified for each signal. The following output buffer configurations are supported: * Push-pull with one FTDI output as (non-)inverted data line * Open drain with one FTDI output as (non-)inverted output-enable * Tristate with one FTDI output as (non-)inverted data line and another FTDI output as (non-)inverted output-enable * Unbuffered, using the FTDI GPIO as a tristate output directly by switching data and direction as necessary The data and output-enables are specified as 16-bit bitmasks, corresponding to the concatenation of the high and low FTDI GPIO registers. To specify an unbuffered output, use the same bitmask for both data and output-enable. The adapter configuration file must also specify default values for the FTDI data and direction GPIO registers, and the channel being used (if different from 0). Change-Id: I287a41d4c696cf5fc74eb10d5e63578b0dc7f826 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/452 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-06-27 Spencer Oliver * : target: Cortex-M use consistent arm dap access Purely cosmetic but use the same style as Cortex-A target, this makes searching refs easier. Change-Id: I732ad9701f561e2312c5d191f5aaffd3a2f2393d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/731 Reviewed-by: Freddie Chopin Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-07-04 Spencer Oliver * : flash: add stm32f3x support add support for the new stm32f3x family from stmicro: http://www.st.com/stm32f3 Change-Id: Icd1db95bb2767d9c0ecef24deefa92b4fdaa4f14 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/735 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Andreas Fritiofson 2012-06-27 Spencer Oliver * : target: detect correct Cortex-M tar auto increment size The ADIv5 spec guarentees that tar_autoincr_block will be 10bits. Make this the default for Cortex-M family until we detect a Cortex-M3/M4, we then change autoincrement to 12bits. Change-Id: Ie8c89134aa036879bdd8a3c312cee9715dbc6913 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/730 Tested-by: jenkins Reviewed-by: simon qian Reviewed-by: Freddie Chopin 2012-02-18 Stian Skjelsad * : When calling openocd from a shell like this: openocd -f board/sheevaplug.cfg -c init -c exit the calling shell will believe that openocd exited with an error due to exitval will be non-zero This is not tested against incomming telnet Change-Id: I63d15715a7b46f39a7de261a45039f8c3cad7a98 Signed-off-by: Stian Skjelstad Reviewed-on: http://openocd.zylin.com/470 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Bill Traynor Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin 2012-05-24 Vandra Akos * : target/target.c, jim_target_md refractored - Added a few lines of comment before the function explaining the usage and the output generated by the command - Added a few lines of comment in the body explaining what is happening to improve code readability - Renamed a few variables to improve readability: * a -> addr * b -> dwidth * c -> count - Added a new variable, named byte to contain the number of bytes to read, instead of overwriting the count parameter, to avoid confusion between the two values. Change-Id: I5828ec0f5aadaa39becec7b84f198756bb2c3d41 Signed-off-by: Vandra Akos Reviewed-on: http://openocd.zylin.com/665 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-05-29 Mike Crowe * : topic: flash: description/id added for ATSAM3SD8C New flash description for ATSAM3SD8C used on SAM3S-EK2 development boards. Name used is "at91sam3sd8c" and chipid is 0x29ab0a60. Mirrors description of other similar parts. Change-Id: I7fc4b82e7969451645ab067223663f08b76d866b Signed-off-by: Mike Crowe Reviewed-on: http://openocd.zylin.com/684 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-06-04 Olivier Schonken * : Changed SAM4S Erase for effective Sector erase In the previous iteration, the page counter for erases would not be updated with the erase size. This patch keeps the page counter synced with the sector counter. Signed-off-by: Olivier Schonken Change-Id: I95e56a3257b2ad8301c9f28167b842fa6466334f Reviewed-on: http://openocd.zylin.com/686 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-05-23 Christopher Kilgour * : kinetis: update support for all program flash granularities Updates the Kinetis NOR flash support to handle all known block and sector sizes. Previously only 2kiB sectors were hard-coded, now all four known combinations non-volatile sector sizes are supported. The premise of separating Kinetis Program Flash (PFLASH) from FlexNVM is also introduced. This means each "block" of flash (in Freescale terms) is treated as a bank in OpenOCD. Correspondingly, the existing board configuration for the TWR-K60M512 eval system is updated to recognize two banks instead of one. A board config for the TWR-K60F120M is also added. Bank and sector erase and programming has been checked with both of the mentioned eval boards. Change-Id: Iae2d10ebf8f548d0a3698df5430bbbe1ccadc58a Signed-off-by: Christopher Kilgour Reviewed-on: http://openocd.zylin.com/663 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Jan Dakinevich Reviewed-by: Spencer Oliver 2012-05-28 Alexander Osipenko * : JLink: added jlink_usb_io() function jlink_usb_io() function added for basic communication, since jlink_usb_message() is more specific to JTAG transactions. To verify the patch issue "jlink config" command. Change-Id: Id7d10bd5e8985d4c77f2e0ca47fb6033db2877bf Signed-off-by: Alexander Osipenko Reviewed-on: http://openocd.zylin.com/679 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Spencer Oliver 2012-05-29 Liviu Ionescu * : docs: J-Link commands added to the manual The J-Link related commands and configuration commands were added to the "8.2 Interface Drivers" section of the manual. (previously they were enumerated as comments). The 'jlink pid' was marked as Config all other as Command. A draft of a compatibility note was added, but probably a table would be more appropriate. Change-Id: Ifbe230706815196aaad4e3729ed5089d5088b769 Signed-off-by: Liviu Ionescu Reviewed-on: http://openocd.zylin.com/680 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-06-22 Mirela Tauciuc * : AT91SAM7 Flash: fixed redundant assignation warning Change-Id: Iffacdce9ce90c4ea7e0c8647860a0056b952f387 Signed-off-by: Mirela Tauciuc Reviewed-on: http://openocd.zylin.com/691 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-05-29 Spencer Oliver * : docs: update interface support in README Change-Id: Id4b982ee426dedc85b643a71c1cdba67d0dd0ffd Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/682 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-05-25 Spencer Oliver * : build: remove src file execute permission Change-Id: I42a250cdfcd03424a63cd1a255f9cf4a3c6e3ccd Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/671 Reviewed-by: Xiaofan 2012-05-23 Spencer Oliver * : target: fix segfault in arm7_9 8/16bit read Seems I5347352e7595686634bd0de13fcf6de6e55027b0 introduced an issue when reading 8/16 bit data - the in buffer was always set to 32bits. Change-Id: Ife2bb6a20fcb3ec0e486655512164f25ae9196b4 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/660 Tested-by: jenkins Reviewed-by: Mathias Küster 2012-05-09 Mathias K * : board: Add Sony Ericsson J100I Phone This patch add the Sony Ericsson J100I Phone to the board configurations. Change-Id: I083ddf067c8ecdfdda0404fe9e9df980dbb86fe8 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/631 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-05-22 Bill Traynor * : jtag: fix osbdm.c typo Fixing up tiny spelling error of "receive" vs. "recieve". Change-Id: Ib143d7fdb24ac1f2b7bd4ae90cadaf2e12760ff7 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/659 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Peter Stuge 2012-05-22 Spencer Oliver * : jtag: remove opendous clang warnings Change-Id: I0285c99507931e7d13aad36f4fc559c29a52faca Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/655 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-05-21 Spencer Oliver * : target: target.h typo and comment cleanup Change-Id: Ib751803754672bf556f4f65bd3f5621f6bbb7f0c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/654 Tested-by: jenkins Reviewed-by: Bill Traynor 2012-05-14 Spencer Oliver * : target: enable TARGET_EVENT_RESUME_* events Change-Id: I7d8378f9f34c6674db8c8b29d1a961389578e921 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/640 Reviewed-by: Freddie Chopin Tested-by: jenkins Reviewed-by: Bill Traynor 2012-05-10 Spencer Oliver * : target: remove duplicate target events Change-Id: Iba9ae441f3e6d48a7dfafe59ed093fef56a34723 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/633 Reviewed-by: Freddie Chopin Tested-by: jenkins Reviewed-by: Bill Traynor 2012-05-15 Bill Traynor * : UserGuide: Updated list of supported interfaces, boards, and targets. User Guide: Chapter 6 'Config File Guidelines'. The directory listings of interfaces, boards, and targets has been brought up to date. Change-Id: I53f218a94cb81c5e90298b367259e833192af5f3 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/646 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Spencer Oliver 2012-05-14 Spencer Oliver * : NEWS: add headline items Change-Id: Ie78b0a171af76cf647deef501245caf54209d9f8 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/639 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Xiaofan 2012-05-17 Spencer Oliver * : stlink: add myself to copyright header Change-Id: I39e23b38ee630b80bccb5ff6b5819efa0fcb120a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/651 Tested-by: jenkins Reviewed-by: Xiaofan 2012-05-15 Spencer Oliver * : contrib: enable cortex-m0 and cortex-m4 libdcc support Change-Id: Ib8ff645d1e5b8baca02de8ea95b629d88b203969 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/644 Tested-by: jenkins 2012-05-17 Alexander Osipenko * : remote_bitbang: missed closing brace in macro REMOTE_BITBANG_RAISE_ERROR Change-Id: I591308bd98810ef6361106c207c55b83c3a83890 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/647 Tested-by: jenkins Reviewed-by: Xiaofan 2012-05-14 Spencer Oliver * : docs: add initial target rtos support info Change-Id: Idd39ce17922602aedd4626496ed8f5422bb76e07 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/641 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-05-11 Spencer Oliver * : stlink: add armv7m stlink handling This enables us to better handle some of the low level functions that the stlink does not support. It also enables us to share a few more of the standard cortex_m3 functions if necessary. Change-Id: I7a2c57450122012ec189245d8879d8967913e00e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/637 Tested-by: jenkins 2012-05-03 Spencer Oliver * : flash: fix protect check for pic32mx1x/2x family Change-Id: Ib2692d8b79e52cd40f429008047494aa7f552984 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/612 Tested-by: jenkins Reviewed-by: Xiaofan 2012-05-08 Spencer Oliver * : stlink: fix stlink api2 single step This makes the newer v2 api behave as per the v1 api, eg. single stepping masks all interrupts. A better long term solution is to use same behaviour as a cortex-m3 target, see CORTEX_M3_ISRMASK_AUTO. Change-Id: Iaf9f9adf225cf274faaac938050bb996582aa98f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/621 Tested-by: jenkins 2012-05-04 Spencer Oliver * : stlink: stlink/v1 use v2 api if supported The api v2 is supported on the stlink/v1 if it has a least v11 firmware. Change-Id: Idfdb5a7f5a5881326017451ae9b6004eeaa46a96 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/616 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Xiaofan 2012-05-01 Freddie Chopin * : Use hardware reset and connect under reset on boards with ST-LINK/V2, as now it is supported. Change-Id: Id3b2ca9a2270974a5f453323f9057ecece400c94 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/609 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-05-01 Spencer Oliver * : stlink: support connecting under reset Some targets support connecting while the target's srst is asserted. Tested on stm32 family. Change-Id: I1197dd721a1e1cbf95ee77dfd8e1082b165b22a9 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/607 Tested-by: jenkins 2012-05-08 Aurelien Jacobs * : cfi: fix write_bank segfault with spansion flash on armv7m cfi_spansion_write_block() passes an arm_algorithm struct to target_run_algorithm() which in turn calls armv7m_start_algorithm() which expect an armv7m_algorithm struct. As armv7m_algorithm is bigger than arm_algorithm, when armv7m_start_algorithm() writes in the struct, it overrun the buffer, writting junk on the stack, which latter on generates a segfault. This patch ensure we use a properly sized armv7m_algorithm struct when the target is an armv7m. Change-Id: I4ab67c15ae4bb72454414a81b92a4231dcdb2239 Signed-off-by: Aurelien Jacobs Reviewed-on: http://openocd.zylin.com/623 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-05-03 Spencer Oliver * : cfi: check supported arch check that the cfi driver supports the current target arch. Change-Id: I8a95908684de67bf1657d1956f2573662a641cc1 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/614 Tested-by: jenkins Reviewed-by: Aurelien Jacobs 2012-05-01 Spencer Oliver * : build: add missing erase_check loader src Change-Id: I1534c1ea1606fda9eb6ffa6a11a708f8c8a3d46a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/605 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-05-11 Spencer Oliver * : contrib: fix Neo1973 udev permission typo Change-Id: I6d5ad0cc28e0cb52104ead9e974b8b1ed92d9cdc Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/636 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-04-30 Spencer Oliver * : cfg: increase stm32f0discovery board working area Change-Id: Iea166ee27fc60bbfdeb851fdcf71509f3984f72f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/602 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-05-08 Bill Traynor * : cfg: Deleted duplicate busblaster.cfg and renamed original. The busblaster.cfg was contributed on April 23, 2012 and is a duplicate of dp_busblaster.cfg that was contributed on Oct. 23, 2011. Therefore, deleting the second version. Also, renaming the original dp_busblaster.cfg to simply busblaster.cfg, as this name is more concise. Change-Id: Iccb1f10f53dbbb248b1ff4c6295eaf67c32247c1 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/622 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-05-07 Bill Traynor * : cfg: add default pid/vid pair to beaglebone board cfg. The newer versions of BeagleBone boards use the default vid/pid pair for FT2232 debugging. Please see the following README: http://beagleboard.org/static/beaglebone/latest/README.htm On revision A3/A4 boards, the VID/PID were chosen to match the TI XDS100v2 (0x0403/0xA6D0). On A5 and newer revisions when we've given the authors of CCS the chance to update their software, the generic FTDI VID/PID (0x0403/0x6010) will be used to simplify installation of drivers for systems already having those drivers. Change-Id: I44228eb2029162f23d084eb05bcfef39e615668d Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/619 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-04-27 Spencer Oliver * : build: remove clang unused variable increments warnings Change-Id: Ib755474aa46f7233495fae1947bc27cd0b2d6b4f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/599 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-04-27 Spencer Oliver * : cfg: allow stm32discovery parameter override This enable the user or board config to override the parameters passed to stm32_stlink.cfg. Required to fix a incorrect working area bug with the stm32vldiscovery. Change-Id: I40a4f7913ff37d577d44b1f23befccf0317080a1 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/597 Tested-by: jenkins Reviewed-by: Freddie Chopin 2012-04-19 Spencer Oliver * : stlink: support srst reset This adds the ability to support srst reset for the stlink/v2. stlink/v1 will fallback to using SYSRESETREQ which is a full reset - including peripherals. To enable the use of the srst add the following to your cfg: reset_config srst_only Change-Id: I570de607c5f370fd6a4abf47360686c9be07bcdd Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/581 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin 2012-04-19 Spencer Oliver * : stlink: add hardware srst functions to stlink/v2 Change-Id: Ib82b6a1116b9f396f1933cc5526733334254fd62 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/579 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Mathias Küster 2012-04-19 Spencer Oliver * : stlink: default to latest api available Change-Id: Ic04128f4020055587bb87250f41e5c804d9c2b01 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/577 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin 2012-04-05 Spencer Oliver * : stlink: support stlink api result The stlink api does support results for some functions - add support. Change-Id: I39cb495408c46af8bc343b198a1e0bd4c7aee6d8 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/560 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin 2012-03-18 Olivier Schonken * : topic: Added support for the SAM4S variants Atmel introduced 6 new Cortex-M4 processors on 2011-10-26 SAM4S16C - 1024KB flash LQFP100/BGA100 SAM4S16B - 1024KB flash LQFP64/QFN64 SAM4S16A - 1024KB flash LQFP48/QFN48 SAM4S8C - 512KB flash LQFP100/BGA100 SAM4S8B - 512KB flash LQFP64/QFN64 SAM4S8A - 512KB flash LQFP48/QFN48 The SAM4S processors still suffer from the "6 waitstates needed to program device" errata. Other relevant changes are: 1. Address of flash memory starts at 0x400000. 2. EWP (Erase page and write page) only works for the first two 8KB "sectors" 3. Because of the EWP not working for all the sectors, normal page writes have to be used. The default_flash_blank_check is used to check if lockregions should be erased. 4. The EA (Erase All) command takes 7.3s to complete. (Previous timeout was 500 ms) 5. There are 128 lockable regions of 8KB each. Implemented default blank checking, and page erase for load_image scenarios. This is to compensate for the EWP flash commands only working on the first 2 8KB sectors. Change-Id: I7c5a52b177f7849a107611fd0f635fc416cfb724 Signed-off-by: Olivier Schonken Reviewed-on: http://openocd.zylin.com/528 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-24 Linus Tolke * : topic: Ignored TAGS files. Allow use of TAGS. Change-Id: I5e71e8986671642b49cc9a62d37cc8c0dfa37181 Signed-off-by: Linus Tolke Reviewed-on: http://openocd.zylin.com/595 Reviewed-by: Peter Stuge Tested-by: jenkins 2012-04-22 Bill Traynor * : UserGuide: Fixing link to USBprog tool. In section '2.8 USB Other' updated the link to the USBprog tool: http://shop.embedded-projects.net/ Change-Id: I7fa453934ac6a7889e01b22b7e0cb07f42ee168d Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/591 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-22 Bill Traynor * : UserGuide: Fixed link to Wiggler2 project. In section '2.9 IBM PC Parallel Printer Port based' fixed link to the Wiggler2 project and removed the alternate URL text to retain style consistency with the other URLs in the document: http://www.ccac.rwth-aachen.de/~michaels/index.php/hardware/armjtag Change-Id: I879db1c6eaf683ca6475a0f466f987087c9d60d0 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/593 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-22 Bill Traynor * : UserGuide: Fixing two typos. In Section 2.7 USB ST-LINK based made these two changes: "they only works with" to "they only work with" "following method's" to "following methods" Change-Id: Idfe6c11c3fa6f2157d01697cd7f480a9d495c8e2 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/590 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-15 Uwe Hermann * : Split olimex_stm32_h107.cfg. Use one board file per eval board, so that the filename matches the exact board the user has / wants to use. Merging different boards into one file is confusing. Change-Id: I7c50233924a87a913723d7215c4851039c2971bc Signed-off-by: Uwe Hermann Reviewed-on: http://openocd.zylin.com/566 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-19 Bill Traynor * : UserGuide: Update Section 2.3 USB FT2232 Based Updated the link for the usbjtag project to the correct URL: http://elk.informatik.fh-augsburg.de/hhweb/doc/openocd/usbjtag/usbjtag.htmlAdded a NOTE to indicate the axm0432_jtag as no longer being available from the axman.com page. Change-Id: I70727303dad58d9dc0c5f9b7cce219288b762042 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/583 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-19 Bill Traynor * : UserGuide: Fixed link to USB-JTAG project. Updated the URL to Kolja Waschk's USB-Blaster compatible adapter: http://ixo-jtag.sourceforge.net/ Change-Id: If9d2875b5ba5d3bfaaf524cd253a5fab53e05371 Signed-off-by: Bill Traynor Reviewed-on: http://openocd.zylin.com/585 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-18 Bill Traynor * : HACKING: Fix instruction for git pull --rebase When following the Patch Guidelines step by step, an error occurs at step 6. "git pull --rebase origin/master" results in the error: fatal: 'origin/master' does not appear to be a git repository Removing the / seems to fix this. Change-Id: I4e2fa23c60654abeaebd3b25a8c8375aa07b0abd Signed-off-by: Bill Traynor Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/574 Reviewed-by: David Anders Tested-by: jenkins 2012-04-18 David Anders * : pandaboard: add initial TCL support for pandaboard-es add initial TCL support for the pandaboard-es which is based on the omap4460 from Texas Instruments. Change-Id: Ic63588721487feb95e7cb3d41cfaab0d2f181766 Signed-off-by: David Anders Reviewed-on: http://openocd.zylin.com/573 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-04-18 Spencer Oliver * : cfg: add stm32f0discovery board config Change-Id: I4fccdbd4e0a3bc70cd425c910ad1007519098e20 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/570 Reviewed-by: Peter Stuge Tested-by: jenkins 2012-04-05 Spencer Oliver * : stlink: correctly format printed hex addresses Change-Id: I4a139989927249bb5e9dcc4804965c85c37cc09b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/559 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-04-04 Stephane Bonnet * : ft2232: Support for Digilent HS1 USB adapter * Added support to the FT2232 driver for the FT2232H-based Digilent HS1 adapter. Change-Id: Iab6cc15f299badaf115615b5d4d785ecb2273c27 Signed-off-by: Stephane Bonnet Reviewed-on: http://openocd.zylin.com/558 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-27 Wjatscheslaw Stoljarski (Slawa) * : cfg: add imx53loco board config Add board config for iMX53QSB (loco) Change-Id: I8659dcd71a56d5fe855eaf62be0a415198b558c5 Signed-off-by: Wjatscheslaw Stoljarski (Slawa) Reviewed-on: http://openocd.zylin.com/542 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-04 Simon Widmer * : Support for KaRo TX25 CPU Module on a StarterkitV base board This patch adds support for the KaRo TX25 module on a StarterkitV base board. For board details, check http://www.karo-electronics.com/tx25.html Change-Id: I2c80c5467bc476955b55196728aa3c37c8185e6c Author: Simon Widmer Signed-off-by: Mark Vels Reviewed-on: http://openocd.zylin.com/557 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-04-04 Spencer Oliver * : doxygen: remove warnings Change-Id: I020845a8df7b67f3b6c1a233b3ee07a5d14fa685 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/556 Tested-by: jenkins 2012-04-02 Salvador * : Minor bug fixes in Mips32 code Now the the "Fast" version for memory blank check in pic32mx.c can be called: default_flash_blank_check() instead of the "fallback" default_flash_mem_blank_check(). The command "verify_image", without working area, now don't show: checksum mismatch - attempting binary compare when there are no real errors in flash. Change-Id: I256e8ae949289634e1de5c1c2861e4c4c4b7fdce Signed-off-by: Salvador Reviewed-on: http://openocd.zylin.com/549 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-30 Spencer Oliver * : docs: remove unused primer ref we already have a link to the patch primer in the main index. Change-Id: Ib90ade76a17f5d99da8fe481d8f87c68eca38f1c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/546 Tested-by: jenkins 2012-04-02 Uwe Hermann * : Initial config for the Voltcraft DSO-3062C. This is a digital oscilloscope which uses a Samsung S3C2440 internally. http://randomprojects.org/wiki/Voltcraft_DSO-3062C Signed-off-by: Uwe Hermann Change-Id: I5e28c3a8f30665a162e34c831294e4e658a16ebb Reviewed-on: http://openocd.zylin.com/548 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-03-20 Spencer Oliver * : jimtcl: update to version 0.73 Change-Id: I9c943abb3ec5148b9cb24d0823f7787066948201 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/536 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-03-15 Mathias K * : stm32: Update register read/write to the register definition. This patch fix the register index on read/write register. Change-Id: I7b52a927a48259d6f497ac0f474aff7ff1529e9a Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/525 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-30 Spencer Oliver * : build: correctly quote m4 parameters Change-Id: I8fbef892caa78dba5324a8bc28d2a4a4854b1f48 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/544 Tested-by: jenkins 2012-03-26 Spencer Oliver * : cfg: add STM32F4x and STM3241G-EVAL config files This adds support for the STM32F4 target and the STM3241G Eval Board, in both standalone and using the onboard STLINK. Change-Id: I62f8908b5880568b2b36c78a78f94c40861ff335 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/540 Tested-by: jenkins 2012-03-06 Olivier Schonken * : Added tcl config scripts for SAM3A/X targets and devboard The SAM3A/X processors that were released thus far is either a SAM3A/X(4) - 256K, or a SAM3A/X(8) - 512K device. Thus the config files are per variant, and not per device. Signed-off-by: Olivier Schonken Change-Id: I84d26d044e810eb428b1d6287907ea3bf8364c73 Signed-off-by: Olivier Schonken Reviewed-on: http://openocd.zylin.com/522 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-20 Spencer Oliver * : tools: update release scripts to use configure.ac we have already updated autoconf to use configure.ac instead of configure.in, so update release.sh to use the new name. Change-Id: I2dc2beaf2f85058c4627183bc093052677ccba1b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/537 Tested-by: jenkins 2012-03-08 Chris Morgan * : Create a init_board procedure for the ea dev board. Signed-off-by: Chris Morgan Change-Id: I082b0d3092c7f3b2ee6b68af64d48c78b31f1dbf Reviewed-on: http://openocd.zylin.com/510 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-17 Salvador * : Bug in src/target/mips32_pracc.c The bug shows up with the command "mdw addres count" and only if count>1024 (count>0x400). The first 1024 values shows as expected, but the rest of the values are wrong. Name of variable bytesread" is changed to "wordsread" to reflect what really does. Change-Id: Iad79393e72da2637551c5ae6e829e3873605c520 Signed-off-by: Salvador Reviewed-on: http://openocd.zylin.com/527 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-15 Mathias K * : gdb_server: Simple close the connection and not exit openocd. This patch let openocd running and only close the gdb connection on error. Change-Id: Ifb88e16834b51207cc4c82210eab904ed8d30b71 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/523 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-14 Paul Fertser * : rtos: add sanity checking for FreeRTOS's quantity of priorities On operating systems with opportunistic malloc() (e.g. default setting in GNU/Linux) malloc can sometimes allocate a huge memory region but later the process will get killed on the first attempt to use this memory, so checking for malloc's return value is not enough to prevent a crash. This patch is compile-tested only. Change-Id: I5e21663115c8e9a0ca9f3d71f7ba4bd09e5c3bb1 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/521 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-24 Alexandre Pereira da Silva * : stlink: fix alignment build warning The {read,write}_mem32 interface functions was asking a 32 bits buffer but they don't need 32 bits alignment. This will change the interface to a 8 bits buffer to remove the alignment mismatch warning. This was causing build errors on platforms with strict aliasing rules. Change-Id: I338be8df5686f07a64ddb4f17c1bb494af583999 Signed-off-by: Alexandre Pereira da Silva Reviewed-on: http://openocd.zylin.com/483 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-13 Mathias K * : armv7m: Add a dummy register at the end of the register list. Signed-off-by: Mathias K Change-Id: I0bfad091bd8adabd949fc0a74ef3a08a514eb307 Reviewed-on: http://openocd.zylin.com/519 Reviewed-by: Peter Stuge Tested-by: jenkins 2012-03-12 Mathias K * : stm32: determine all cpu types and use common examine This patch determine all cpu types and not only the cortex M3 and the stm32 target use the common target examine function from the cortex_m sources. Change-Id: If689dd994b3855284b927fc4b206f420cf32b6c7 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/511 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-08 Mathias K * : Automatically prepend v1 mass storage protocol. This patch prepend the v1 mass storage protocol to the command buffer and simplify the usb read/write handling. Change-Id: I709602600e93cd1eb5848fa9f4d15659ba85eb35 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/506 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-03-12 Spencer Oliver * : cfg: correct pic32mx config typo's Change-Id: Ibe5b6b0efefc7cfc75d789eb7e9c7ee239526ae2 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/508 Tested-by: jenkins 2012-02-28 Jan Dakinevich * : jtag: basic support for P&E Micro OSBDM (aka OSJTAG) adapter This driver provides support for the P&E Micro OSBDM adapter (sometimes named as OSJTAG), mounted on the Freescale TWRK60N512 bord. Thus, it provides a quick start when working with this board. The driver doesn't use BDM commands, but work with OSBDM adapter using only JTAG commands. Change-Id: Ibc3779538e666e07651d3136431e5d44344f3b07 Signed-off-by: Jan Dakinevich Reviewed-on: http://openocd.zylin.com/492 Tested-by: jenkins Reviewed-by: Tomas Frydrych Reviewed-by: Spencer Oliver 2012-03-08 Spencer Oliver * : docs: add stm32 dual bank example Change-Id: I1dfe134e2c7694fc978d14b4b21bdf9c82ca4b16 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/507 Tested-by: jenkins 2012-03-05 Øyvind Harboe * : flash: retire unused eCos flash driver even the AT91EB40a's flash is covered by CFI and nobody ever submitted any other drivers based on eCos code. It's just possible that this idea was missing documentation and "marketing", but it's in git if somebody wants to resurrect it. Change-Id: I66449aa6e0997301f9d67f28098789bfc891d6e9 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/502 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-02-25 Szymon Modzelewski * : flash: stm32f1x: add a couple missing stm32x_get_flash_reg Change-Id: I163de2c1bd962e7ea9ca6c741c1c62224c210677 Signed-off-by: Szymon Modzelewski Reviewed-on: http://openocd.zylin.com/486 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Spencer Oliver 2012-02-29 Spencer Oliver * : stlink: fix incorrect pc console output target_call_event_callbacks needs to be called after debug entry otherwise we will get a console pc mismatch. Change-Id: I278137736d5e85ca9662c306f6ac81336d8eb6cf Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/499 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-02-28 Attila Kinali * : SAM3: Remove unused reference to SUPC registers The SUPC (Supply Controller) registers are on different base addresses on different SAM3 chips: SAM3U: 0x400e1210 SAM3N: 0x400e1410 SAM3S: 0x400e1410 This creates a problem with the sam3_reg_list array which is const, but would need to be changed at runtime to account for this variability. As this register is not used anywhere, it's simplest to just remove it. Change-Id: I987eb371648d826aa6d5e9de18d38c7bb66d6fca Signed-off-by: Attila Kinali Reviewed-on: http://openocd.zylin.com/495 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-28 Attila Kinali * : SAM3S: correct flash sector sizes. Lock region count and sector sizes did not match datasheet. (see 6500C-ATARM-8FE11 "SAM3S Series Datasheet", Table 7-1) Change-Id: Ic511802f96ed03856467a24a6736349205a0576a Signed-off-by: Attila Kinali Reviewed-on: http://openocd.zylin.com/493 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-21 Szymon Modzelewski * : stlink-v1: fix memory writes implement stlink_usb_send and use it to fix stlink_usb_write_mem using two calls to stlink_usb_recv is inappropriate since each call issues a SG command on stlink-v1, resulting in errors Change-Id: I24ef9f2dda284e041dc4a532b59968a77eebe702 Signed-off-by: Szymon Modzelewski Reviewed-on: http://openocd.zylin.com/498 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-21 Szymon Modzelewski * : stlink-v1: code cleanup This patch moves the bulk of the stlink read/write code into the stlink_usb_xfer set of functions and implements stlink_usb_recv in terms of the generic stlink_usb_xfer stlink_usb_xfer will be needed to implement stlink_usb_send without code duplication stlink_usb_xfer: -sends the stlink command -performs a read or write (as requested) -checks the status (v1 only) Change-Id: I0137d52620bd4883d46c9977a9e73f67622000a1 Signed-off-by: Szymon Modzelewski Reviewed-on: http://openocd.zylin.com/477 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-17 Spencer Oliver * : flash: add stm32lx High Density Devices Change-Id: Ieed9de4b078e1ebf659054a758b4f69acdf5b83e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/466 Tested-by: jenkins 2012-02-21 Szymon Modzelewski * : stlink-v1: fix memory writes implement stlink_usb_send and use it to fix stlink_usb_write_mem using two calls to stlink_usb_recv is inappropriate since each call issues a SG command on stlink-v1, resulting in errors Change-Id: I52ff9ee8f5d9ae0d47356477468eb98952205c99 Signed-off-by: Szymon Modzelewski Reviewed-on: http://openocd.zylin.com/478 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Spencer Oliver 2012-02-24 Neil Jensen * : cfg: Beaglebone/AM335x refactor Split out functions specific to the AM335x SOC into the target directory and simplified the board config file. This should allow one to quickly create new configs for boards based on the TI processor family. Change-Id: I0c3db97950dfa832f1f1918fc10c180f068bba74 Signed-off-by: Neil Jensen Reviewed-on: http://openocd.zylin.com/489 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-21 Spencer Oliver * : jtag: use correct tap -ignore-version mask when -ignore-version is used we should mask of the upper 4bits not 8bits. Change-Id: I9ffe24c2aeeb414677357a647609fdf018890194 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/473 Tested-by: jenkins 2012-02-16 Spencer Oliver * : flash: add stm32f2x async flash loader This enable the stm32f2x flash driver to use the asynchronous algorithm support. Speed increase is as follows: before - wrote 1048576 bytes from file stm32f4x.bin in 30.453804s (33.625 KiB/s) after - wrote 1048576 bytes from file stm32f4x.bin in 23.679497s (43.244 KiB/s) This also fixes a bug that was in the old flash loader. The old loader waited while bit16 of the status reg was 0, the new loader waits until this bit is 0 as stated in the flash spec. Bizarrely this bug did not effect programming on any tested parts. Change-Id: I3efc94d42cbe81283673a8f4203700638080af6e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/460 Tested-by: jenkins 2012-02-10 Spencer Oliver * : target: add target async algorithm support Currently the stm32f1x flash driver uses an asynchronous algorithm as part of the block flash programming. This greatly speeds up flash programming as the target is always running. Moving the async code to the target enable other targets to use this added functionality. Change-Id: I8e53f094c2ef7848a7f86ddb9a35b6edbfc8454a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/402 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2012-02-18 Neil Jensen * : cfg: Beaglebone Support Added support for the Beaglebone board based on the am335x processor family. After much trial and error, I was able to configure the Icepick-D and connect to the processor, halt execution, and run a sample program. This is a unified config file (it doesn't use any include statements) and further work needs to be done to split out the icepick-d configuration to be more generic. Change-Id: Ia1b8e9f01f56bd4f8c575ba3d0160c248583a15e Signed-off-by: Neil Jensen Reviewed-on: http://openocd.zylin.com/471 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-13 Andreas Fritiofson * : target: rewrite working area allocator The existing allocator couldn't reuse a freed allocation if the sizes didn't match exactly. That led to problems when for example a flash write routine had allocated all of the working area to speed up operation. A subsequent verify pass couldn't allocate space for the checksum algorithm even though all previous allocations had been freed. This allocator is marginally more complex, but solves the above problem by splitting larger free areas to fulfill smaller requests and by merging released areas into adjacent free areas. An initial free area, covering the entire specified address range, is set up on first allocation, and all allocations are split off from (and ultimately merged into) that one. It can also easily be adapted to support several disjoint working areas for the same target, by setting up several initial free areas and slightly modifying the merge code. Change-Id: I6faaf9801312bb19a4fa4474694a0cd1c6e0ab54 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/445 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-21 Spencer Oliver * : stlink: support expected-id 0 This brings the stlink driver inline with the rest of OpenOCD. If the user configures the tap as -expected-id 0 then the IDCODE will be treated as a wildcard and ignored. Change-Id: I99160c69b2b40f5b1f608bb59ab6630894502fd8 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/476 Tested-by: jenkins Reviewed-by: Mathias Küster 2012-02-18 Stian Skjelsad * : Sometime in the past, nand_fileio_finish started to return ERROR_OK (with the value of zero) on success. Change-Id: Ifb743c1617e2a6071a87c901fae8165969efcdbf Signed-off-by: Stian Skjelstad Reviewed-on: http://openocd.zylin.com/468 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-17 Jonathan Dumaresq * : Fix Typo in cfg file Change-Id: Id91ef70988212185f9ec653cbf5dc4e1defb1b9e Signed-off-by: Jonathan Dumaresq Reviewed-on: http://openocd.zylin.com/464 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-14 Spencer Oliver * : stlink: add arm semi-hosting support Change-Id: Ib275d451a9201580f08ced090e50cf45eb3ab3e2 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/459 Tested-by: jenkins 2012-02-14 Spencer Oliver * : docs: fix texinfo warnings A period or comma must follow the closing brace of an @xref. Change-Id: I272f1e7fac8f1fee4844f485b0b8e2e4e9cf352d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/456 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-02-07 Jonathan Dumaresq * : Add stm32f0x target Change-Id: I4abfef4459b7e2780d17bdd7623fd1ef797cc8ea Signed-off-by: Jonathan Dumaresq Reviewed-on: http://openocd.zylin.com/437 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-16 Mathias K * : Add bootloader mode. This patch add the bootloader define. Change-Id: I280a8a35c3514910dd381de3ab8ad59c9bd74ca1 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/455 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-02-13 Spencer Oliver * : docs: correct small typo Change-Id: I5e8bea591274b4032d3e04c4be7e9110138d5bc2 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/447 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-02-04 James Robinson * : topic: Add support for i.MX28EVK Added the file imx28.cfg to the target directory Added the file imx28evk.cfg to the board directory Change-Id: I02a74a03f3773892f830d13660ffdded34f3261d Signed-off-by: James Robinson Reviewed-on: http://openocd.zylin.com/428 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2012-02-10 Spencer Oliver * : cfg: add revb ek-lm3s811 board config Add board config for older (revb) ek-lm3s811 Change-Id: I75aca1714de3e88b60d00fa0f99f2c4b076b569c Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/444 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-02-10 Spencer Oliver * : cfg: add stm32ldiscovery board config Change-Id: I392fdc4c588783fda1c7d4d6413b86ae9aa3f6b9 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/442 Tested-by: jenkins Reviewed-by: Peter Stuge 2012-02-03 Freddie Chopin * : Add init_board procedure executed after init_targets This adds init_board procedure that behaves exactly the same as init_targets - it can be overriden by "next level" scripts. This procedure is executed after init_targets, allowing common stuff (jtag chain, memory, flash, ...) to be configured in target script (via init_target) and leaving rest (like additional memory, reset configuration, reset-init handlers, ...) to be done in init_board. This makes init_targets scheme more complete and easier to use - current board scripts will not need new init_targets, because everything can be "packed" in init_boards. Moreover it solves the problem of variables being set in init_targets (executed after init), which were not accessible by "linear" scripts (parsed before init). All that has to be done is to enclose all code in board config file in init_board procedure. Change-Id: I0736b1ff9873a687966407d62b58ccf29a8e597b Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/427 Reviewed-by: Chris Morgan Tested-by: jenkins Reviewed-by: Peter Stuge 2012-02-06 Spencer Oliver * : cfg: add stm32vldiscovery board config Change-Id: I6343d1e61153ba71c71f8a473171972abb8e400d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/432 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Andreas Fritiofson 2012-02-01 Freddie Chopin * : Export _TARGETNAME from generic LPC2xxx script Make _TARGETNAME variable global so it could be used by scripts sourcing it. Change-Id: Iaf1c3b53875734658b1b8f136c9bb958988b56bf Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/421 Tested-by: jenkins Reviewed-by: Chris Morgan Reviewed-by: Øyvind Harboe 2012-02-05 Spencer Oliver * : build: cleanup src/target directory Change-Id: Ia055b6d2b5f6449a38afd0539a8c66e7d7e0c059 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/430 Tested-by: jenkins 2012-02-02 Spencer Oliver * : checkpatch: remove __packed and __aligned checks These checks are specific to linux kernel. Change-Id: Ia9b837b5609922a897822f1d55f96f04c0f1f838 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/424 Tested-by: jenkins 2012-02-02 Spencer Oliver * : checkpatch: increase line length to 120 Change-Id: I963385d0a4880f2b1e55208c8dfe65c1870ac6e1 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/422 Tested-by: jenkins 2012-01-31 Spencer Oliver * : build: cleanup src/flash/nand directory Change-Id: I21bb466a35168cf04743f5baafac9fef50d01707 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/419 Tested-by: jenkins 2012-01-30 Spencer Oliver * : build: cleanup src/rtos directory Change-Id: I24bc62d12409dbfc20a0a986acf6b3f2c913e36d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/416 Tested-by: jenkins 2012-01-30 Spencer Oliver * : checkpatch: remove volatile check We may enable this again - but at the moment is causing extra issues with reformatting the codebase. Change-Id: I5a2aaaa32ad784e011dff3079ff45501452c1819 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/414 2012-01-30 Spencer Oliver * : build: cleanup src/server directory Change-Id: I6410df28c5999f5cbee2d3bcaa02469a29ea4c15 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/412 Tested-by: jenkins 2012-01-27 Spencer Oliver * : build: cleanup src/xsvf directory Change-Id: I5325980b240fba841d8cce81985f4da369ad9052 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/410 Tested-by: jenkins 2012-01-27 Spencer Oliver * : build: cleanup src/pld directory Change-Id: I9edb027c76e5d7fe21d557a11e6a9691fa581e86 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/408 Tested-by: jenkins 2012-02-05 Spencer Oliver * : build: update uncrustify config This config has been updated for 0.59 Change-Id: If0dc87dd5de052c1228743a196a3198dbd4bc279 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/406 Tested-by: jenkins 2012-01-25 Andreas Fritiofson * : stm32f1x: fix bug in flash loader and restrict instruction set to armv6-m Correct the offset to the read pointer when clearing it on error. Also restrict the instruction set to armv6-m so the flash driver can be used on Cortex-M0 parts with the same flash controller. Change-Id: I380f9dabcc41fb6e4d43a7e02f355e2381913f39 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/399 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Jonathan Dumaresq Reviewed-by: Spencer Oliver 2012-01-23 Mathias K * : STLINK: add stlink v1 configuration Change-Id: I6b9de16879ff928d60e3c4a64731449275291cc2 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/397 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-01-25 Mathias K * : STLINK: swd transport renamed and jtag+swim transport added This patch add jtag support to the stlink driver add two new transport types, JTAG and SWIM. Change-Id: I7089d74250330be5c6a01c24066307641df7d11e Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/393 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-01-25 Spencer Oliver * : flash: fix stellaris class regression for some reason the following commit was incorrect 769064de4bd8fc59804c37a418b83fcdba6fd36f Only the Sandstorm and Fury class should write this register. Change-Id: Ie18f1da6e9b59fb99cca47aa93c7f2fee447ccea Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/400 Tested-by: jenkins 2011-12-02 Fujitsu FM3 Application Team * : flash: cleanup/reformat fm3 flash driver Signed-off-by: Fujitsu FM3 Application Team Change-Id: Iaf0bacfa5438a0213a65a3d60e7d461965a5a1ac Reviewed-on: http://openocd.zylin.com/249 Reviewed-by: Øyvind Harboe Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-01-17 Timo Ketola * : i.MX25: Set OOB size (MXC NFC) SPAS register (OOB size) is left wrong after reset with respect to 2KiB page NAND chip. That will lead to ECC errors after 'reset halt'. Change-Id: If5a4685cb8d6be35879453951611ef1059da219c Signed-off-by: Timo Ketola Reviewed-on: http://openocd.zylin.com/384 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-01-20 Spencer Oliver * : cfg: add missing Stellaris Blizzard info Change-Id: I1d6fb9a2ec8d87267a266f68c01ce032450e45d5 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/392 Tested-by: jenkins 2012-01-17 Spencer Oliver * : flash: cleanup stellaris device class detection read the target class during probe and save for later use. Change-Id: Ib3ad20edc7d206b7f434bdcc6b947e6a5f06dd1f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/388 Tested-by: jenkins 2012-01-13 Spencer Oliver * : stlink: enable cortex special reg writes Change-Id: I5aa02e8de6dd5ac5a6ca628ba4068decb200c689 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/378 Tested-by: jenkins 2012-01-19 Spencer Oliver * : flash: print bank usage on failure This makes use of the newly introduced usage field in the flash bank structure. Also remove the assertion if usage field is null and lets print a DEBUG_LOG message instead. Change-Id: I384bf0e2c444fcc99deef73aec9ef01149a91c76 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/391 Tested-by: jenkins 2012-01-17 Timo Ketola * : doc: Update patch procedure Change-Id: I3e50357b4ddaf483712bbac68b6427b31529f666 Signed-off-by: Timo Ketola Reviewed-on: http://openocd.zylin.com/387 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2012-01-16 Spencer Oliver * : cmd: add missing usage vars we should have caught them all - hopefully. Change-Id: I35435317fccaf5ad0216244d69f76db6857bb582 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/381 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-01-06 Michel JAOUEN * : u8500: linux rtos config Change-Id: I21a9dcc5fb260095aed2217e467b74ebecb39afb Signed-off-by: Michel JAOUEN Reviewed-on: http://openocd.zylin.com/349 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-01-03 Michel JAOUEN * : rtos : create qsymbol interface and add str_to_hex interface Change-Id: I1b26f7efd3ad4a060f772dd12408e77a03d93cea Signed-off-by: Michel JAOUEN Reviewed-on: http://openocd.zylin.com/347 Tested-by: jenkins Reviewed-by: Evan Hunter Reviewed-by: Øyvind Harboe 2012-01-03 Michel JAOUEN * : rtos : ps command Change-Id: I1b00b6d72f425826c33b0df7dd63114ce642ce93 Signed-off-by: Michel JAOUEN Reviewed-on: http://openocd.zylin.com/345 Tested-by: jenkins Reviewed-by: Evan Hunter Reviewed-by: Øyvind Harboe 2012-01-03 Michel JAOUEN * : rtos : current_threadid move to rtos context Change-Id: I49d9d6d64c418be601d8723cb3eea9c3716ecb6b Signed-off-by: Michel JAOUEN Reviewed-on: http://openocd.zylin.com/343 Tested-by: jenkins Reviewed-by: Evan Hunter Reviewed-by: Øyvind Harboe 2012-01-03 Michel JAOUEN * : rtos : remove unused parameter Change-Id: I98c9f28a0085bd4713b694181ab544777091eac6 Signed-off-by: Michel JAOUEN Reviewed-on: http://openocd.zylin.com/341 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-01-12 Mathias K * : stlink: handle wrong initialization file if no layout was specified This patch remove the hardcoded default layout and return an error if no layout was specified in the configuration file. Change-Id: I0e7833faa2dc194e727122840bcbdacd321cc4fd Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/369 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-01-12 Mathias K * : stlink: add read/write 8bit memory This patch add layout api funtions and implementation to read/write 8bit memory. Change-Id: I8d145eb07e5afa9ce1830578e57d80a80d21e7dc Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/366 Tested-by: jenkins Reviewed-by: Spencer Oliver 2012-01-12 Spencer Oliver * : stlink: correctly signal stlink_interface_open failure give the user a error msg on open failure. Change-Id: If4a57bac7f3e1746c2a05c7a96747a38da188041 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/368 Tested-by: jenkins Reviewed-by: Mathias Küster 2012-01-09 Spencer Oliver * : flash: detect stm32f4x device id errata This allows us to detect a device arrata where the device id returned is incorrect. This issue only effects stm32f4x Rev A silicon. Change-Id: Ic9f4985f9abf562f97322dcf484199f0a4eb01bb Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/354 Tested-by: jenkins 2012-01-09 Spencer Oliver * : stlink: add dummy speed handlers Change-Id: I0445be7867637728145941b06225dc0acc5380e8 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/355 Tested-by: jenkins 2012-01-10 Mathias K * : optimize: replace while loop by memcpy There is no need to use a while loop here. This patch simple copy the last bytes with the system function. Change-Id: Ibda72dca449746efeba5a1af2e45c5990f9cf347 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/364 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2012-01-10 Bruno FLEURETTE * : flash: pre-check flash unlock for stm32f2x add checking of the current flash lock status before performing the unlock sequence (which would fail in an unlocked state) Change-Id: I693294c9cd2f59e69cb5bf3338120052fd680b1e Signed-off-by: Bruno FLEURETTE Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/363 Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver Tested-by: jenkins Reviewed-by: Mathias Küster 2012-01-09 Spencer Oliver * : target: fix missing semihosting return path bug nicely caught by clang. Change-Id: I7abf0fdd76666fb3eb1c83e3edfd01e0da485ffe Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/359 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2012-01-04 Spencer Oliver * : flash: use stm32f2x flash size register Use the flash size register to calculate flash info. Change-Id: Ia230db8a08d440710c030a9e5001f20561c9f420 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/337 Tested-by: jenkins Reviewed-by: Mathias Küster 2012-01-04 Spencer Oliver * : contrib: add stlink udev rules Change-Id: I3f11de8abfaf8821311a7aa0fd237006de3c2792 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/333 Tested-by: jenkins Reviewed-by: Mathias Küster 2012-01-03 Spencer Oliver * : cfg: use consistent chipname Change-Id: I41e0788f830d5ece13e6231a99d5b4013c9c678f Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/331 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Freddie Chopin 2012-01-07 Øyvind Harboe * : rtos: fix bug in error handling checking for != ERROR_FAIL is broken. Change-Id: Id7085afac653bb9c38d08928227a9ea402d8e6e9 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/351 Tested-by: jenkins Reviewed-by: Michel JAOUEN Reviewed-by: Øyvind Harboe 2011-12-16 Mathias K * : Change return value on error. On wrong parameters a error is signalized to the calling function. Change-Id: I484443fdb39938e20382edc9246d5ec546a5c960 Signed-off-by: Mathias K Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/282 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-12-28 Øyvind Harboe * : flash: introduce .usage field for nand and nor flash driver structure Change-Id: I47e7ec8fa8c70d2addc3aa52d7c97e9e1e7bb662 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/301 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2011-12-24 Mathias K * : command: print BUG warning when usage is missing These error messages will prompt patches to be submitted for missing .usage or empty fields. All of the below must be resolved before next release. The Jim defined commands are excluded from this checklist because the help text can be set later than during command registration. strlen(.usage) == 0 means that the command expects no arguments. Updates to this patch in Gerrit to fix problems below are most welcome. Anyone can push updated versions of a patch to Gerrit. If there are no further updates to this patch within a week, it will be pushed to the master branch to prompt more fixes. These were caught by launching OpenOCD. Error: BUG: command 'command' does not have the '.usage' field filled out Error: BUG: command 'script' does not have the '.usage' field filled out Error: BUG: command 'power_restore' does not have the '.usage' field filled out Error: BUG: command 'srst_deasserted' does not have the '.usage' field filled out Error: BUG: command 'measure_clk' does not have the '.usage' field filled out Error: BUG: command 'exit' does not have the '.usage' field filled out Error: BUG: command 'shutdown' does not have the '.usage' field filled out Error: BUG: command 'gdb_sync' does not have the '.usage' field filled out Error: BUG: command 'interface_list' does not have the '.usage' field filled out Error: BUG: command 'target' does not have the '.usage' field filled out Error: BUG: command 'target init' does not have the '.usage' field filled out Error: BUG: command 'flash' does not have the '.usage' field filled out Error: BUG: command 'flash init' does not have the '.usage' field filled out Error: BUG: command 'flash banks' does not have the '.usage' field filled out Error: BUG: command 'nand' does not have the '.usage' field filled out Error: BUG: command 'nand drivers' does not have the '.usage' field filled out Error: BUG: command 'nand init' does not have the '.usage' field filled out Error: BUG: command 'pld' does not have the '.usage' field filled out Error: BUG: command 'pld init' does not have the '.usage' field filled out Error: BUG: command 'mflash' does not have the '.usage' field filled out Error: BUG: command 'mflash init' does not have the '.usage' field filled out Error: BUG: command 'dummy' does not have the '.usage' field filled out Error: BUG: command 'dummy foo' does not have the '.usage' field filled out Error: BUG: command 'scan_chain' does not have the '.usage' field filled out Error: BUG: command 'jtag' does not have the '.usage' field filled out Error: BUG: command 'jtag init' does not have the '.usage' field filled out Error: BUG: command 'arm' does not have the '.usage' field filled out Error: BUG: command 'arm reg' does not have the '.usage' field filled out Error: BUG: command 'etm' does not have the '.usage' field filled out Error: BUG: command 'arm7_9' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu arm' does not have the '.usage' field filled out Error: BUG: command 'arm reg' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu etm' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu arm7_9' does not have the '.usage' field filled out Error: BUG: command 'target_request' does not have the '.usage' field filled out ^C oyvind@fierce:~/openocd$ openocd -c "interface dummy" -f board/at91eb40a.cfg 2>&1 | grep -w BUG Error: BUG: command 'command' does not have the '.usage' field filled out Error: BUG: command 'script' does not have the '.usage' field filled out Error: BUG: command 'power_restore' does not have the '.usage' field filled out Error: BUG: command 'srst_deasserted' does not have the '.usage' field filled out Error: BUG: command 'measure_clk' does not have the '.usage' field filled out Error: BUG: command 'exit' does not have the '.usage' field filled out Error: BUG: command 'shutdown' does not have the '.usage' field filled out Error: BUG: command 'gdb_sync' does not have the '.usage' field filled out Error: BUG: command 'interface_list' does not have the '.usage' field filled out Error: BUG: command 'target' does not have the '.usage' field filled out Error: BUG: command 'target init' does not have the '.usage' field filled out Error: BUG: command 'flash' does not have the '.usage' field filled out Error: BUG: command 'flash init' does not have the '.usage' field filled out Error: BUG: command 'flash banks' does not have the '.usage' field filled out Error: BUG: command 'nand' does not have the '.usage' field filled out Error: BUG: command 'nand drivers' does not have the '.usage' field filled out Error: BUG: command 'nand init' does not have the '.usage' field filled out Error: BUG: command 'pld' does not have the '.usage' field filled out Error: BUG: command 'pld init' does not have the '.usage' field filled out Error: BUG: command 'mflash' does not have the '.usage' field filled out Error: BUG: command 'mflash init' does not have the '.usage' field filled out Error: BUG: command 'dummy' does not have the '.usage' field filled out Error: BUG: command 'dummy foo' does not have the '.usage' field filled out Error: BUG: command 'scan_chain' does not have the '.usage' field filled out Error: BUG: command 'jtag' does not have the '.usage' field filled out Error: BUG: command 'jtag init' does not have the '.usage' field filled out Error: BUG: command 'arm' does not have the '.usage' field filled out Error: BUG: command 'arm reg' does not have the '.usage' field filled out Error: BUG: command 'etm' does not have the '.usage' field filled out Error: BUG: command 'arm7_9' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu arm' does not have the '.usage' field filled out Error: BUG: command 'arm reg' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu etm' does not have the '.usage' field filled out Error: BUG: command 'at91eb40a.cpu arm7_9' does not have the '.usage' field filled out Error: BUG: command 'target_request' does not have the '.usage' field filled out Change-Id: I2c3e529530a15d2295a1950ffc59e8f2fc661012 Signed-off-by: Øyvind Harboe Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/299 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2011-12-17 Mathias K * : Add STM32F2X/STLINK target config file. Change-Id: I02161fa05da993b5b966c31a706667d1bd91935d Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/287 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-17 Mathias K * : STM32 ST-LINK target initial release STM32 ST-LINK target added. Change-Id: Ibe2b7a3c0d5a8cf73d8680d6019adbdb62d68fa2 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/279 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-15 Mathias K * : Make jim functions public accessible. Change this 2 functions to make it accessible for other tcl interfaces. Change-Id: Idee07fcc779941b037a05a40c021e3fb0b1a4a7a Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/277 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-01 Mathias K * : add private data pointer to the tap interface This will give us the ability to add special data structures and new interfaces without rewriting the complete jtag engine. Change-Id: I21a6e1daa96c5f4d111bbb734c7c1fbc2eaee227 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/244 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-23 Spencer Oliver * : build: fix mingw build issues 8901fca0270fec41b12c30c7dbd806d460548c5b broke the build under mingw, this fixes that. Change-Id: I22b91e220dac3b68cc576b65a9f1b8711e64263a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/298 Tested-by: jenkins Reviewed-by: Freddie Chopin Reviewed-by: Øyvind Harboe 2011-12-14 Erik Ahlén * : Documentation for mxc NAND flash controller Change-Id: I9e552491e8b4737c01e4f8ae2b9a582b6ff2bc5d Signed-off-by: Erik Ahlén Reviewed-on: http://openocd.zylin.com/273 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Spencer Oliver 2011-12-13 Erik Ahlén * : Added command to enable/disable/query BI-swap for MXC NAND Change-Id: Ifa3eb739afe0760a974b57c5a17cc3bf7704ba79 Signed-off-by: Erik Ahlén Reviewed-on: http://openocd.zylin.com/270 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Spencer Oliver 2011-12-13 Erik Ahlén * : Added board type as a parameter to mx2 NFC as they have different base addresses. Change-Id: I7bc326e9a8d9f6817f046a7faeebede567c53dd2 Signed-off-by: Erik Ahlén Reviewed-on: http://openocd.zylin.com/268 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Spencer Oliver 2011-12-20 Ulf Samuelsson * : Olimex-ARM-USB-OCD-H: Add udev rule Change-Id: Ifc9a1f7fa9445e05560c335b5bba3a33caeccc51 Signed-off-by: Ulf Samuelsson Reviewed-on: http://openocd.zylin.com/288 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Spencer Oliver 2011-12-21 Ulf Samuelsson * : git should ignore patches from format-patch Change-Id: Iafce872fa7559180834532ba80941dec3db7d079 Signed-off-by: Ulf Samuelsson Reviewed-on: http://openocd.zylin.com/295 Tested-by: jenkins Reviewed-by: Mathias Küster Reviewed-by: Øyvind Harboe 2011-12-13 Øyvind Harboe * : jtag: make caller always allocate buffer simplifies the API and there is only one remaining user at this point. Is the implementation busted where the check does not actually happen now? Change-Id: I776a43766f5576a08df320f6fe41a2750d101bde Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/264 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-13 Øyvind Harboe * : jtag: retire jtag_alloc_in_value32 API not needed, reduce area of interface and sharp edges to API. Change-Id: I5347352e7595686634bd0de13fcf6de6e55027b0 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/262 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-12 Spencer Oliver * : build: libusb use AC_CHECK_HEADER use AC_CHECK_HEADER rather than AC_CHECK_HEADERS so that we do not generate a unrequired HAVE_LIBUSB_1_0_LIBUSB_H define. Change-Id: I23a93d3813716dce797ca1514fdcb84533454c31 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/259 Tested-by: jenkins Reviewed-by: Mathias Küster 2011-12-12 Spencer Oliver * : build: correctly quote m4 parameters Change-Id: If7ccb52c107cb4ad7629ffcf237f9003f60e63d0 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/257 Tested-by: jenkins 2011-12-13 Erik Ahlén * : Indentation and white space fixes. Change-Id: Iffbaefea4f3d5e9b56b3c36496b44969d7c07e82 Signed-off-by: Erik Ahlén Reviewed-on: http://openocd.zylin.com/266 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-12-16 Spencer Oliver * : checkpatch: fix false indent trigger we have changed the indent to 4 to match OpenOCD coding style. Change-Id: I4870a3410eb20fc2f6df6a3e5891d4d4e598131a Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/285 Tested-by: jenkins 2011-12-15 Erik Ahlén * : Change checkpatch.pl tab expanding to 4 characters. The C coding style guide says that tab width is 4 characters but checkpatch.pl expands tabs to 8 characters which produces false negatives. Change-Id: Ibdabbb55269b7cf6bcd38042cccb8bd235e42ce2 Signed-off-by: Erik Ahlén Reviewed-on: http://openocd.zylin.com/275 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2011-12-13 Øyvind Harboe * : zy1000: fix crash in JTAG over TCP/IP disable asynchronous callbacks and reads as minidriver requires reads and callbacks to be synchronous. Could possibly be fixed by some design work. Change-Id: I7ca79a551085b2e8ba6928e1762d1baed6e95d4b Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/260 Tested-by: jenkins Reviewed-by: Øyvind Harboe Tested-by: Øyvind Harboe 2011-12-07 Øyvind Harboe * : HACKING: add explanation why we want cool-off times as long as a week or two Change-Id: I281e9145f43bc7ac173e02c4e209834f0deaae2b Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/254 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Mathias Küster Reviewed-by: Øyvind Harboe 2011-12-02 Antonio Borneo * : TCL/SPEAr: default one DDR chip Handle default case of single DDR chip Propagate global variable for multi DDR chip Change-Id: I315380f91ee7fcc2976437aa5836d88a7964fc9d Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/251 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-12-03 rodrigo_l_rosa * : HACKING - checkpatch before pushing makes life quicker Change-Id: I4c3cde2aae7bdea138413e373ac986be3efd54de Signed-off-by: rodrigo_l_rosa Reviewed-on: http://openocd.zylin.com/252 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-12-01 Spencer Oliver * : gdb_server: use strndup to allocate debug messages Lets be consistent and use strndup to allocate the debug buffer. Change-Id: I535ad270ebfeae6e09d28372ab3749c822971223 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/245 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Andreas Fritiofson 2011-12-02 Peter Stuge * : Fix remaining incorrect reference to target/at91sam3uXX.cfg Commit 1794e5ee5452c83b5bef6d0a5a8a3f23d647e9c6 renamed the file to have all lowercase characters according to most references to the file, but the commit didn't change the existing reference to the old filename. Change-Id: I380e52e947a8091d48cf010e3919bf2caed7fdff Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/248 Tested-by: jenkins 2011-12-01 Spencer Oliver * : binarybuffer: use strndup to allocate string Change-Id: I65d8f37b18d5b5a798406b956f50ab7bb550e172 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/246 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2011-11-29 Mathias K * : target init sanity check Add a test if the pointer to the target_init function in the target struct is set before the function pointer is used. Change-Id: Ie4ea542f64f35efce8c5bce2ced9b881bf283ec1 Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/241 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-11-22 Evan Hunter * : Fix unused variables error in amt_jtagaccel Change-Id: Ic64cf4e3b5cf8c1ea75a13577728b0cb0d70068e Signed-off-by: Evan Hunter Reviewed-on: http://openocd.zylin.com/237 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-11-19 rodrigo_l_rosa * : dsp5680xx - flash module clk to freescale cfg value the flash module clock was set according to a spreadsheet from freescale, now it's set according to the configuration file used by the Freescale Flash Programmer. both work, but i think it's better to use the one used by a software that's made by Freescale (should be correct...) Change-Id: I382197a3eb43dd47ff4b9b83d5e05008d5613fc6 Signed-off-by: Rodrigo L. Rosa Reviewed-on: http://openocd.zylin.com/223 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-04 rodrigo_l_rosa * : dsp5680xx - fix jtag debug request failure handling if JTAG debug request fails then halting with a reset should be attempted. the failure was ignored previously. Change-Id: Ibec08e2e97f962d164a110c21aaa80bfc17b7f1a Signed-off-by: Rodrigo L. Rosa Reviewed-on: http://openocd.zylin.com/221 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-11-15 rodrigo_l_rosa * : dsp5680xx - fix - flashing algorithm check now the flash algorithm running on the 568013 checks the buffer_empty bit (instead of the command_finished bit) before trying to write a new word to the flash mem. this should speed up the flashing procedure. since it is open loop, this change may reduce the risk of failure. flashing will fail if JTAG speed is such that the flash module cannot keep up. also, the USTAT register is only read once, as suggested in the flow chart provided by freescale (per. ref. manual @ 6-11) the last step of the flow chart, exiting after commands are complete, is not implemented. the algorithm will stay waiting for more data. it is up to the PC side to *not* send more data. Change-Id: I47fe4b50de7da85f80868f5986a89a7e2152616c Signed-off-by: Rodrigo L. Rosa Reviewed-on: http://openocd.zylin.com/219 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-09-02 rodrigo_l_rosa * : dsp5680xx - fix jtag status mask Change-Id: I17a0f22cbeb20e4f6ea4065236243f93d826ccf0 Signed-off-by: Rodrigo L. Rosa Reviewed-on: http://openocd.zylin.com/217 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-09-02 rodrigo_l_rosa * : dsp5680xx - error codes added logging of target error codes to enable automatic error handling from tcl. the plan is to use a computer to execute a series of tcl commands, the changes allow simple parsing of return messages to detect errors. Change-Id: Ia98d3bd036e1b6065b475ffff6c1d30baeaf7417 Signed-off-by: Rodrigo L. Rosa Reviewed-on: http://openocd.zylin.com/215 Tested-by: jenkins Tested-by: Øyvind Harboe Reviewed-by: Øyvind Harboe 2011-11-23 Antonio Borneo * : TCL/SPEAr: fix name of included file Fix error introduced in recent commit. Correct the name of the board file. Change-Id: I46bca8329812fb24bc4f8d316be9e7cba9b56496 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/234 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-18 Antonio Borneo * : TCL: Add board file for EVALSPEAr300 Initial support for SPEAr300 chip and for evaluation board named EVALSPEAr300. Currently supports only those parts in common with SPEAr310. Change-Id: I8075aa721cf3dfaac561ee51e5df4ce9a2992e3e Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/230 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-21 Antonio Borneo * : TCL/SPEAr: move DDR activation in common code DDR controller activation should not be in DDR chip specific code, but in generic DDR controller part. Change-Id: If1b178228352b48b0097d7b9b300005fb5bb4fb6 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/228 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-01-21 Antonio Borneo * : TCL/SPEAr: move device generic code The initialization of RAS enable and clock is required by all SPEAr3xx devices Change-Id: Iea4cd0902e4da219475d7f35b4c25fc87ec6b902 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/226 Tested-by: jenkins Reviewed-by: Spencer Oliver 2010-11-27 Antonio Borneo * : TCL/SPEAr: Add reference to ST Application Note ST-AN was mentioned but there was no reference Change-Id: Ie065f8faba94d63cf391a994ec895692d499394e Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/224 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-15 Spencer Oliver * : usbprog: fix shadowed declaration warning see Trac #38 Change-Id: If86fda797391f10d745384794b68e60380ef0b21 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/204 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2011-11-16 Mauro Gamba * : libusb-1.0 support The configuration script check for libusb-1.0 availability first and only if not found check for libusb-0. So if both libraries are installed on the system the build script will use libusb-1.0 It's possible to force compiling with libusb-0 with the --enable-libusb0 switch. If the driver support only libusb0 the script check anly for it. Change-Id: I7eb045d4e2bd553abefad53f3f4023ff46b0f5f6 Signed-off-by: Mauro Gamba Reviewed-on: http://openocd.zylin.com/33 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-18 Spencer Oliver * : Revert "build: fix gcc 4.6.2 warnings" This reverts commit 0ef5a90d93c5a026bcf70132e60e957ae339d1e1 Causes older versions of gcc to break - need to look into a better fix. This passed through the jenkins build as we originally did not build this module - we do now. Change-Id: Iafeac8442b2249269ff45a52ccd3e2870920f635 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/214 Tested-by: jenkins 2011-11-14 Robert Pasz * : presto: fix tms_sequence short issue fix issue when using tms_sequence short see Trac #31 Change-Id: I22a9cd2af59eae4d8a276dae60b6a99d05af53bb Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/201 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2011-11-14 Philip Nye * : gdb: fix multi core gdb issue gdb_memory_map() correctly calculates the target specific number of flash banks, but then uses the total number (all targets) instead of the target specific number to construct its GDB response, causing a crash. Change-Id: I3f8639b3e90303a59753ebe140ce4fff96fd5db0 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/199 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2011-11-14 Spencer Oliver * : flash: match stm32f2x loader src name Change-Id: I60523f809f2d9ec9c9283e0456746ce9a63576a7 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/196 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2011-11-17 Felix Ruess * : config: do not use deprecated stm32.cfg Change-Id: Id72d2d7f874043331ecb5586a3797d017606129e Signed-off-by: Spencer Oliver Signed-off-by: Felix Ruess Reviewed-on: http://openocd.zylin.com/212 Tested-by: jenkins 2011-11-16 Andreas Fritiofson * : bitq: make private functions static Change-Id: I3fabbdbda4ba8ba6557d79b97444fe06f1710b58 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/209 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-16 Andreas Fritiofson * : bitq: remove the remaining static variables in_mask and in_idx are just another encoding of the same state information that is already kept in bitq_in_state.bit_pos so derive them from that instead of maintaining them separately. Change-Id: I4ac6bbe923698a8c1090a785b8babcbb90f82931 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/207 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-15 Andreas Fritiofson * : bitq: remove a static variable in_buff is only ever set to field->in_value and that pointer is still available when the parsing is restarted so it could just as well be used directly, removing the need for the static variable. Change-Id: I3dd7a8315ed5c5bdc3bfb74044f89492bca9816c Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/206 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-13 Tomas Frydrych * : kinetis flash: use longword write when writing into pflash Check whether the destination is in the program flash or NVM regions, in the former case, use the normal longword mechanism, not the fast NVM write. Change-Id: I7366b7c8919928ee690252df83b99701776aee82 Signed-off-by: Tomas Frydrych Reviewed-on: http://openocd.zylin.com/194 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-17 Aurelien Jacobs * : at91sam7: ensure probed flash bank has a name (fix a segfault) Before this commit, openocd used to segfault when probing flash of an at91sam7x512 (which contains 2 banks of flash). This was due to the way it systematically insert a new flash bank without setting its name. Then, when get_flash_bank_by_name_noprobe() is called, it is doing a strcmp() on the non-initialized bank->name. This commit prevents allocation of second probed bank if it is already allocated (for example, if it is set in a target config file). If a new bank really needs to be allocated, it ensures that a default name is set. Change-Id: I38d15bef1fda2ec746efad37171975136cf7b371 Signed-off-by: Aurelien Jacobs Reviewed-on: http://openocd.zylin.com/171 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-10 Øyvind Harboe * : image: remove assignments to local variables that is never read Change-Id: I1a5e968f165e060fd4aa7c023ad870a9e21bb5dd Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/191 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-07 Øyvind Harboe * : svf: fix warnings Change-Id: Ib7f67612db3a865f9acc5ae349455da7ddcd3348 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/177 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-09 Spencer Oliver * : docs: remove berlios related info Change-Id: I9593eb165fce51411f20fa068e324b3fd882cdb3 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/190 Tested-by: jenkins 2011-10-22 Kyle Manna * : contrib: Add udev rules for TI xds100v2 debugger This corrects permissions on the FTDI chip on the xds100v2 debugger enabling normal users to access it. Change-Id: I0f6618692ebdee6284eee28f9e612e68782c4d78 Signed-off-by: Kyle Manna Reviewed-on: http://openocd.zylin.com/188 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-08 Øyvind Harboe * : buspirate: add missing error propagation found by clang. Change-Id: I80ea8e6afc8dcc1aa7edb6f63af0d94f6781b81c Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/182 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-08 Øyvind Harboe * : em357: fix warning by removing unused local variables Change-Id: I9def63d36ed4fa8bf9cdeeedc18b1b25d0e487d6 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/184 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-03 Spencer Oliver * : flash: update luminary device table add support for checking target against the device CLASS rather then just the PARTNO. This change also adds the new LM4F family (Blizzard). Change-Id: Ia9d1e33f1f1c2817c0039a2232ecf932fae072f9 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/161 Reviewed-by: Øyvind Harboe 2011-10-17 Aurelien Jacobs * : at91sam7: add a new target config file for at91sam7x512 The main difference with at91sam7x256 is the declaration of the second bank of flash. Change-Id: I87a20dcbb639b797799139ccf46cc73934fa3b9e Signed-off-by: Aurelien Jacobs Reviewed-on: http://openocd.zylin.com/173 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-07 Øyvind Harboe * : xsvf: add missing error propagation Change-Id: Ibc70deb980d6d18ceb376b72d9104e6180b16acf Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/176 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-31 Øyvind Harboe * : str9x: explain compiler that a local variable will always be initialized Change-Id: I9ddb2793b4cdbf6acea6f69973531491e4ebcc5b Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/145 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-07 Øyvind Harboe * : str7x: fix error propagation stick to convention of "retval" being used as error value to be propagated and use "flash_flags" local variable for flash flags read from how. Change-Id: I63f1f2248b4f4538d6cd7634ae277f7c0aadc346 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/178 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-07 Øyvind Harboe * : ecos: add missing error propagation Change-Id: Ib34815c9cf654517f22486a7c8001fdb7471338c Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/174 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-31 Øyvind Harboe * : warning fix: add self-consitency check to remove warning verify promise of code that more code can be pasted with an assert at the end condition of the code passage that builds string. Change-Id: I76a4e5f91b9142fff932e1493cb43c29eb6a0f80 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/143 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-11-04 Spencer Oliver * : tools: fix permissions Change-Id: I9419138dd2972304daf215594ca917ac8eb7fcda Signed-off-by: Spencer Oliver 2011-11-03 Øyvind Harboe * : etm: fix warning by removing assignment that is immediately overwritten Change-Id: Ia3a83d3c1fc3a1707d69017fce6cf142a81babc4 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/165 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-01 Øyvind Harboe * : dsp5680xx: add missing and broken error propagation found by clang. Change-Id: Ie7e2ecad71bf0838ece93727e4778ad368b890ef Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/156 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-03 Øyvind Harboe * : avr32_regs: add missing error propagation Change-Id: Ie8b141dd534d73eccfc045069d5f628bd1eea88e Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/166 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-02 Øyvind Harboe * : HACKING: all you need is http access Change-Id: I191c1da5126c4c9ea1ff8826576b6b24feaf9881 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/157 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver 2011-11-03 Spencer Oliver * : tools: add checkpatch script Change-Id: I3579028fc1c6ee8bea58c82e5f0eecba7794d7cb Signed-off-by: Spencer Oliver 2011-11-01 Spencer Oliver * : cfg: add Stellaris LM4F232 Evaluation Kit config Change-Id: Ica754897bef6573a0738ed1afdfe1dfda07292fd Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/151 Tested-by: jenkins Reviewed-by: Andreas Fritiofson 2011-11-01 Mark Vels * : tx27stk5: add board init support for KaRo TX27 CPU module This patch adds support for a KaRo TX27 CPU module on a StarterkitV base board. The register settings have been extracted from a RedBoot distribution that is distributed along with the hardware by KaRo. This setup has been tested with a JTAGKey. The testing has been focussed on loading a program into memory and start execution. Although the flash seems to be correctly detected, no effort has been put in testing the NAND programming yet. Change-Id: Ib17763f1e3ecacd0eb9b5fdc32f8cba7a5e59be5 Signed-off-by: Mark Vels Reviewed-on: http://openocd.zylin.com/158 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-01 Øyvind Harboe * : cortex_a: add missing error propagation found by clang. Change-Id: I50eac219d7540fd48d3285f3f213cb659492d0c0 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/153 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-01 Øyvind Harboe * : arm11: print next address to debug fixes clang warning. Basically the next address pointer is not used for anything in the fn, except to be examined in debug. Change-Id: I253519b8e49e54490bbe7da8ec3d2dd31f49052a Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/155 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-11-01 Øyvind Harboe * : target: fix null pointer exception check if no target is selected and return error. Change-Id: Ie8abb63c708d09572b45e88fc6766af108715077 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/148 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-31 Spencer Oliver * : target: rename cortex_m3.[ch] to cortex_m.[ch] This rename is in preparation for cortex_m4 support. Change-Id: Ic08c298ec6ed2aabc2c39db67191f68b3a51f550 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/147 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-31 Øyvind Harboe * : warnings: null pointer check fix rewrite broken null pointer check code by reducing scope of variable. Change-Id: I8254f6849b187e5c9cd083053cdc11973c6fe339 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/142 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-27 Øyvind Harboe * : bugfixes: tinker a bit with the targets command return error when target can not be found instead of ERROR_OK, split fn. Change-Id: Iba5232d3862a490d0995c3bfece23685bd6856e3 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/131 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-30 Uwe Hermann * : interface configs: Fix whitespace and other issues. Change-Id: I98825c7fb9bdee75b69b06005ed12a3f64ec4db4 Signed-off-by: Uwe Hermann Reviewed-on: http://openocd.zylin.com/139 Tested-by: jenkins Reviewed-by: Peter Stuge 2011-10-29 Øyvind Harboe * : clang: fix warning by adding assert that shows that a variable is used Change-Id: I26e0ba9f1ae9d43c9a14c42c4225746782dc4d66 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/134 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-27 Øyvind Harboe * : bugfixes: numerous bugs in error propagation found by clang Change-Id: I784068325b422d1918e28c08544bc5a1332d712f Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/130 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-26 Jim Norris * : Remove use of undefined variable. Change-Id: Id8fd345438c360b2a42857525f05360ce2794d21 Signed-off-by: Jim Norris Reviewed-on: http://openocd.zylin.com/127 Reviewed-by: Peter Stuge Tested-by: jenkins 2011-10-25 Jim Norris * : Add configuration for ATMEL SAM3N-EK board. Change-Id: I525f6c346cace4e54f47659c5a7aceb29ee4baf2 Signed-off-by: Jim Norris Reviewed-on: http://openocd.zylin.com/125 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-25 Marti Bolivar * : stm3220g_eval.cfg: fix CHIPNAME. The STM3220G-EVAL board has an STM32F207IGH6. ("...H6", not "...T6"). Change-Id: Iaf3dae6830c5c0685a1dcd1588d391434bc51be7 Signed-off-by: Marti Bolivar Reviewed-on: http://openocd.zylin.com/120 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-25 Andreas Fritiofson * : armv7a: make local functions static Also fix a spelling error and remove the declaration for a non-existent function from the header. Change-Id: I13177e2d81aa167c05c1cc766f06924211e6d735 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/118 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-22 Freddie Chopin * : Fix "Evaluate 'script' in the global scope" This fixes commit Evaluate 'script' in the global scope. It caused Windows builds behave differently than before because path was evaluated twice and backslashes from Windows' paths got unescaped and effectively wiped out. Configs could only be passed with "-f ../dir/config.cfg" or "-f ..\\dir\\config.cfg" instead of usual "-f dir/config.cfg" (or using backslash) as previously. Change-Id: I13b4abac6dbe6d770cc11a4e61c9421ef340da83 Author: Steve Bennett Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/40 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Spencer Oliver 2011-10-23 Antonio Borneo * : SERVER: fix clang warning The fix is inline with the Linux coding style that forbids assignment in if condition Change-Id: I0b9d0b419d9c8b7a8c755e048d5faf72d1658ba2 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/87 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-23 Antonio Borneo * : NOR/CORE: fix clang warning The fix is inline with the Linux coding style that forbids assignment in if condition Change-Id: I10338a249bcfeff87d8596f7e17f209e26b41678 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/86 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-23 Antonio Borneo * : FLASH/CFI: fix clang warnings Total of 5 warnings: 3x "Dead store": removed dead assignment to variable; 1x "Dereference of null pointer": this is not an error, but a limited visibility of clang, since pointer erase_region_info is initialized inside cfi_fixup_non_cfi(); 1x "Branch condition evaluates to a garbage value": this is a real coding bug that could issue SIGSEGV, since "goto cleanup" can be executed before initialization of "source". Change-Id: Id3c323c82bb15cbd3bb8fc04b23541f11145f109 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/84 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-22 Øyvind Harboe * : fm3: fix warning for superfluous assignment Change-Id: I4f8e8c2e676a2728ddc6227daf9ca6a7ceb3d505 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/46 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-22 Øyvind Harboe * : tms470: remove dead assignment warning Change-Id: I21e7ac47f80d93c9c0d7b169f8848b929c664b20 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/45 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-21 Øyvind Harboe * : clang: fix warning w/assert so that clang knows that there will be no division by zero Change-Id: I98ac62a22f21043bb535a667a4f1f1537ccde2a4 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/42 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-23 Edgar Grimberg * : tms470: removed unnecessary operations This should silence a warning. Change-Id: Id91a9ebacae836083b1db2654a8e7bf24b2300e9 Signed-off-by: Edgar Grimberg Reviewed-on: http://openocd.zylin.com/52 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-22 Øyvind Harboe * : buspirate: ignore return value and fix warning Perhaps we could do one better and propagate the error? Change-Id: Idc45f516c26f09de4ee01fe05e8d3475f4b80db3 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/43 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-22 Øyvind Harboe * : server: remove warning due to dead assignment Change-Id: Idb08aef0c11b3fae92286e8fcea61ab09ab09e74 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/44 Reviewed-by: Peter Stuge Tested-by: jenkins 2011-10-20 Andreas Fritiofson * : rtos: remove broken code for handling the deprecated qP packet Change-Id: Icca522c1e2a2877abb20665b171c61079b1d8f48 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/37 Tested-by: jenkins Reviewed-by: Peter Stuge 2011-10-19 Freddie Chopin * : Unused variables Fix a few errors with set and unused variables detected by GCC 4.7.0 Change-Id: I59b748e18e514ee9f0cde7883b4ed5116198bd4a Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/36 Tested-by: jenkins Reviewed-by: Spencer Oliver 2011-10-19 Uwe Hermann * : TMPA900/910 MCUs are always little endian. Signed-off-by: Uwe Hermann Change-Id: I8839f2cf0faf1b5ba9f99901c5ee028b199fabd2 Reviewed-on: http://openocd.zylin.com/35 Tested-by: jenkins Reviewed-by: Peter Stuge 2011-09-19 Matt Reimer * : xscale: fix bug in xscale_receive() The code in xscale_receive() that tries to skip invalid reads (i.e. reads that don't have the DBG_SR[0] 'valid' bit set) seems to be wrong, as it only looks at the first word's valid flag rather than each word's own valid flag. Am I reading the code correctly? If so, the attached patch should fix it. If this looks correct, I'll generate a proper patch and commit message. Matt Change-Id: I74ebe2ad7a36d340a9dd3b8487578b6ea7f3cf1e Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/32 Tested-by: jenkins Reviewed-by: Øyvind Harboe 2011-10-17 Spencer Oliver * : luminary: add peripheral reset script some luminary device classes require a reset script to emulate a hardware reset. Change-Id: Id505c92451244b48b0238c2130aebab2df8d208b Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/30 Reviewed-by: Øyvind Harboe Tested-by: Øyvind Harboe 2011-10-02 Karl Kurbjun * : ICEPick-C: Add support for warm reset through JTAG controller and provide finer detail functions. This sets up simple functions that can later be used to provide additional ICEPick Operations. Change-Id: I313b8679267696fad87d23f3692963e513f2fe21 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/22 Tested-by: Øyvind Harboe Reviewed-by: Øyvind Harboe 2011-10-14 Øyvind Harboe * : target_request: add target_got_message() that can be used to improve DCC performance API change to allow implementing a back-off algorithm for polling hardware. Change-Id: I6cbe8b4534c8dfeb8442305171ea96b5481c1f17 Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/26 Reviewed-by: Øyvind Harboe Tested-by: Øyvind Harboe 2011-10-14 Jim Norris * : Add some more detail for setting up Gerrit account. 1) Add a couple more steps when setting up the Gerrit account. Change-Id: I5d81feac4650d4d28653d14cfc0baf14270424c1 Signed-off-by: Jim Norris Reviewed-on: http://openocd.zylin.com/28 Reviewed-by: Peter Stuge Tested-by: Peter Stuge 2011-10-14 Spencer Oliver * : flash: fix lpc2000 driver typo Change-Id: I3a759ed98a27fd186c12355b846d5e97dba86c5b Signed-off-by: Spencer Oliver 2011-10-14 Uwe Hermann * : Add a board file for the Glyn Tonga2. This is a Toshiba TMPA900CMXBG (ARM9) based SO-DIMM CPU module with 64MB DDR SDRAM, 256MB NAND flash, and on-board Ethernet. The board file provides a tonga2_init function which sets up the PLL/clocks and memory (SDRAM and SRAM), which allows writing a boot-loader into RAM via JTAG. Change-Id: I60522b97997bdf50e1f25aebab910d93a98522fb Signed-off-by: Uwe Hermann Reviewed-on: http://openocd.zylin.com/19 Reviewed-by: Spencer Oliver Tested-by: Spencer Oliver 2011-10-03 Michel Jaouen * : breakpoint : smp software breakpoint issue Change-Id: Iefe78bad71d4fdb38ae412ab8fe2f6282836c22e Signed-off-by: Øyvind Harboe Reviewed-on: http://openocd.zylin.com/14 Tested-by: Spencer Oliver Reviewed-by: Spencer Oliver 2011-10-12 Øyvind Harboe * : docs: update HACKING to point to Gerrit Change-Id: If79e86c731ac06aaefca1aebde40e7cb3de68e4d Signed-off-by: Øyvind Harboe 2011-10-12 Spencer Oliver * : docs: update project url's Change-Id: I54fc3aff722ed25143aad85e58d19b72fcecbba0 Signed-off-by: Spencer Oliver 2011-10-11 Spencer Oliver * : replace berlios url's with sourceforge url's Change-Id: I1c9957bb64df87cee7c5e832f21453eb8934a5fb Signed-off-by: Spencer Oliver 2011-07-31 Andreas Fritiofson * : stm32f1x: use async algorithm in flash programming routine Let the target algorithm be running in the background and buffer data continuously through a FIFO. This reduces or removes the effect of latency because only a very small number of queue executions needs to be done per buffer fill. Previously, the many repeated target state changes, register accesses (really inefficient) and algorithm uploads caused the flash programming to be latency bound in many cases. Now it should scale better with increased throughput. Signed-off-by: Andreas Fritiofson 2011-07-15 Andreas Fritiofson * : cortex_m3: use armv7m's async algorithm implementation Signed-off-by: Andreas Fritiofson 2011-07-15 Andreas Fritiofson * : target: add async algorithm entries to the target type On supported targets, this may be used to start a long running algorithm in the background so the target may be interacted with during execution and later wait for its completion. The most obvious use case is a double buffered flash algorithm that can upload the next block of data while the algorithm is flashing the current. Signed-off-by: Andreas Fritiofson 2011-09-16 Simon Barner * : arm-jtag-ew: Formatting 2011-09-16 Simon Barner * : arm-jtag-ew: Emit a warning if interface firmware version != 1.6 2011-09-16 Simon Barner * : arm-jtag-ew: Provide armjtagew_speed_div() in order to fix interactive use of `adapter_khz' 2011-09-16 Simon Barner * : arm-jtag-ew: Fix setting interface speed (1/2) CMD_SET_TCK_FREQUENCY message length is 5, not 4 - Ticket: #34 2011-09-16 Clément Burin des Roziers * : STM32L: Added flash driver and target Added the flash driver for the STM32L family, which highly differ from the STM32F family. Added the TCL target file for JTAG access. 2011-09-19 Michel Jaouen * : u8500 : config for L2 cache 2011-09-29 Steve Bennett * : jim-nvp is moving from jimtcl to openocd The jim-nvp code is specific to openocd, so it belongs in openocd, not in the core jimtcl. Signed-off-by: Steve Bennett 2011-09-21 Mathias K * : add target events, run algorithm and default r/w buffer api Target events are added to get better gdb support. The run algorithm functionality are implemented to support feature fast flash write functionality. The new r/w buffer api is now used to support the special memory address handling. The output of the md command was fixed. 2011-09-17 Mathias K * : kinetis cpu flash driver Initial release of the freescale kinetis cpu flash driver. 2011-09-12 Mathias K * : kinetis auto mass erase on secured devices This is a proof of concept to get access to the debug port of a secured kinetis cpu. On full flash erase the cpu is automatically secured and the debug port is not accessible. To get this to work the srst line is needed and the necessary configuration should be added to the configuration file. 2011-09-01 Uwe Bonnes * : Add definition for the STEVAL-PCC010 board with the STM32F207 2011-08-31 Martin Schmölzer * : ULINK driver: Remove typedefs in ulink.c Signed-off-by: Martin Schmölzer 2011-08-31 Martin Schmölzer * : ULINK driver: Remove typedefs in OpenULINK firmware USB descriptor structures Signed-off-by: Martin Schmölzer 2011-08-31 Rodrigo L. Rosa * : static for some functions made two functions into static, since they are not required by anything external 2011-08-31 Øyvind Harboe * : commit 353362651fc28c1f1d823659cde36dd31d1aede6 Author: Martin Schmoelzer Date: Tue Aug 23 17:22:53 2011 +0200 2011-08-04 Martin Schmoelzer * : ULINK driver: Add '-lm' linker flag when building this driver (required for correct calculation of JTAG TCK speed setting) Signed-off-by: Martin Schmölzer 2011-07-04 Martin Schmölzer * : ULINK driver: Implement variable TCK frequency in OpenULINK firmware Also, speed up jtag_clock_tck() significantly (150 kHz -> 375 kHz) Signed-off-by: Martin Schmölzer 2011-08-23 Martin Schmoelzer * : ULINK driver: Implement JTAG_PATHMOVE command Signed-off-by: Martin Schmölzer 2011-07-04 Martin Schmölzer * : ULINK driver: Implement command to manually force downloading firmware image from arbitrary location Signed-off-by: Martin Schmölzer 2011-07-04 Martin Schmölzer * : ULINK driver: Properly propagate return values in ulink_execute_queue() Signed-off-by: Martin Schmölzer 2011-08-31 simonqian.openocd * : vsllink driver compile fails with'vsllink_debug_buffer' defined but not used USB communication is handled by code under versaloon directory. So _DEBUG_USB_COMMS_ should not be used in vsllink.c. Attachment is the patch. 2011-08-30 Rodrigo L. Rosa * : fix enter debug mode for locking added an alternative way to enter debug mode, which does not require restarting the chip. this will not always work, but in general it will (failure 0.3%), and failure is not a dramatic issue, simply have to use the full sequence. the user can only access "halt", which uses the full sequence, so the user should not have any problems. restarting the chip requires reconfiguring the flash module. the doc is very poor, so i'd rather have the two methods, and live with the 0.3%. 2011-08-30 Rodrigo L. Rosa * : fix debug mode,lock,unlock got new info regarding setting the chip to debug mode, and locking/unlocking flash memory. the newer implementation is a bit slower, but always works. the previous implementation would randomly (as once every 25k-70k times) get the chip into a state where the freescale tool would be necessary. this is fixed now. added functions to play around with the jtag state machine. they are not the happiest, but are necessary to be able to execute the halting/locking/unlocking sequences. Conflicts: src/target/dsp5680xx.c 2011-08-30 Rodrigo L. Rosa * : optional crc for flash writing crc check was always performed on newly flashed data, now it is optional flash mem can be locked by writing a specific word to a specific address in flash. to verify flash, target must be halted, and this will (when the new halt sequence is implemented) require reseting the chip. if the target is reset after writing the lock words, then it will lock, hence the CRC will fail because it is not possible to read stuff from the target. also added a function that resets the jtag state machine. this is not used yet, but will be soon. it is implemented to allow strict control over JTAG state machine, necessary to implement to halt and unlocking sequences. 2011-08-15 Rodrigo L. Rosa * : dsp568013 disable polling by default 2011-08-26 Evan Hunter * : Fix off by one bug in FreeRTOS 2011-08-24 Jonathan Dumaresq * : This will add the Value Line HD of stm32 devices. This has been tested on STM32F100VE 2011-07-18 Evan * : Add suspended task list to FreeRTOS support 2011-08-22 Jim Paris * : Fix redbee config files Currently the board/redbee-*.cfg files incorrectly include the interface definition. Move the interfaces to interface/, and create a single board/redbee.cfg that is common to both boards. Intended usage is now: openocd -f interface/redbee-econotag.cfg -f board/redbee.cfg 2011-08-20 olivier Schonken * : Fix Sam3u flash bank 1 issue 2011-08-17 Jie Zhang * : remove white space before TAB 2011-07-12 SimonQian * : versaloon driver update Signed-off-by: Spencer Oliver 2011-08-16 Spencer Oliver * : build: rename configure.in to configure.ac configure.ac is the correct name to use with modern autotools. Signed-off-by: Spencer Oliver 2011-08-15 Jie Zhang * : show git commit number even when cross-compiling AC_CHECK_FILE will die when cross-compiling. So don't use it to test the existence of guess-rev.sh. Signed-off-by: Spencer Oliver 2011-08-10 Stefan Mahr * : mips: fix potential alignment error 2011-08-10 Stefan Mahr * : target: add helper functions to get/set u16 or u32 array from/to buffer 2011-08-10 Jie Zhang * : remove useless pxref to SMP subsection 2011-08-11 Steve Bennett * : Evaluate 'script' in the global scope Scripts sourced via 'script' should evaluate in the global scope to make it easy to set and reference global variables. Signed-off-by: Steve Bennett 2011-08-05 Rodrigo L. Rosa * : renamed for clarity i had started my code from dsp5683xx, i renamed a bunch of stuff to names i consider to be better. i believe no one is using this code, so nobody should be affected. (it's not too late to do this change) 2011-07-17 Andreas Fritiofson * : rlink: simplify and optimize queue fill level checks Add a helper function for running the queue if it would overflow otherwise. Use it to simplify the queue fill level checks and optimize in a few cases that would previously run the queue prematurely. Signed-off-by: Andreas Fritiofson 2011-07-16 Andreas Fritiofson * : rlink: remove duplicated code After the reply_index handling is fixed, there's no need to special case the out scan. Signed-off-by: Andreas Fritiofson 2011-07-16 Andreas Fritiofson * : rlink: more indentation fixes Remove unnecessary block scopes to reduce indentation level. Signed-off-by: Andreas Fritiofson 2011-07-25 Drasko DRASKOVIC * : mips32 : Fixed memory byte access Function mips_m4k_write_memory() does endianess byte swap, but this procedure break one byte access (temporary array overwrites content in buffer). As a fix, this endianess swap and buffer affecting is preformed only on hword and word accesses (not on byte access). 2011-07-07 Drasko DRASKOVIC * : mips32: Added CP0 coprocessor R/W routines This patch adds MIPS32 CP0 coprocessor R/W routines, as well as adequate commands to use these routines via telnet interface. Now is becomes possible to affect CP0 internal registers and configure CPU directly from OpenOCD. 2011-07-05 Drasko DRASKOVIC * : mips32: Removed Unnecessary JTAG Queue Flush jtag_execute_queue() is executed as a part of mips_ejtag_drscan_32(). No need for this to be done before - removed for optimisation. 2011-08-09 Rodrigo L. Rosa * : fix return error msj retval was not correctly propagated 2011-08-09 Øyvind Harboe * : Revert "dsp5680xx: disable for now, it generates warnings" This reverts commit d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4. 2011-07-19 Rodrigo L. Rosa * : dsp5680xx fix FM clk before doing anything with the flash module (FM) the clock divider must be set. if erase_check was the first thing done with the FM after reset then an error would be generated because the clk divider was not set. now erase_check sets the clk divider. 2011-08-09 Jean-Christophe PLAGNIOL-VILLARD * : Archive and recreate NEWS file. Archive released NEWS file as NEWS-0.5.0. Create new NEWS file from release script template. 2011-08-09 Jean-Christophe PLAGNIOL-VILLARD * : The openocd 0.5.0 release. Remove '-dev' version tag: 0.5.0-dev -> 0.5.0 2011-08-03 Luca Bruno * : Automatically generate ChangeLog from git log for release tarball make dist should use git2cl to generate ChangeLog from git history, populating the placeholder file in released tarball. Signed-off-by: Luca Bruno Signed-off-by: Spencer Oliver 2011-08-01 Jie Zhang * : etb: fix incorrect previous patchset This corrects two issues found with openocd. d7f71e7fe9645fa8c3f88cf6fc9ad438aa6708f3 removed some code that was being used. The above then caused even more code to get removed by commit 1cfb2287a67c1f78b76583b2e5ed83ca3560b0d5. Signed-off-by: Spencer Oliver 2011-07-28 Spencer Oliver * : docs: remove obsolete luminary target info The lm3s variant is not required as this is handled in the target script - see tcl/target/stellaris.cfg. Signed-off-by: Spencer Oliver 2011-07-28 Spencer Oliver * : cfg: update scripts to use new stm32 driver names Signed-off-by: Spencer Oliver 2011-07-28 Spencer Oliver * : flash: update stm32 driver names Use consistent names for the stm32 family flash drivers, eg. stm32x -> stm32f1x stm32f2xxx -> stm32f2x this makes it easier to add support for newer stm32 families. Signed-off-by: Spencer Oliver 2011-07-27 Spencer Oliver * : doc: add Fujitsu FM3 flash driver info Signed-off-by: Spencer Oliver 2011-07-21 Jie Zhang * : Update doc about Jim since it's not a single .C file and a single .H file any more Signed-off-by: Spencer Oliver 2011-07-18 Michael Hunold * : CPU name in TMPA900 config file should obviously be TMPA900 (not TMPA910). Signed-off-by: Spencer Oliver 2011-07-18 Spencer Oliver * : jimtcl: update to support --disable-install-jim Update jimtcl version to commit 6233a6c5d39928f1bfafa8f41cb1ddf0c5a83de0 This enable to to build jimtcl as a submodule but not install it. Signed-off-by: Spencer Oliver 2011-07-09 Luca Bruno * : Do not append git info to version string when building from released tarball When building official releases from tarball, git commit info is not available in the building environment. Thus, automake should not try to append the git commit to the version string. Signed-off-by: Luca Bruno Signed-off-by: Spencer Oliver 2011-07-12 Spencer Oliver * : busblaster: Fix warnings when building against D2XX The default is -Werror, so warnings become errors. Signed-off-by: Spencer Oliver 2011-07-12 Steve Bennett * : ftdi: update for latest libftdi 1.0.4 For libftd2xx1.0.4, which uses a different directory structure than libftd2xx0.4.16 Without this fix the build fails with version 1.0.4 of the driver. Note that this does not fix --with-ftd2xx-lib=shared Signed-off-by: Steve Bennett Signed-off-by: Spencer Oliver 2011-07-04 Drasko DRASKOVIC * : mips_m4k and arm7_9 : Fix soft bkpt endianess for 16-bit instructions The patch fix comparison of target data on the host by using target_buffer_get_u16() to transform current_instr to _host_ endianess before comparison. 2011-07-04 Spencer Oliver * : Revert "cortex_m3: add auto maskisr" This reverts commit ff640f197a9a343b2f3ed10e9174e35282334e8c. Original patch reverted as Author's name was incorrectly set. 2011-06-29 Spencer Oliver * : jimtcl: update to 0.71 based release The actual release is 411e92fea9621630eb350e0c2bb43543e553b84f as we had a few issues relating to its use within openocd. Signed-off-by: Spencer Oliver 2011-06-28 Øyvind Harboe * : mips4k: fix big-endian hosts and host alignment problems the code was making assumptions about the endianness of the host. 2011-06-28 Spencer Oliver * : cortex_m3: add auto maskisr This patch extends the cortex_m3 maskisr command by a new option 'auto'. The 'auto' option handles interrupts during stepping in a way they are processed but don't disturb the program flow during debugging. Before one had to choose to either enable or disable interrupts. The former steps into interrupt handlers when they trigger. This disturbs the flow during debugging, making it hard to follow some piece of code when interrupts occur often. When interrupts are disabled, the flow isn't disturbed but code relying on interrupt handlers to be processed will stop working. For example a delay function counting the number of timer interrupts will never complete, RTOS task switching will not occur and output I/O queues of interrupt driven I/O will stall or overflow. Using the 'maskisr' command also typically requires gdb hooks to be supplied by the user to switch interrupts off during the step and to enable them again afterward. The new 'auto' option of the 'maskisr' command solves the above problems. When set, the step command allows pending interrupt handlers to be executed before the step, then the step is taken with interrupts disabled and finally interrupts are enabled again. This way interrupt processing stays in the background without disturbing the flow of debugging. No gdb hooks are required. The 'auto' option is the default, since it's believed that handling interrupts in this way is suitable for most users. The principle used for interrupt handling could probably be used for other targets too. Signed-off-by: Spencer Oliver 2011-06-27 Spencer Oliver * : build: cleanup jimtcl generated configure.gnu We use configure.gnu to pass options to the jimtcl submodule. Make sure a distclean removes any generated files Signed-off-by: Spencer Oliver 2011-06-20 Martin Schmölzer * : Add OpenULINK driver files generated by SDCC to .gitignore 2011-06-20 Martin Schmölzer * : Include ULINK driver in src/jtag/drivers/Makefile.am A new variable "nobase_dist_pkglib_DATA" is introduced to install the OpenULINK firmware image to $PREFIX/lib/openocd/OpenULINK/ulink_firmware.hex Also, the variable "EXTRA_DIST" is used to include the OpenULINK firmware source in the OpenOCD source distribution. 2011-06-20 Martin Schmölzer * : Include ULINK driver in configure.in 2011-06-20 Martin Schmölzer * : Include ULINK driver in src/jtag/interfaces.c 2011-06-20 Martin Schmölzer * : Add source code for new ULINK driver 2011-06-17 Spencer Oliver * : build: do not included generated files in distribution We have to use this method as automake seems to ignore nodist_ on libs. Signed-off-by: Spencer Oliver 2011-06-17 Spencer Oliver * : build: pass correct flags to jimtcl during make distcheck This is only for the case of a make distcheck. During a normal release build these flags will be created by configure.gnu Signed-off-by: Spencer Oliver 2011-06-16 Tomek CEDRO * : ADAPTER: Fixed transport selection mechanism to support transports other than jtag (if defined). 2011-06-15 Dale Lukas Peterson * : Added Olimex STM32 {H,P}107.cfg board 2011-06-12 Øyvind Harboe * : HACKING: add tip on how to write comments 2011-06-10 Rodrigo L. Rosa * : doxy more 2011-06-10 Rodrigo L. Rosa * : fix protection behavior 2011-06-10 Rodrigo L. Rosa * : flash speed improved 2011-06-10 Rodrigo L. Rosa * : cleanup flash module command 2011-06-10 Rodrigo L. Rosa * : fix read speed improved by queueing commands 2011-06-10 Rodrigo L. Rosa * : Added minimodule (ftdi) interface 2011-06-06 Laurent Charpentier * : Added configuration file for stm32f2xxx. 2011-06-03 Freddie Chopin * : Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes 2011-06-02 Rodrigo L. Rosa * : crc check on flashed data 2011-06-03 Freddie Chopin * : Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes 2011-06-02 Bear * : uptech2410 2011-05-31 Stefan Mahr * : mips: fixup fastdata fixup fastdata 2011-05-31 Laurent Charpentier * : bootstrap: fix argument handling - no argument => run submodule init - "nosubmoudle" => do not run submodule - other values => error message 2011-05-29 Stefan Mahr * : mips: fix swapping if running on big endian host 2011-05-28 Damjan Marion * : Fixed values for Samung NAND chips 2011-05-23 Damjan Marion * : Reorganize NAND flash table - added manufacturer field - name moved to the end for better text alignment 2011-05-23 Alan Bowman * : Report actual current thread 2011-05-24 Stefan Mahr * : add support for spansion flash on mindspeed c300 eval board Signed-off-by: Stefan Mahr 2011-05-23 Spencer Oliver * : Fix build issue under cygwin cygwin does not define sleep, so use our internal win32 version. caused by commit 9d4aec6bda90ad39a140747ea270c6a09dd26440 Signed-off-by: Spencer Oliver 2011-05-03 Jie Zhang * : Get register value if it's invalid in cache. 2011-05-17 Rodrigo L. Rosa * : flash support (only full erase/write) for 568013 and 568037 2011-05-11 Alan Bowman * : Correct stacking direction and use of address offset 2011-05-04 Øyvind Harboe * : beagleboard: add support for various icepick versions The beagleboard icepick jtag tap id's vary. 2011-04-27 Alexandre Pereira da Silva * : Add support for the lpc2460 target 2011-05-03 Jie Zhang * : Remove useless MIPS code in avr32_ap7k.c. 2011-04-28 Øyvind Harboe * : ecos: add 64 bit types for sprintf/sscanf 2011-04-19 Michel Jaouen * : gdb_server : 'R' command replied by OK 2011-04-19 Michel Jaouen * : smp : infra for smp minimum support 2011-04-24 SimonQian * : add STM32F2 revY 2011-04-21 Damjan Marion * : buspirate: fix building on some OSes 2011-04-12 Alexandre Pereira da Silva * : Fix non cfi x16 nor flash connected to x8 bus. The ids in the table should be masked before comparison. 2011-04-12 Alexandre Pereira da Silva * : Make the LPC32xx slc nand driver the default 2011-04-14 Broadcom Corporation (Evan Hunter) * : RTOS Thread awareness support wip - works on Cortex-M3 with ThreadX and FreeRTOS Compared to original patch a few nits were fixed: - remove stricmp usage - unsigned compare fix - printf formatting fixes - fixed a bug with overrunning a memory buffer allocated with malloc. 2011-04-13 Luca Ellero * : Replace byte-access to memory with faster word-access Freescale iMX53 doesn't seem to like unaligned accesses to his memory mapped registers. Anyway this patch makes dump_image/load_image 4X faster for every access through APB. Signed-off-by: Luca Ellero 2011-04-13 Luca Ellero * : Add preliminary support for Freescale iMX53 Signed-off-by: Luca Ellero 2011-04-12 Michel JAOUEN * : cortex_a :apb mem read/write working with mmu_on Conflicts: src/target/cortex_a.c 2011-04-12 Michel JAOUEN * : cortex_a : use dap ref from armv4_5common 2011-04-09 Jean-Christophe PLAGNIOL-VILLARD * : at91: add chip register definition and generic init support for - pio - pmc - rstc - wdt - sdramc - smc Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-04-09 Jean-Christophe PLAGNIOL-VILLARD * : add at91sam9261-ek support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-04-09 Jean-Christophe PLAGNIOL-VILLARD * : jlink: jlink_debug_buffer use inline function when _DEBUG_USB_COMMS_ not define Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-04-03 Ali Lown * : Add support for LED to USB Blaster code. 2011-04-05 Michel JAOUEN * : cortex_a : implement jtag console for cortex_a 2011-04-04 Drasko DRASKOVIC * : Corrected waiting on PrAcc in wait_for_pracc_rw(). Added necessary check that PrAcc is "1" before FASTDATA access. 2011-04-02 Øyvind Harboe * : pandaboard: use new -dbgbase option to workaround broken ROM table Signed-off-by: Øyvind Harboe 2011-04-01 Michel JAOUEN * : cortex_a: fix gaffe in first implementation of -dbgbase 2011-04-01 Øyvind Harboe * : mips: fix gaffe in previous commit accidentally invoked return jtag_execute_queue() in the middle of a fn. Hmm.... I would have expected gcc or at least lint to catch this. Signed-off-by: Øyvind Harboe 2011-03-31 Phil * : Added s19 to (fast_)load_image documentation to match the online help. 2011-03-31 Øyvind Harboe * : types: write memory now uses const Signed-off-by: Øyvind Harboe 2011-03-31 Øyvind Harboe * : startup: fix bugs in cleanup upon errors during startup Importantly adapter cleanup will now happen upon startup failure. Signed-off-by: Øyvind Harboe 2011-03-31 Øyvind Harboe * : mips: mips_ejtag_get_impcode error propagation added Signed-off-by: Øyvind Harboe 2011-03-31 Øyvind Harboe * : mips: fix error handling for jtag_execute_queue() Signed-off-by: Øyvind Harboe 2011-03-30 Øyvind Harboe * : cortex-a: use -dbgbase option Signed-off-by: Øyvind Harboe 2011-03-28 Olivier Schonken * : at91sam3: Modified cidr comparisson to ignore version bits production processor versions increment, thus the version bits should be ignored for future proofing. e.g. Engineering sample version == 0x00, production version 0x01 2011-03-29 Alexandre Pereira da Silva * : Clarify LPC32XX address cycles message Hi, This is a more descriptive message about LPC32XX error, when the nand chip needs 5 address cycles. Thanks. 2011-03-28 Andrew Lyon * : bugfix for step
mips_m4k The patch below fixes step
on mips_m4k. Spencer Oliver : The current code is used on all other arch's - is there a underlying issue with those aswell ? 2011-03-22 Øyvind Harboe * : cortex_a: rename cortex_a8.c/h to cortex_a.c/h Signed-off-by: Øyvind Harboe 2011-03-21 Øyvind Harboe * : cortex a9: merge cortex a9 and a8 code better to keep this in a single file. Signed-off-by: Øyvind Harboe 2011-03-21 Øyvind Harboe * : zy1000: fix bug in ir scan handling set cur_instr to BYPASS as optimisation code will rely on checking the cached value. Signed-off-by: Øyvind Harboe 2011-03-20 Øyvind Harboe * : dsp563xx_once: fix warning and potential bug I don't think dsp563xx_once_read_register() would ever be called with len==0, but it would have been broken in that case. Signed-off-by: Øyvind Harboe 2011-03-03 Mathias K * : target: allow targets to override memory alignment Targets can implement read/write_buffer to handle alignment. 2011-03-17 Uwe Hermann * : Fix a bunch of typos. Fix a bunch of typos. Most are in code comments, so nothing should break. UNKOWN_COMMAND and CMD_UNKOWN are not used elsewhere, so correcting the spelling should also not break anything. 2011-03-15 Øyvind Harboe * : dsp563xx: fix bug in x buffer handling found by inspection. Signed-off-by: Øyvind Harboe 2011-03-03 Øyvind Harboe * : zy1000: fix JTAG over TCP/IP performance problem only flush write queue just before waiting for more data, rather than when fetching more data from the buffer. Signed-off-by: Øyvind Harboe 2011-03-03 Øyvind Harboe * : jtag: clean up jtag_sleep, handle short sleeps correctly via usleep short sleeps are handled via usleep, longer sleeps we round up to nearest ms. There was a bug in jtag_sleep() in that it would round *down* to nearest ms, thus making all <1ms sleeps 0. Found by inspection rather than symptom. Signed-off-by: Øyvind Harboe 2011-03-10 Aaron Carroll * : omap4430: add Blaze config Signed-off-by: Aaron Carroll 2011-03-07 Jean-Christophe PLAGNIOL-VILLARD * : jlink: add Emulator configuration support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-03-07 Jean-Christophe PLAGNIOL-VILLARD * : jlink: use tap buffer as 2k as said in the datasheet Section 3.3.2 Organization of buffers All buffers are big enough to hold 2 KByte of data. this will double the speed of download Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-03-03 Mathias K * : ft2232: fix log message and change log output to debug 2011-03-02 Jean-Christophe PLAGNIOL-VILLARD * : at91: add at91sam9g10 support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-03-02 Jean-Christophe PLAGNIOL-VILLARD * : at91: add at91sam9263 support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-03-02 Jean-Christophe PLAGNIOL-VILLARD * : at91sam9: factorise cpu support all at91sam9 are nearly the same except sram and soc name Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-02-28 Jean-Christophe PLAGNIOL-VILLARD * : jlink: switch commands to subcommands Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD 2011-02-28 Jean-Christophe PLAGNIOL-VILLARD * : jlink: add new PID and VID The default pid of the segger is 0x0101 But when you change the USB Address it will also pid = ( usb_address > 0x4) ? 0x0101 : (0x101 + usb_address) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD 2011-02-24 Øyvind Harboe * : log: debug level is between silent and debug output levels It wasn't previously possible to silence the output. Signed-off-by: Øyvind Harboe 2011-02-24 Mathias K * : ft2232: fix possible read buffer overflow This patch fix a possible read buffer overflow in ft2232_execute_queue. Also the correct read queue size for libftdi and libftd2xx was added and and tested. In function ft2232_write a uninitialized value was initialized because we don't know if this value was set in the ftdi api call. 2011-02-21 Jean-Christophe PLAGNIOL-VILLARD * : add at91rm9200-ek board support tested with jlink sam-ice v5 while loading barebox (gdb) load Loading section .text, size 0x2f190 lma 0x21f00000 Loading section .rodata, size 0x931c lma 0x21f2f190 Loading section .data, size 0x29e8 lma 0x21f384ac Loading section .barebox_cmd, size 0x78c lma 0x21f3ae94 Loading section .barebox_initcalls, size 0x80 lma 0x21f3b620 Start address 0x21f00000, load size 243360 Transfer rate: 26 KB/sec, 13520 bytes/write. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez 2011-02-20 Mathias K * : dsp563xx: rudimentary gdb support This patch add rudimentary gdb support. The gdb register list order is corrected. All registers are now 32bit width. Events are send to signalize gdb the current target status. Resume and step function was corrected to consider a modified pc register. Read/write memory now support L memory type, this means a memory with alternating y/x memory words. The memspace variable, used by gdb, is now observed before a default memory access is initiated. Dummy functions for breakpoint and watchpoint are added. 2011-02-18 SimonQian * : fix compile error under MinGW 2011-02-14 Luca Ellero * : arm_adi_v5: add/move apsel member in struct adiv5_dap This patch tries to make some order in "apsel" mess. "dap apsel" command was quite useless (and broken) by itself. With this patch we can use it to select between AHB or APB memory access (previous patch 05ab8bdb813acdcd74afa71d6656c2df816cb230 was somehow broken). - moves member apsel (in struct adiv5_dap) to ap_current - adds apsel member this strange choice is made trying to keep coherence in "dap apsel" command and to keep compatibility with other code (for example cortex_a8). Signed-off-by: Luca Ellero 2011-02-17 Mathias K * : dsp563xx_once: Correct wrong return value on jtag communication errors This patch change the return value on a jtag communication error to TARGET_UNKNOWN because this function should return the current target status and not a error code from the underlying api call. Also the validity of the jtag_status is extended to all static bits in this value. 2011-02-15 Bjarne Steinsbo * : lpc32xx: Flash driver Based on the lpc3180 driver, but released as a separate driver for two reasons: 1) I don't have an lpc3180 to test it against, so it might unintentionally break compatibility. 2) It's using a different OOB layout than lpc3180. Rewritten so that it no longer borrows code from the NXP CDL library. Instead borrowing code from the u-boot port to lpc32xx, written by Kevin Wells. Tested on lpc3250 (Hitex LPC3250-Stick). OOB layout is compatible with LPCLinux. 2011-02-15 Mathias K * : - add bulk memory write function - execute jtag queue at the end of the memory transfer 2011-02-13 Mathias K * : ft2232: add functions for ft2232 set data bits high/low byte command reduce duplication. No change in behavior. 2011-02-12 Luca Ellero * : arm_adi_v5: add wrapping transfer functions with selection of ap Signed-off-by: Luca Ellero 2011-02-12 Luca Ellero * : cortex_a9: check if MMU is enabled on APB read/write memory Signed-off-by: Luca Ellero 2011-02-12 Luca Ellero * : cortex_a9: trivial fixes Signed-off-by: Luca Ellero 2011-02-09 Luca Ellero * : cortex_a9: implement read/write memory through APB-AP This patch adds read/write capability to memory addresses not accessible through AHB-AP (for example "boot ROM code"). To select AHB or APB, a "dap apsel" command must be issued: dap apsel 0 -> following memory accesses are through AHB dap apsel 1 -> following memory accesses are through APB NOTE: at the moment APB memory accesses are very slow, compared to AHB accesses. Work has to be done to get it faster (for example LDR/STR instead od LDRB/STRB) Signed-off-by: Luca Ellero 2011-02-08 Michal Demin * : buspirate: Fix command parsing, fix errors to have more sense. Signed-off-by: Michal Demin 2011-02-07 Luca Ellero * : omap4430: Add JRC TAPID for PandaBoard REV EA1 (PEAP platforms) PandaBoard REV EA1 (Panda Early Adopter Program) has a different ID. This patch add alternate REV EA1 TAP id to configuration file Signed-off-by: Luca Ellero 2011-02-08 Luca Ellero * : cortex_a8/a9: fix some comments Signed-off-by: Luca Ellero 2011-01-31 Øyvind Harboe * : stm32x: add support for STM32F20x ready for wider testing and comments on basic erase + programming. Signed-off-by: Øyvind Harboe 2011-02-02 Mathias K * : 24bit buffer support Hello, this patch add 24bit support to the target buffer functions and little/big endian functions. Regards, Mathias 2011-02-02 Aaron Carroll * : cortex_m3: allow scripts to override reset If a handler for the reset-assert event it present, skip the usual reset handling. This is needed, for example, for board-level resets. Signed-off-by: Aaron Carroll 2011-01-31 Øyvind Harboe * : cfi: use ARM32 machine code on all CPUs but Cortex M3 ARM11 broke with aa61a3b3d8b6acad19050987835ec05f3d298bdb as the code only checked for arm 7/9. CFI probably needs work for non-ARM targets but perhaps not adding working area memory to e.g. MIPS will give the default slow CFI support. Signed-off-by: Øyvind Harboe 2011-01-24 Aaron Carroll * : cortex_a9: add source files for Cortex A9 support. add target and build support for A9 Signed-off-by: Aaron Carroll 2011-01-24 Aaron Carroll * : Add '-coreid' target option to support multiple cores per TAP. ARM Cortex-A9 multi-core chips expose a single TAP/DAP which connects to both cores. The '-coreid' option selects which core the target should connect to. Note that at present, OpenOCD can connect to either core, but not both simulatenously, until ADI contexts can be shared. Signed-off-by: Aaron Carroll 2011-01-28 Aaron Carroll * : openocd.texi: minor fixes in Reset Configuration Signed-off-by: Aaron Carroll 2011-01-26 Mathias K * : - add xds100v2 configuaration file Signed-off-by: Spencer Oliver 2011-01-26 Mathias K * : add basic TI xds100v2 support Signed-off-by: Spencer Oliver 2011-01-18 Eric Wetzel * : stellaris: automatically generate and update device IDs Added a Perl script to contrib that uses the header files in StellarisWare complete Firmware Development Package provided by TI/Luminary to generate a new list of device IDs Used Perl script and revision 6734 of TI/Luminary StellarisWare to update device IDs 2011-01-13 Santeri Salko * : str9xpec: Find flash controller from the chain. Find the flash controller by position since it is before the core, not after it. This fixes the problem that str9xpec enable_turbo (or any other str9xpec command) did not work. (See my post in http://forum.sparkfun.com/viewtopic.php?f=18&t=25542) Signed-off-by: Santeri Salko 2011-01-13 simon qian * : transport: fix LOG_DEBUG gaffe LOG_DEBUG() arguments are only evaluated when DEBUG logging is enabled, do not use arguments that have side effects like foo++. Signed-off-by: Øyvind Harboe 2011-01-05 Eric Wetzel * : nit: more LOG_* \n fixes Remove extra \n from LOG_DEBUG, LOG_INFO, and LOG_WARNING messages Remove LOG_INFO_N LOG_INFO_N was only used once and had a \n at the end Change LOG_USER_N calls that end with \n to LOG_USER 2011-01-08 David Brownell * : present CM3 Trace agenda 2011-01-06 Spencer Oliver * : cfi: use safer arch detection Signed-off-by: Spencer Oliver 2011-01-05 Jonathan Dumaresq * : Add the support for the armv7m arch. Signed-off-by: Jonathan Dumaresq 2011-01-05 Eric Wetzel * : nit: do not add \n at end of LOG_ERROR Fixed in many other places, and submitted in response to Øyvind's invitation. 2010-12-24 Spencer Oliver * : target: change working area free data type We only use the struct working_area member 'free' as a true/false type so might as well use a bool data type. Signed-off-by: Spencer Oliver 2011-01-03 Øyvind Harboe * : error handling: the error number is not part of the user interface Do not propagate error number to user. This is for internal programming purposes only. Error messages to the user is reported as text via LOG_ERROR(). Signed-off-by: Øyvind Harboe 2011-01-02 Michael Schwingen * : cfi_protect is not implemented on Spansion flashes (many do not even have protection bits). Demote from error to warning, so that common board code can use "flash write_image erase unlock" regardless of the flash type. Signed-off-by: Michael Schwingen 2011-01-02 Jon Povey * : svf: implement sleep for RUNTEST min_time Signed-off-by: Jon Povey min_time was effectively ignored, I needed it to program a Lattice MachXO which uses a RUNTEST to wait for an erase operation, amongst other things. With this patch pauses happen and I can program the device with an SVF generated in LSC ispVM (with "Rev D Standard" checked to suppress nonstandard LOOP statements) 2010-12-31 Antonio Borneo * : NAND/S3CXXXX: remove private "target" copy Remove "target" form private data, and use common one in struct nand_block. Signed-off-by: Antonio Borneo 2010-12-31 Antonio Borneo * : NAND/NUC910: remove private "target" copy Remove "target" form private data, and use common one in struct nand_block. Signed-off-by: Antonio Borneo 2010-12-31 Antonio Borneo * : NAND/MX2: remove private "target" copy Remove "target" form private data, and use common one in struct nand_block. Signed-off-by: Antonio Borneo 2010-12-31 Antonio Borneo * : NAND/DAVINCI: remove private "target" copy Remove "target" form private data, and use common one in struct nand_block. Signed-off-by: Antonio Borneo 2010-12-31 Antonio Borneo * : NAND/TCL: prepare for common "target" reference Every NAND driver keeps private copy of "target" structure. Prepare infostructure to move private "target" copy in common/shared struct nand_device. Signed-off-by: Antonio Borneo 2010-12-31 Antonio Borneo * : NAND/CORE: Comment use of alive_sleep() Signed-off-by: Antonio Borneo 2010-12-31 Antonio Borneo * : flash/nand: review NAND driver interface From struct nand_flash_controller : - remove unused field register_commands; - remove field controller_ready, exported but never referenced. Remove dead code pointed by controller_ready. Signed-off-by: Antonio Borneo 2010-12-29 Andrew MacIsaac * : Compilation Warnings on OS X 10.5 I received a number of "-Wshadow" related warnings (treated as errors) while trying to build on OS X Leopard. In addition, there were two miscellaneous other warnings in the flash drivers. Attached are two patches which correct these issues and the commit messages to accompany them. My system has the following configuration (taken from uname -a): Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 === Werror_patch.txt Commit Message === compilation: fixes for -Wshadow warnings on OS X These changes fix -Wshadow compilation warnings on OS X 10.5.8 Compiled with the following configure command: ../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink --enable-ft2232_libftdi === flash_patch.txt Commit Message === compilation: fixes for flash driver warnings on OS X These changes fix two compilation warnings on OS X 10.5.8: ../../../../src/flash/nor/at91sam3.c:2767: warning: redundant redeclaration of 'at91sam3_flash' ../../../../src/flash/nor/at91sam3.c:101: warning: previous declaration of 'at91sam3_flash' was here and ../../../../src/flash/nor/stmsmi.c:205: warning: format not a string literal and no format arguments Compiled with the following configure command: ../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink --enable-ft2232_libftdi === Andrew 2010-12-29 Øyvind Harboe * : warnings: use more 'const' for char * Signed-off-by: Øyvind Harboe 2010-12-24 David Brownell * : initial SWD transport (SWD infrastructure #2) This piggy backs on JTAG so it's not yet pretty, but that seems unavoidable so far given today's OpenOCD internals. SWD init and data transfer are unfinished and untested, but that should cause no regressions, and will be addressed by the time drivers start using this infrastructure. Checking in whould get the code working better sooner, and turn up any structural/architectural issues while they're easier to fix. The debug adapter drivers will provide simple SWD driver structs with methods that kick in as needed (instead of JTAG). So far just one adapter driver has been updated (not yet ready to use or circulate). The biggest issues are probably - fault handling, where the ARM Debug Interface V5 pipelining needs work in both JTAG and SWD modes and - missing rewrite of block I/O code to work on both of our Cortex-ready transports (Current code is hard-wired to JTAG); relates also to the pipelining issue. - omitted support to activate/deactivate SWO/SWV trace (this is technically trivial, but configuring what to trace is NOT. Signed-off-by: David Brownell ---- doc/openocd.texi | 17 ++ src/jtag/core.c | 3 src/jtag/interface.h | 4 src/jtag/jtag.h | 2 src/jtag/swd.h | 114 +++++++++++++++++++ src/jtag/tcl.c | 2 src/target/adi_v5_swd.c | 281 ++++++++++++++++++++++++++++++++++++++++++++++-- src/target/arm_adi_v5.c | 8 + src/target/arm_adi_v5.h | 3 9 files changed, 425 insertions(+), 9 deletions(-) 2010-12-23 Spencer Oliver * : flash: print flash bank name on flash info cmd The flash bank name is a required element in adding flash banks, however other than looking at the config file there is no way of getting the name used in openocd. Signed-off-by: Spencer Oliver 2010-12-23 Spencer Oliver * : stm32: update option bytes for stm32xl family add supoort for xl family boot bank option. The option byte handling will be cleaned up in a later patch. Signed-off-by: Spencer Oliver 2010-12-22 Spencer Oliver * : stm32: add dual flash bank support This patch adds the initial dual flash bank support for devices such as the stm32xl family. Signed-off-by: Spencer Oliver 2010-12-21 Øyvind Harboe * : lpc2148: redo to the new target configuration scheme Define a proc which PCBs can easily override. Also demonstrates how to add multiple TAP exepcted-id's using arguments. Added 0x3f0f0f0f as expected TAP-id. Old LPC2148 silicon I happened to have on my desk? Signed-off-by: Øyvind Harboe 2010-12-22 Øyvind Harboe * : bootstrap: by default the submodules are initialized use "nosubmodule" to skip setting up submodules. Signed-off-by: Øyvind Harboe 2010-12-19 Tormod Volden * : tcl/interface/flashlink.cfg: Fix broken ST URL 2010-12-19 Tormod Volden * : tcl/board: Fix ST URLs in stm32* eval board configuration files ST recently rewamped (screwed up) their web site and broke all links. Also match the chip names with those on the web site product descriptions. 2010-12-16 Michael Trensch * : Add support for Hilscher netX controllers 2010-12-19 Antonio Borneo * : TCL: fix non TCL comments End of line comments fixed with ';' before '#'. Added few additional 'space' to keep indentation in multi-line comments. Signed-off-by: Antonio Borneo 2010-12-14 John Devereux * : Fix for compilation failure amt_jtagaccel.c Hi, I think there are errors in amt_jtagaccel.c I attach a small patch that I needed to make it compile. 2010-12-14 Øyvind Harboe * : stm32: fix unprotect the unprotect fn in stm32 needs to unprotect more sectors than was requested aligned to some boundary. Print warning when this happens. Signed-off-by: Øyvind Harboe 2010-12-10 Spencer Oliver * : contrib: add source to the cfi flash loaders Signed-off-by: Spencer Oliver 2010-12-08 Spencer Oliver * : stm32: add STM32E-EVAL external memory config script Signed-off-by: Spencer Oliver 2010-12-08 Spencer Oliver * : cfi: allow optional buffer write support Some flash's do not support buffer writes, so we now check they are supported before trying to use them. Signed-off-by: Spencer Oliver 2010-12-08 Spencer Oliver * : cfi: prefix string hex output Add hex prefix so we know output is not decimal. Signed-off-by: Spencer Oliver 2010-12-08 Spencer Oliver * : cfi: whitespace and long line cleanup Signed-off-by: Spencer Oliver 2010-12-04 Freddie Chopin * : remove srst_pulls_trst from LPC2xxx target scripts LPC2xxx do not require reset_config srst_pulls_trst. This can cause various "strange" problems when flashing the chip, because "reset halt" actually allows the chip to run for some short period of time and execute some code. Signed-off-by: Freddie Chopin 2010-12-06 Øyvind Harboe * : jtag: getting the JTAG speed can fail If the JTAG speed has not been set, then it has no defined value, add code to propagate the error. No change to actual behavior as no new failure paths have been introduced. This is a no-op patch to make subsequent patches smaller. Signed-off-by: Øyvind Harboe 2010-12-03 Rolf Meeser * : lpc2478 target config: CCLK as (mandatory) parameter 2010-12-03 Rolf Meeser * : Add board config for Embedded Artists LPC2478-32 2010-12-03 Rolf Meeser * : Fix sector layout for 504-KiB LPC2000 devices 2010-12-02 Spencer Oliver * : luminary: remove unused config cmds. Due to commit e40aee2954d2beabe1d8c530d9ff1e564fb01f48 we now honour the targets 'reset_config' setting. Previously we ignored the srst setting for luminary targets. Luminary targets have never supported using srst to reset into debug mode so remove the option from the target configs files. Signed-off-by: Spencer Oliver 2010-12-02 Spencer Oliver * : config: fix luminary jtag config When this config was updated in commit e3773e3e3d1f1ee0dbb0b69e8babe8419784d1c1 the old jtag declaration was not removed. Signed-off-by: Spencer Oliver 2010-12-01 Øyvind Harboe * : profile: use 100Hz as a default sampling frequency it's a lie that is somewhere in the vicinity of the truth. Certainly 64MHz confuses gprof and produces zero output and no error messages. Signed-off-by: Øyvind Harboe 2010-12-01 Rolf Meeser * : lpc2900.c: Add support for new device LPC2926 2010-11-29 Piotr Esden-Tempski * : Some cosmetic fixes to the Lisa/L layout support functions. 2010-11-29 Piotr Esden-Tempski * : Updated Floss-JTAG config file to support v0.3 and newer. Also added noeeprom version of the config file for older versions of Floss-JTAG. 2010-11-26 Spencer Oliver * : build: correct configure help message As we default to building jimtcl the help text should show that. No change in functionality or configure args required. Signed-off-by: Spencer Oliver 2010-11-22 Antonio Borneo * : FLASH/NOR: rename from spearsmi to stmsmi STMicroelectronics controller SMI is not SPEAr specific. Rename it and change name to every symbol in the code. Signed-off-by: Antonio Borneo 2010-11-18 Antonio Borneo * : NOR/SPEARSMI: fix segfault If flash chip is not listed in the table, or if no flash is connected, pointer must be properly initialized. Signed-off-by: Antonio Borneo 2010-11-22 Øyvind Harboe * : flash: iterating over an address range now handles multiple banks e.g. flash erase_address now works across an address range that spans multiple flash chips. Signed-off-by: Øyvind Harboe 2010-11-19 Spencer Oliver * : build: remove AC_CONFIG_AUX_DIR macro This was used during testing and should have been removed. Signed-off-by: Spencer Oliver 2010-11-19 Spencer Oliver * : build: fix subconfigure parameter issue When passing CFLAGS for example through to the jimtcl subconfigure the quotes were not being preserved. Signed-off-by: Spencer Oliver 2010-11-19 Spencer Oliver * : build: prepend --with-jim-ext=nvp to jimtcl configure This allows us to add options to jimtcl configure. The default autoconf AC_CONFIG_SUBDIRS does not currently support this. Signed-off-by: Spencer Oliver 2010-11-12 Spencer Oliver * : build: add common.mk Rather than specifying common makefile variables move them all to a common.mk. Signed-off-by: Spencer Oliver 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file str9xpec.h Signed-off-by: Antonio Borneo 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file str7x.h Signed-off-by: Antonio Borneo 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file stellaris.h Signed-off-by: Antonio Borneo 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file lpc288x.h Signed-off-by: Antonio Borneo 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file avrf.h Signed-off-by: Antonio Borneo 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file at91sam7.h Signed-off-by: Antonio Borneo 2010-11-17 Antonio Borneo * : FLASH/NOR: Remove useless file spearsmi.h Signed-off-by: Antonio Borneo 2010-11-11 Antonio Borneo * : TCL/SPEAr: Added Serial flash in board file Signed-off-by: Antonio Borneo 2010-11-11 Øyvind Harboe * : httpd: retire this server this never panned out and there are enough mistakes in the code that probably nobody used this. Use the tcl server and implement a standalone http app instead works fine. Signed-off-by: Øyvind Harboe 2010-11-13 Øyvind Harboe * : gdb: fix occasional crash when flash probe failed Signed-off-by: Øyvind Harboe 2010-11-09 Øyvind Harboe * : cortex_m3: report detected error condition in poll If the CPU crashed at some point, poll will discover this. Previously the poll fn would clear the error and print a warning, rather than propagating the error. The new behavior is to report the error back up, but still clear the error. Signed-off-by: Øyvind Harboe 2010-11-08 Antonio Borneo * : TCL scripts: replace "puts" with "echo" Signed-off-by: Antonio Borneo 2010-11-08 Antonio Borneo * : JIM: Add "-n" option to "echo" With the new JIMTCL, "puts" only writes to stdout. To write on telnet port too, "echo" must be used. This patch gives to "echo" similar commandline option of "puts". Signed-off-by: Antonio Borneo 2010-11-08 Øyvind Harboe * : stm32: return error when failing to read add missing error handling. Output warning when assuming maximum flash size in the family when failing to read. Signed-off-by: Øyvind Harboe 2010-11-08 Øyvind Harboe * : stm32: sharpen error handling for timeouts delete lots of crud by handling this all in one spot. Signed-off-by: Øyvind Harboe 2010-11-04 Antonio Borneo * : TCL scripts: add support for ST SPEAr310 Initial support for ST SPEAr310 and for the evaluation board EVALSPEAr310 Rev. 2.0. Scripts are split in generic for SPEAr3xx family and specific for SPEAr310. This should easily allow adding new members of the family. Signed-off-by: Antonio Borneo 2010-10-29 Marek Vasut * : CortexA8: Introduce Freescale i.MX51 variant This patch introduces support for Cortex A8 based Freescale i.MX51 CPU. This CPU has the Debug Access Port located at a different address (0x60008000) than TI OMAP3 series of CPUs. i.MX51 configuration file based on OMAP3 configuration file and an email from Alan Carvalho de Assis . Signed-off-by: Marek Vasut 2010-10-31 Marek Vasut * : ADIv5: Implement function to lookup CoreSight component This patch implements "dap_lookup_cs_component()", which allows to lookup CS component by it's identification. Signed-off-by: Marek Vasut 2010-11-04 ddraskovic * : arm964e: Add support for ARM946E target. So far most of the people have been using existing ARM966E in the place of ARM946E, because they have practically the same scan chains. However, ARM946E has caches, which further complicates JATG handling via scan-chain. this was preventing single-stepping for ARM946E when SW breakpoints are used. This patch thus introduces : 1) Correct cache handling on memory write 2) Possibility to flush whole cache and turn it off during debug, or just to flush affected lines (faster and better) 3) Correct SW breakpoint handling and correct single-stepping 4) Corrects the bug on CP15 read and write, so CP15 values are now correctly R/W 2010-10-15 Øyvind Harboe * : jimtcl: 0.63 release as a git module. Signed-off-by: Øyvind Harboe 2010-10-28 Spencer Oliver * : src: add loader src description - add comment where to find the various loaders src files. Signed-off-by: Spencer Oliver 2010-10-28 Øyvind Harboe * : imx31pdk: use rclk w/1MHz fallback measure_clk indicates ca. 3-4MHz, so 1MHz should be safe. Added self_test proc used to test that rclk worked. Signed-off-by: Øyvind Harboe 2010-10-24 Peter Stuge * : Make systesetreq typos read sysresetreq instead Signed-off-by: Peter Stuge 2010-10-22 Michal Demin * : buspirate: change handling of communication speed setting + create serial port open function Signed-off-by: Michal Demin 2010-10-12 Antonio Borneo * : TARGET: review handle_load_image_command() Collect variable definitions. Report syntax error to command dispatcher. Propagate error when unable to open file. Signed-off-by: Antonio Borneo 2010-10-10 David Brownell * : swj-dp.tcl (SWD infrastructure #1) Provide new helper proc that can set up either an SWD or JTAG DAP based on the transport which is in use -- mostly for SWJ-DP. Also update some SWJ-DP based chips/targets to use it. The goal is making SWD-vs-JTAG transparent in most places. SWJ-DP based chips really need this flexible configuration to cope with debug adapters that support different transports, without needing new target configs for each transport or adapter. For JTAG-DP, callers will use "jtag newtap" directly, as today; only one chip-level transport option exists. For SW-DP (e.g. LPC1[13]xx or EFM32, they'll use "swd newdap" directly (part of an upcoming SWD transport patch). Again, only one transport option exists, so hard-wiring is appropriate there. Signed-off-by: David Brownell 2010-10-05 Spencer Oliver * : build: remove warn_unused_result errors Remove any build errors for strtol when building release version of openocd. Signed-off-by: Spencer Oliver 2010-10-04 Spencer Oliver * : gdbserver: fix gdb_port memory leak Signed-off-by: Spencer Oliver 2010-09-05 Øyvind Harboe * : zy1000: add : port number syntax for tftp filing system Allows using non-standard port number. Default to port 69. Signed-off-by: Øyvind Harboe 2010-09-27 Øyvind Harboe * : server: add support for pipes -p/--pipe is now deprecated. Use '-c "gdb_port pipe;log_output openocd.log"' instead. Warning logged. Signed-off-by: Øyvind Harboe 2010-09-27 Øyvind Harboe * : server: read/write now goes through connection fn's depending on whether the connection is over a socket or pipe, the read is done differently. pipes can return -1 when writing 0 bytes, make 0 byte writes a successful no-op. 0 byte writes falls out naturally of tcl server code. Signed-off-by: Øyvind Harboe 2010-09-26 Øyvind Harboe * : server: rely on ctrl-c to stop openocd there was special support to support pressing 'x' to quit openocd. ctrl-c is sufficient. The main server loop is already complicated enough. Signed-off-by: Øyvind Harboe 2010-09-27 Luca Bruno * : Update ep93xx and at91rm9200 drivers ep93xx and at91rm9200 are conditionally built only on arm and were not updated to reflect changes in command registration handler. This patch makes them properly compile again, fixing a build failure experienced on Debian armel. Signed-off-by: Luca Bruno Signed-off-by: Zachary T Welch 2010-09-28 Øyvind Harboe * : fileio: refactor struct fileio to be an opaque structure Signed-off-by: Øyvind Harboe 2010-09-27 Øyvind Harboe * : flash: fix error handling memory leaks and missing check on memory allocation. Signed-off-by: Øyvind Harboe 2010-09-24 Zachary T Welch * : Fix omap3_dbginit to write to physical memory. Setting the OMAP3530 DBGEN bit must be done in physical memory, so update omap3_dbginit callback to use the new 'mww phys' command syntax. 2010-09-26 Øyvind Harboe * : gdb: fix blank line at top snuck in at some point... Signed-off-by: Øyvind Harboe 2010-09-20 Øyvind Harboe * : flash: fix error handling sensible error must be reported at failure site Signed-off-by: Øyvind Harboe 2010-09-21 Antonio Borneo * : TCL scripts: collect duplicated procedures TCL procedures mrw and mmw, originally in DaVinci target code, are duplicated in other TCL scripts. Moved in a common helper file, and added help/usage description. Signed-off-by: Antonio Borneo 2010-09-20 Øyvind Harboe * : helper: fix flaky capture command capture of progress output would get polling results. This will break in the example below where polling output would override the tcl return value. capture {sleep 10000; set abc def} Signed-off-by: Øyvind Harboe 2010-09-18 Øyvind Harboe * : logging: turn of stdout/stderr buffering with this buffering disabled fancier logging scripts will be able to process each line as it is output. Signed-off-by: Øyvind Harboe 2010-09-20 Øyvind Harboe * : jtag: build jtag first because it generates header files Signed-off-by: Øyvind Harboe 2010-09-07 Øyvind Harboe * : zy1000: split out configure option for eCos and JTAG master Signed-off-by: Øyvind Harboe 2010-09-20 Øyvind Harboe * : tcl: remove incomplete unused tcl file Signed-off-by: Øyvind Harboe 2010-09-19 Mike Dunn * : xscale: check that wp length does not exceed address Hi everyone, A while back I sent in a patch that adds support for watchpoint lengths greater than four on xscale. It's been working well, until the other day, when it caused an unexpected debug exception. Looking into this I realized there is a case where it breaks: when the length arg is greater than the base address. This is a consequence of the way the hardware works. Don't see a work-around, so I added code to xscale_add_watchpoint() to check for and disallow this combination. Some more detail... xscale watchpoint hardware does not support a length directly. Instead, a mask value can be specified (not to be confused with the optional mask arg to the wp command, which xscale does not support). Any bits set in the mask are ignored when the watchpoint hardware compares the access address to the watchpoint address. So as long as the length is a power of two, setting the mask to length-1 effectively specifies the length. Or so I thought, until I realized that if the length exceeds the base address, *all* bits of the base address are ignored by the comaparator, and the watchpoint range effectively becomes 0 .. length. Questions, comments, criticisms gratefully received. Thanks, Mike Signed-off-by: Mike Dunn 2010-09-18 Karl Kurbjun * : AM/DM37x: Unify configuration scripts and add support for TI Beagleboard xM. 2010-09-13 Øyvind Harboe * : breakpoints: fix error handling do not try to interpret "retval" into a string, just amend a bit about the context of the already reported error. Signed-off-by: Øyvind Harboe 2010-09-13 Mike Dunn * : xscale: fix sw breakpoints for thumb; set bp immediately Hi everyone, Version 2 of this patch. Code added to breakpoints.c was removed from previous patch, and item 3 added, per discussion with Øyvind regarding error reporting. Item 4 added, which I just noticed. I tried to use a software breakpoint in thumb code on the xscale for the first time recently, and was surprised to find that it didn't work. The result was this patch, which does four things: 1): fix trivial cut-n-paste error that caused thumb breakpoints to not work 2): call xscale_set_breakpoint() from xscale_add_breakpoint() 3): log error on data abort in xscale_write_memory() 4): fixed incorrect error code returned by xscale_set_breakpoint() when no breakpoint register is available; added comment Item 2 not only makes the xscale breakpoint code consistent with other targets, but also alerts the user immediately if an error occurs when writing the breakpoint instruction to target memory (previously, xscale_set_breakpoint() was not called until execution resumed). Also, calling xscale_breakpoint_set() as part of the call chain starting with handle_bp_command() and propagating the return status back up the chain avoids the situation where OpenOCD "thinks" the breakpoint is set when in reality an error ocurred. Item 3 provides a helpful message for a common reason for failure to set sw breakpoint. This was thoroughly tested, mindful of the fact that breakpoint management is somewhat dicey during single-stepping. Comments and criticisms of course gratefully received. Mike Signed-off-by: Mike Dunn Signed-off-by: Øyvind Harboe 2010-09-12 Øyvind Harboe * : helper: add stacktrace command that returns error stacktrace Ability to access the stacktrace from a script is quite handy. Signed-off-by: Øyvind Harboe 2010-09-10 Øyvind Harboe * : version command: make it scriptable you can now set a variable in a script like set version [version]. Also version takes an optional argument "git" to show git version of source. If git is not installed during the build, then this will yield an error that is ignored during the build and "version git" returns an empty string. Signed-off-by: Øyvind Harboe 2010-09-10 Øyvind Harboe * : cfi: random crash in cfi_probe() fixed for non_cfi cfi chips free() was invoked on rodata. The mystery is why this bug has survived for so long. Signed-off-by: Øyvind Harboe 2010-09-08 Mike Dunn * : xscale: mark xscale registers invalid on debug entry Hi everyone, This simple patch fixes a problem I noticed on the xscale where incorrect values are sometimes reported by the reg command. The problem can occur when requesting the value of registers in the xscale-specific register cache. With a couple of exceptions, none of the registers in the xscale register cache are automatically retrieved on debug entry. This is probably fine, as they are unlikely to be needed on a regular basis during a typical debug session, and they can be retrieved when explicitly requested by name using the reg command. The problem is that once this is done, the register remains marked as valid for the remainder of the OpenOCD session, and the reg command will henceforth always report the same value because it is obtained from the cache and is never again retrieved from the debug handler on the target. The fix is to mark all registers in the xscale register cache as invalid on debug entry (before the two exceptions are retrieved), thus forcing retrieval (when requested) from the target across resumptions in execution, and avoiding the reporting of stale values. Small addition change by Øyvind: change 'i' to unsigned to fix compiler warning for xscale_debug_entry() fn. Signed-off-by: Mike Dunn Signed-off-by: Øyvind Harboe 2010-09-07 Øyvind Harboe * : warning: fix silly -O3 warning Some versions of GCC don't pick up that local variables are set in all code paths. Signed-off-by: Øyvind Harboe 2010-08-31 Wookey * : Numonyx M29W160ET patch Someone called David Carne popped up on IRC and offered a fix (as he's not on this list so can;t post here). I am just passing it on. (thanx David) 10:54 < davidc__> Basically; the Numonyx M29W160ET has an incorrect CFI PRI block; it describes the erase blocks backwards 10:54 < davidc__> the linked patch has a fixup for that part [really trivial]: 2010-08-24 Spencer Oliver * : flash: increase stellaris flash loader buffer This speeds up programming for targets with more working area, Signed-off-by: Spencer Oliver 2010-08-27 David Brownell * : bitq: unshadow pause() bitq.c: In function ‘bitq_scan_field’: bitq.c:224: error: declaration of ‘pause’ shadows a global declaration /usr/include/unistd.h:429: error: shadowed declaration is here Signed-off-by: David Brownell 2010-08-17 Øyvind Harboe * : mcb1700: Keil MCB1700 w/1768 config script Ca. 93kBytes/s flashing speed @ 10MHz JTAG clock Signed-off-by: Øyvind Harboe 2010-08-16 David Brownell * : two NEWS updates Mention AVR32 AP7000 support. Clarify ARM semihosting update was for V7M (not ARM9 etc). Signed-off-by: David Brownell 2010-08-15 Oleksandr Tymoshenko * : avr32: basic target script 2010-08-15 Oleksandr Tymoshenko * : avr32: work-in-progress committed so as to ease cooperation and to let it be improved over time. So far it supports: - halt/resume - registers inspection - memory inspection/modification I'm still getting up to speed with OpenOCD internals and AVR32 so code is a little bit messy and I'd appreciate any feedback. 2010-08-13 Catalin Patulea * : Fix typo in documentation of usb_blaster_vid_pid command 2010-08-03 Piotr Esden-Tempski * : Added support for the Lisa/L jtag LEDs. 2010-08-03 Piotr Esden-Tempski * : Added support for Lisa/L builtin JTAG interface. 2010-08-10 Thomas Koeller * : jtag: fix handling of 'tap enable' error if a tap could not be _enabled_, the error message was 'failed to disable tap'. Fixed that. Also, display the failing tap's name. Signed-off-by: Thomas Koeller 2010-08-10 Thomas Koeller * : DM36x: Disable unused SYSCLKs Clear the enable bits for all clocks that are not set explicitly. This is done to increase robustness by removing pre-existing state. Signed-off-by: Thomas Koeller 2010-08-12 Fredrik Hederstierna * : str9x: faster flash erase of entire chip The patch improves flash erase for STR9x in case of a full bank erase. Then the chip erase command is used instead which improves speed significantly. Also I think it might help if e.g. STR912 enters some state where flash banks are locked, and a chip erase command is the key for unlocking the flash. 2010-08-11 Øyvind Harboe * : board: added at91cap7a stk w/sdram config scripts The strange thing here with this board is that 16MHz kinda works, but only 2MHz is really stable. Signed-off-by: Øyvind Harboe 2010-08-11 Øyvind Harboe * : arm: add missing error reporting when an unknown core mode is read from the target, report error. Can be communication failure. Signed-off-by: Øyvind Harboe 2010-08-09 Ben Gardiner * : cfg: add omapl138 support and da850evm preliminary support This patch adds support for the omapl138 target and preliminary support for the da850evm. The target cfg file is based on the icepick routing done by the target/ti_dm6446.cfg file. I have performed limited testing with this setup. I am posting this patch in the interest of sharing cfg files and in the hopes that the experts on this list can correct errors I have made or point out enhancements. The testing I have performed is debugging uboot with gdb where I also use the following local.cfg and gdbinit files. Debugging appears to work in so much as 'ni' works. local.cfg: gdb_memory_map disable gdbinit: target remote localhost:3333 set remote hardware-breakpoint-limit 2 set remote hardware-watchpoint-limit 2 monitor poll on Comments welcome. Best Regards, Ben Gardiner 2010-08-08 Øyvind Harboe * : target: if polling fails, back off back-off algorithm for polling. Double polling interval up to 5000ms when it fails. when polling succeeds, reset backoff. This avoids flooding logs(as much) when working with conditions where the target polling will fail. Signed-off-by: Øyvind Harboe 2010-08-02 Mike Dunn * : xscale documentation: vector table handling Hi everyone. I noticed some incorrect information in the user manual regarding how the vector table is handled on the xscale, so for your consideration, here's a short patch that corrects it, and adds a little more detail I thought might be helpful. The documentation states that OpenOCD does not attempt to synchronize the vector tables in memory with those stored in the "mini instruction cache". In fact, on each resume it does copy from memory to the cache all entries in the high and low tables that were not previously defined using the 'xscale vector_table' command. (In src/target/xscale.c, see xscale_update_vectors(), which is invoked by xscale_resume().) I take advantage of this during Linux boot-up. The extra detail describes in general terms how I do this. Corrections, comments are of course gratefully received. Thanks, Mike Signed-off-by: Mike Dunn 2010-08-02 Øyvind Harboe * : zy1000: use correct base clock when calculating speed divisor revc uses 60MHz and revb 64MHz, use this in calculations. Signed-off-by: Øyvind Harboe 2010-08-02 Øyvind Harboe * : lpc1768: even if rclk "works", it isn't necessarily the correct clk rclk = 4MHz oon lpc1768, the correct JTAG clk is 666MHz(4MHz/6). Signed-off-by: Øyvind Harboe 2010-08-02 Øyvind Harboe * : jtag: measure_clk debug proc It can be useful to get an approximate measurement of rtck frequency for debugging purposes. Signed-off-by: Øyvind Harboe 2010-08-01 Øyvind Harboe * : util: ms command to calculate length of operations This can be used to calculate approximate RTCK frequency for instance. Signed-off-by: Øyvind Harboe 2010-08-01 Peter Stuge * : Remove srst_pulls_trst from LPC2148 target srst_pulls_trst is only true on some (broken) LPC2148 boards, a fact which is already documented in doc/openocd.texi, so it shouldn't be set unconditionally in the target tcl. This patch was needed to reflash when an Abort exception occured very early after reset, before OpenOCD tried to halt the CPU. 2010-07-30 Øyvind Harboe * : lpc7168: make flash available upon reset init set user mode to avoid ROM being mapped at address 0 rather than flash. Signed-off-by: Øyvind Harboe 2010-07-10 Michal Demin * : Buspirate: fix shadow 2010-07-19 Spencer Oliver * : flash: remove algorithm exit_point address for supported targets For the above targets the exit_point is optional when used with run_algorithm, so remove it. This makes updating the algorithm less error prone. Signed-off-by: Spencer Oliver 2010-07-19 Spencer Oliver * : armv7m: exit_point optional for armv7m_run_algorithm As the armv7m uses instruction breakpoints for algorithms we do not really need to check the pc on exit. This now matches the behaviour of the arm4_5 codebase. Signed-off-by: Spencer Oliver 2010-07-20 Øyvind Harboe * : arm11 error propagation fixes Signed-off-by: Øyvind Harboe 2010-07-19 Øyvind Harboe * : arm_dpm: error propagation fixes found by inspection Signed-off-by: Øyvind Harboe 2010-07-19 Øyvind Harboe * : arm: error propagation of arm_jtag_set_instr Signed-off-by: Øyvind Harboe 2010-07-19 Øyvind Harboe * : arm_adi_v5: mem_ap_write error propagation Signed-off-by: Øyvind Harboe 2010-07-19 Øyvind Harboe * : mem_ap_read_u32 error propagation Signed-off-by: Øyvind Harboe 2010-07-19 Øyvind Harboe * : debug: debug entry error propagation Signed-off-by: Øyvind Harboe 2010-07-19 Øyvind Harboe * : arm: add error propagation for enable/disable mmu caches Signed-off-by: Øyvind Harboe 2010-07-19 David Brownell * : more careful luminary init Set up more of the Luminary-specific signals, and stop cloning a few of the JTAG defaults. More comments too. Still leaves the "dap info 0" bugs unresolved (presumably coupled to this particular adapter family) where TPIU, ITM, DWT, and other debug modules wrongly display as extra NVICs. Signed-off-by: David Brownell 2010-07-19 Spencer Oliver * : flash: add nuc910 nand driver This adds a nand driver support for the nuc910 target. Note that ECC is not currently supported by this driver, although it is supported by the peripheral. Signed-off-by: Spencer Oliver 2010-07-16 Spencer Oliver * : cfg: update rsc-w910 script - Only enable the FMI (NAND) and DMA clocks. - Select NAND interface on the MFSEL. Signed-off-by: Spencer Oliver 2010-07-18 Øyvind Harboe * : cortex a8: lots of error propagation fixes found by code inspection Signed-off-by: Øyvind Harboe 2010-07-18 Øyvind Harboe * : cortex a8: add missing error handling for cortex_a8_dap_write/read_coreregister_u32() Signed-off-by: Øyvind Harboe 2010-07-18 Øyvind Harboe * : cortex a8: add missing error handling for mem_ap_atomic_write_u32() Signed-off-by: Øyvind Harboe 2010-07-18 David Brownell * : comments for Luminary ICDI layout Provide $defines for more of the signals involved in the Luminary ICDI hardware, and comment some of what's going on. Signed-off-by: David Brownell 2010-07-17 Øyvind Harboe * : debug-feature: jtagtcpip, improve jtag performance postpone callbacks until jtag execute queue time. Signed-off-by: Øyvind Harboe 2010-07-16 David Brownell * : ARM ADI-V5: cleanup CID/PID addressing Use addition for offsetting, not masking. Shorten some lines. Make "component_start" print-only (unused otherwise; don't save). Still doesn't resolve the issue where multiple components are wrongly displaying as NVICs on some Cortex-M3 parts because many PIDs appear to be zeroes ... maybe adapter related?? Signed-off-by: David Brownell 2010-07-16 Øyvind Harboe * : fix warnings Signed-off-by: Øyvind Harboe 2010-07-16 Øyvind Harboe * : debug feature: jtagtcpip, improve performance waiting for ZY1000 fifo to idle is now queued as an asynchronous command. This radically improves performance when waitIdle() is interspersed with writes as no readback is required over TCP/IP. Signed-off-by: Øyvind Harboe 2010-07-13 David Brownell * : ARM ADI-V5: PIDs and CIDs are 8 bits Mask the upper bits after 32-bit reads. Alsoo revert the ugly changes to use PRIx32; just cast to unsized integers when printing (two chars not eight). Signed-off-by: David Brownell 2010-07-12 Spencer Oliver * : jtag: fix shadow issues in adapter_init Use global jtag_only rather than local static. Signed-off-by: Spencer Oliver 2010-07-12 Spencer Oliver * : docs: fix transport typo Signed-off-by: Spencer Oliver 2010-07-09 David Brownell * : transport selection tweaks * Bugfix and simplify legacy jtag-only defaulting * Make "dummy" declare its jtag-only nature * likewise update ft2232 * warn if selection is _required_ (multi-transport adapters), fixes the "only ft2232 works" bug for at least dummy, with other drivers going the "legacy" path (submit patches). Signed-off-by: David Brownell 2010-07-07 Øyvind Harboe * : transport: fix segfault in transport select String compare against addresses in range 0 or so due to not checking if there was an active session first. Signed-off-by: Øyvind Harboe 2010-07-05 sb-sf * : gdbserver: incorrect memory map for multiple targets (bug #24) The gdb server incorrectly reports the memory map if we have multiple targets with multiple flash banks. Signed-off-by: Spencer Oliver 2010-07-02 David Brownell * : Fix minor openocd.texi bug ::X Signed-off-by: David Brownell 2010-07-02 Spencer Oliver * : ft2232: revert ft2232_read_scan changes Revert change made in commit dd88b461da1cb8642200dd5c96fb1ff384ca9f7b. Caused segfaults when using ftdi driver under win32. Signed-off-by: Spencer Oliver 2010-06-17 Marc Pignat * : ft2232: simplify ft2232_read_scan 2010-06-25 Olaf Lüke * : at91sam3s* support Signed-off-by: Øyvind Harboe 2010-06-23 Øyvind Harboe * : arm11: fix gaffe in no-ack transfers The code did not transfer the last word in no-ack transfers. The strange thing is that this did not lead to any observable errors. This gaffe was introduced in commit 1f5883ea56cb058221f Signed-off-by: Øyvind Harboe 2010-06-22 Øyvind Harboe * : am3517 evm: use physical write to memory while target is running Signed-off-by: Øyvind Harboe 2010-06-22 Øyvind Harboe * : target: $_TARGET mdw now has a phys option just like the mdw command Signed-off-by: Øyvind Harboe 2010-06-21 Edgar Grimberg * : xsvf: Fix shadow issues on Mac wait is declared in /usr/include/sys/wait.h Signed-off-by: Edgar Grimberg 2010-06-21 Edgar Grimberg * : flash: fix shadow issues on Mac Wait is declared in /usr/include/sys/wait.h Signed-off-by: Edgar Grimberg 2010-06-21 Øyvind Harboe * : gitignore: start list of emacs temp files to ignore Signed-off-by: Øyvind Harboe 2010-06-21 Øyvind Harboe * : cortex a8: add error propagation for poll/resume Signed-off-by: Øyvind Harboe 2010-06-21 Øyvind Harboe * : cortex a8: add error propagation for mem_ap_read/write_atomic_u32 Error propagation avoids e.g. infinite loops waiting for target to halt, etc. Signed-off-by: Øyvind Harboe 2010-06-20 Antonio Borneo * : nand/mx2: review scope of symbols Add "static" qualifier to private variable. Signed-off-by: Antonio Borneo 2010-06-20 Antonio Borneo * : openocd.c: review scope of symbols Add "static" qualifier to private data. Signed-off-by: Antonio Borneo 2010-06-20 Antonio Borneo * : target/avrt: review unused symbols Remove unused functions: - mcu_write_dr_u16 - mcu_write_dr_u8 - mcu_write_ir_u16 - mcu_write_ir_u32 Signed-off-by: Antonio Borneo 2010-06-20 Antonio Borneo * : target/feroceon: review scope of symbols Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-06-19 Antonio Borneo * : helper/jim-eventloop.h: review unused definitions Remove unused typedef and define Signed-off-by: Antonio Borneo 2010-06-19 Antonio Borneo * : helper/jim-eventloop: review scope of symbols Add "static" qualifier to private functions. Remove private prototypes from include file. Remove empty definition of JIM_STATIC. Signed-off-by: Antonio Borneo 2010-06-21 Øyvind Harboe * : jtag: do not use jtag_get_error() normal code should not call jtag_get_error(), but rather check the return code from jtag_execute_queue(). Signed-off-by: Øyvind Harboe 2010-06-21 Øyvind Harboe * : cortex a8: add missing error handling cortex examine was missing error handling. Signed-off-by: Øyvind Harboe 2010-06-18 Øyvind Harboe * : cortex a8: fix segfault for unexamined targets print error message instead of segfaulting for unexamined targets. Signed-off-by: Øyvind Harboe 2010-06-18 Antonio Borneo * : target/dsp563xx: review scope of symbols Add "static" qualifier to private functions. Remove private prototypes from include file. Signed-off-by: Antonio Borneo 2010-06-18 Andreas Fritiofson * : don't add confusing source info to Jim When an interactive command fails, the Jim stack trace prints references to the line in "command.c" where the interpreter was invoked. Since that location has no relation to the actual command that failed, the information serves only to add confusion. By not adding the useless source info to Jim the noise can be reduced, while still printing a useful trace for nested commands. Signed-off-by: Andreas Fritiofson Signed-off-by: Øyvind Harboe 2010-06-18 Antonio Borneo * : helper/jim: review scope of symbols Add "static" qualifier to private functions. Function Jim_InterpolateTokens() is private, but has not been changed to "static". This function is called only once, so compiler inlines it. After inline, there is a warning for variable uninitialized. Signed-off-by: Antonio Borneo Signed-off-by: Øyvind Harboe 2010-06-17 Freddie Chopin * : mingw32: -Wshadow fixes in rlink.c (error: declaration of ‘byte’ shadows a global declaration; /usr/local/lib/gcc/i686-w64-mingw32/4.4.2/../../../../i686-w64-mingw32/include/rpcndr.h:50: error: shadowed declaration is here)Signed-off-by: Freddie Chopin 2010-06-17 Freddie Chopin * : mingw32: -Wshadow fixes in jim.c (error: declaration of ‘boolean’ shadows a global declaration; /usr/local/lib/gcc/i686-w64-mingw32/4.4.2/../../../../i686-w64-mingw32/include/rpcndr.h:52: error: shadowed declaration is here)Signed-off-by: Freddie Chopin 2010-06-17 Antonio Borneo * : vsllink: fix -Wshadow warning Signed-off-by: Antonio Borneo 2010-06-17 Øyvind Harboe * : zy1000: fix arm11 optimisation copy & paste error + added FIFO throttling to work around lockup bug in FPGA. The arm11 optimisation was introduced post v0.4.0, so this is not a regression compared to previous release. Signed-off-by: Øyvind Harboe 2010-06-14 Antonio Borneo * : nor/at91sam3: replace helper membuf Helper ./src/helper/membuf.c is only used in at91sam3.c 1) Replace membuf with LOG_* 2) The original code in sam3_GetDetails() invalidates all the buffered output of sam3_GetInfo(). The new code skips sam3_GetInfo() if its output should not be printed. Signed-off-by: Antonio Borneo 2010-06-16 Øyvind Harboe * : gdb: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-16 Øyvind Harboe * : xsvf: -Wshadow warning fixes I think this fixed an error message where the error message would show the *previous* uc code rather than the current unsupported uc code. Signed-off-by: Øyvind Harboe 2010-06-16 Øyvind Harboe * : mflash: -Wshadow warning fix Signed-off-by: Øyvind Harboe 2010-06-16 Øyvind Harboe * : nand: when verify failed, it didn't return an error when the verify failed, it didn't return an error, which breaks e.g. tcl scripts that rely on this for exceptions to work. Found by -Wshadow Signed-off-by: Øyvind Harboe 2010-06-16 Øyvind Harboe * : str9xpec: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-16 Øyvind Harboe * : oops... backup file snuck in, remove it. Signed-off-by: Øyvind Harboe 2010-06-16 Øyvind Harboe * : stm32x: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : lpc2900: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : ecos flash: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : flash: -Wshadow warning fix Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : mips32_pracc: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : mips32: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : arm11_dbgtap: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : arm920t: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : adi_v5_jtag: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : arm_simulator: -Wshadow warning fixes Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : target: -Wshdaow warning fix Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : zy1000: -Wshadow warning fix Signed-off-by: Øyvind Harboe 2010-06-15 Øyvind Harboe * : jim: -Wshadow warning fix Signed-off-by: Øyvind Harboe 2010-06-14 Øyvind Harboe * : jim: -Wshadow fixes this batch of fixes should be pretty straightforward rename of 'index' and an 'i' local variable shadowing. 'index' conflicts with a global name. Signed-off-by: Øyvind Harboe 2010-06-14 michal smulski * : arm1136 scripts Here is a patch to fix a startup in C100 (arm1136). Basically make sure that UART is configured before using it. Michal Signed-off-by: Øyvind Harboe 2010-06-14 Øyvind Harboe * : cfi: add LOG_ERROR() in case of unsupported intel erase algorithm found by code inspection. There are many other places in CFI where LOG_ERROR() should be called similarly... Signed-off-by: Øyvind Harboe 2010-06-14 Øyvind Harboe * : helper: fix -Wshadow warning in number parsing use obtuse local variable names in macros to avoid interfering with global name space Signed-off-by: Øyvind Harboe 2010-06-14 Øyvind Harboe * : target: fix retval gaffe in mwX commands failure to write to memory was not propagated. This is an interesting case of broken error handling: with exceptions we wouldn't have had this at all, and I also wonder if there is a GCC option to warn about these kinds of potential bugs. Signed-off-by: Øyvind Harboe 2010-06-12 Antonio Borneo * : TARGET: removed unsed parameter Parameter "type" of function armv4_5_mmu_translate_va() is now not used. Remove the parameter and the "enum" listing its values. Signed-off-by: Antonio Borneo 2010-06-12 Antonio Borneo * : TARGET/ARM920T: fix return value Function arm920t_write_memory() default return value should be ERROR_OK. All cases of local errors are handled immediately and not further propagated. Signed-off-by: Antonio Borneo 2010-06-11 Øyvind Harboe * : flash: add error handling to get_flash_by_addr/name autoprobing can fail and this error has to be reported up the call stack. Signed-off-by: Øyvind Harboe 2010-06-10 Øyvind Harboe * : cfi: fix error propagation any read/write operation to memory can fail. block write algorithm error propagation was broken in that it would continue after an error was reported writing data to ram or the algorithm failing. Signed-off-by: Øyvind Harboe 2010-06-09 Øyvind Harboe * : flash: add error message if image is too big for flash replaced assert() w/error message if the image is too big. Signed-off-by: Øyvind Harboe 2010-06-07 Øyvind Harboe * : zy1000: fix optimisation gaffe DCC optimisation was broken on targets w/multiple TAP's. Signed-off-by: Øyvind Harboe 2010-05-05 Øyvind Harboe * : cfi: fix GDB keep alive bug Long running CFI writes could cause GDB timeout. Signed-off-by: Øyvind Harboe 2010-06-07 Øyvind Harboe * : gdb-server: fix error reporting bugs GDB and OpenOCD has two different error number spaces and no mapping exists between them. If a specific error number is to be reported to GDB then this has to be done at the calling site, rather than as a generic routine that tries to map "retval" to GDB error number speak. Signed-off-by: Øyvind Harboe 2010-06-01 gcembed * : stm32 : change returned value of mass_erase function Hello, "stm32x mass_erase" return ERROR_OK even if something goes wrong. Here is a summary of changes : * in stm32x_mass_erase : return ERROR_FLASH_OPERATION_FAILED when error detected in FLASH_SR register; * in COMMAND_HANDLER(stm32x_handle_mass_erase_command) : return the returned value of stm32x_mass_erase(). I don't know if there is reason to always return ERROR_OK ? Gaëtan 2010-05-31 Jon Povey * : etm: print something when trace buffer empty ETM analyze produced no output when the trace buffer was empty. This patch provides users with a clue. Signed-off-by: Jon Povey Signed-off-by: Øyvind Harboe 2010-05-24 Spencer Oliver * : flash: virtual driver update for get_flash_bank_by_name_noprobe Make sure we do not probe a flash when getting info. Signed-off-by: Spencer Oliver 2010-05-24 Spencer Oliver * : cfg: add pic32 virtual banks make use of the new virtual bank flash driver. Signed-off-by: Spencer Oliver 2010-05-26 Antonio Borneo * : NOR/CFI: fix memory leak; check malloc return value Every time command "flash probe #" is executed, memory structures are re-allocated without preventive free() of former areas, causing memory leak. Also, memory allocation does not check return value, determining segmentation fault in case of out of memory. Signed-off-by: Antonio Borneo Signed-off-by: Spencer Oliver 2010-05-21 Freddie Chopin * : All LPC2xxx chips are little endian and that cannot be changed - update config scripts Signed-off-by: Spencer Oliver 2010-05-21 Freddie Chopin * : Update "flash bank" helper comments for LPC2xxx chips Signed-off-by: Spencer Oliver 2010-05-21 Øyvind Harboe * : at91sam9260: use RCLK It might be possible to get this target going without RCLK, but it would require more careful analysis and usage of the reset events. Enable fast memory accesses. Tested on an at91sam9260 custom board w/external DRAM and flash. Signed-off-by: Øyvind Harboe 2010-05-21 Spencer Oliver * : arm_adi_v5: correct ahbap_debugport_init mem-ap id (bug #23) We request a id register read at the end of ahbap_debugport_init but we never actually run the queue. In some cases this causes a segfault. Signed-off-by: Spencer Oliver 2010-05-20 gcembed * : nand : Add Freescale iMX27 nand flash controller support This patch add support of iMX27 nand flash controller. This is based on driver for imx31 nand flash controller. OOB functionality is not fully working. As in mx31 controller, mx2 NFC has a bug that swap two bytes between SPARE and MAIN buffer. I used this driver for several months and no problems appear. 2010-05-18 Gary Carlson * : target: slow targets could cause GDB to time out This second half of the patch is proposed to clean up some GDB keep alive issues on arm7_9 targets that start up with very slow clocks. If an attempt is made to write to key registers on the processor with a slow jtag speed, GDB timeout warnings appear on the console (at least mine) when "reset halt" or "reset init" commands are issued from the gdb client: *** BEFORE PATCH *** (gdb) monitor reset init fast memory access is disabled 2 kHz keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1026). Workaround: increase "set remotetimeout" in GDB JTAG tap: at91sam9g20.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0) target state: halted target halted in ARM state due to breakpoint, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1027). Workaround: increase "set remotetimeout" in GDB keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1006). Workaround: increase "set remotetimeout" in GDB keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1006). Workaround: increase "set remotetimeout" in GDB keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1006). Workaround: increase "set remotetimeout" in GDB keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1004). Workaround: increase "set remotetimeout" in GDB RCLK - adaptive dcc downloads are enabled fast memory access is enabled NAND flash device 'NAND 256MiB 3,3V 8-bit' found (gdb) I added additional keep alive steps in areas that troubleshooting revealed were causing problems. I only did this however for non-fast write memory accesses. I don't think most people would be using fast memory accesses to write to memory when the jtag and system clocks are slow anyway. If you disagree with my feeling, think there is a more elegant way to handle the problem, or think the patch will cause other unforeseen problems with other targets, let me know. As you can see below, the patch does eliminate the problem on my development station and I suspect that it will benefit others. *** AFTER PATCH *** (gdb) monitor reset init fast memory access is disabled 2 kHz JTAG tap: at91sam9g20.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0) target state: halted target halted in ARM state due to breakpoint, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 MMU: disabled, D-Cache: disabled, I-Cache: disabled RCLK - adaptive dcc downloads are enabled fast memory access is enabled NAND flash device 'NAND 256MiB 3,3V 8-bit' found (gdb) Gary Carlson Gary Carlson, MSEE Principal Engineer Carlson-Minot Inc. 2010-05-18 Øyvind Harboe * : zy1000: fix false positive warning about unitialized local variable Signed-off-by: Øyvind Harboe 2010-05-17 Jon Povey * : NAND/davinci: Fix segfault for hwecc4_infix reads Page reads using hwecc4_infix layout segfaulted for check_bad_blocks because the read assumed a valid data buffer, which check_bad_blocks does not use (it only passes a 6 byte buffer for the start of OOB). This version copes with undersized or missing data or oob buffers and uses random read commands within the page to skip unwanted areas of data/OOB for speed. NOTE: Running check_bad_blocks with this layout will be reading infix OOB locations, not manufacturer bad block markers. This means that if you check blocks written in infix layout they will appear good, but manufacturer- marked bad blocks may also appear good. If you want to scan for manufactuer-marked bad blocks, you need to enable raw_access before running check_bad_blocks, or use the non-infix layout. Signed-off-by: Jon Povey CC: David Brownell 2010-05-17 Spencer Oliver * : gdbserver: gdb cmds returning failure on success The gdb_memory_map cmd for example fell through and returned ERROR_COMMAND_SYNTAX_ERROR on success - behaviour is now as expected. Signed-off-by: Spencer Oliver 2010-05-11 Antonio Borneo * : NOR/CFI: minor code cleanup Remove few LOG_DEBUG() messages, together with code and variables required to build such messages. Signed-off-by: Antonio Borneo 2010-05-11 Antonio Borneo * : NOR: add read() callback to struct flash_driver Final target is to force bus_width size during CFI flash read. In this first step I need to replace default flash read with flash specific implementation. This patch introduces: - flash_driver_read() layer; - default_flash_read(), backward compatible; - read() callback in struct flash_driver; - proper initialization in every flash_driver instance. Signed-off-by: Antonio Borneo 2010-05-07 Antonio Borneo * : NOR: fix comment for Doxygen Either bus_width and chip_width are in bytes. Signed-off-by: Antonio Borneo 2010-05-07 Antonio Borneo * : NOR/CFI: use bus_width for memory access in cfi_write() During cfi_write(), head and tail of destination area could be not aligned to bus_width. Since write operation must be at bus_width size, source buffer size is extended and buffer padded with current values read from flash. Force using bus_width to read current value from flash. Do not use cfi_add_byte() anymore, to allow removing this function later on. Signed-off-by: Antonio Borneo 2010-04-20 Antonio Borneo * : NOR/CFI: identify memory accesses not using "bus_width". Since NOR flash devices does not handle "byte enable lanes", each read/write access involves the whole "chip_width". When multiple devices are in parallel, usually all chips are enabled during each access. All such cases are compatible with flash accesses at "bus_width" size. Access at "bus_width" size is mandatory for write access to avoid transferring of garbage values to flash. During read access the flash controller should take care, and discard unneeded bytes. Anyway, it is good practice to use "bus_width" size also for read. Every memory access that does not respect "bus_width" size is marked with a "FIXME" comment. Signed-off-by: Antonio Borneo 2010-04-16 Antonio Borneo * : NOR/CFI: check "flash bank" command arguments Arguments chip_width and bus_width of command "flash bank" are not fully checked. While bus_width is later on redundantly checked in several other parts (e.g. in cfi_command_val()) and generates run-time error, chip_width is never checked, nor related to actual bus_width value. Added check to avoid: - (chip_width == 0), that would mean no memory chip at all, avoiding also division by zero e.g. in cfi_get_u8(); - (bus_width == 0), that would mean no bus at all; - unsupported cases of chip_width or bus_width value not power of 2; - unsupported case of chip width wider than bus. Signed-off-by: Antonio Borneo 2010-05-14 Jun Ma * : missing pointer's declaration when enable macro -D_DEBUG_GDB_IO_. reproducable when "./configure --enable-maintainer-mode CFLAGS=-D_DEBUG_GDB_IO_" Signed-off-by: Jun Ma Signed-off-by: Øyvind Harboe 2010-05-13 Jon Povey * : NAND: fix off-by-one error in erase command argument range The last_block argument to nand_erase() is checked against nand->num_blocks, but the highest valid block number is (total - 1), the test for invalid should be ">=" rather than ">". Signed-off-by: Jon Povey Signed-off-by: Øyvind Harboe 2010-05-12 Spencer Oliver * : flash: require unique flash bank name Make sure the flash bank name is unique Signed-off-by: Spencer Oliver 2010-05-12 Øyvind Harboe * : zy1000.cfg: gdb connect will fail first time without gdb-attach gdb-attach does a reset init to make sure that the CFI probe will succeed upon first gdb connect. Signed-off-by: Øyvind Harboe 2010-05-10 Karl Kurbjun * : Fujitsu MBM29SL800TE flash support Hi, This is my first post to the list. First, I would like to thank everyone for their work on OpenOCD, it is a great tool to work with. I have been using it to debug code on hardware for the Rockbox project (www.rockbox.org). The target that I primarily work with has a Spansion/Fujitsu NOR flash (MBM29SL800TE). I attached a patch that adds support for this flash. I hope it can be included in the main repository. If there is something that needs to be changed with the patch before inclusion please let me know. -Karl Kurbjun 2010-05-11 Marc Pignat * : Documentation : arm920t implements armv4 There is a small typo in the cpu list, arm920t is armv4. 2010-05-10 Spencer Oliver * : armv7m: 20 second timeout/megabyte for CRC check There was a fixed 20 second timeout which is too little for large, slow timeout checks. Signed-off-by: Spencer Oliver 2010-05-07 Spencer Oliver * : cfg: add stm32eval board configs Increase working area for stm3210e_eval.cfg. Add new configs for the following boards: STM321000B-EVAL, STM32100C-EVAL, STM32100B-EVAL Signed-off-by: Spencer Oliver 2010-05-05 Øyvind Harboe * : flash: stop caching protection state There are a million reasons why cached protection state might be stale: power cycling of target, reset, code executing on the target, etc. The "flash protect_check" command is now gone. This is *always* executed when running a "flash info". As a bonus for more a more robust approach, lots of code could be deleted. Signed-off-by: Øyvind Harboe 2010-05-05 Øyvind Harboe * : cfi: fix error handling for protect fn No error was propagated. Signed-off-by: Øyvind Harboe 2010-05-04 Øyvind Harboe * : gdb: connect will now fail if flash autoprobe fails This stops GDB from launching with an empty memory map, making gdb load w/flashing fail for no obvious reason. The error message points in the direction of the gdb-attach event that can be set up to issue a halt or "reset init" which will put GDB in a well defined stated upon attach and thus have a robust flash autoprobe. Signed-off-by: Øyvind Harboe 2010-05-03 Matthias Bode * : Fixed bug in tcl-server No segmentationfault when sending commands to tcl-server. modified: src/server/server.c modified: src/server/tcl_server.c modified: src/server/tcl_server.h 2010-05-04 Øyvind Harboe * : flash: more flash write_image bugfixes Remove/fix lots of bugs in handling of non-contigious sections and out of order sections. Fix a gaffe introduced in previous commit to src/flash/nor/core.c Signed-off-by: Øyvind Harboe 2010-05-05 Marc Pignat * : documentation typo Signed-off-by: Øyvind Harboe 2010-05-04 Spencer Oliver * : str71x: fix previous commit fix build issue with 70226c221f5879bb6126ff3f2ec9ae64c68d80d6 commit Signed-off-by: Spencer Oliver 2010-05-03 Øyvind Harboe * : str7x: fix bogus error messages Remove bogus error messages when trying to allocate a large chunk of target memory and then falling back to a smaller one. Signed-off-by: Øyvind Harboe 2010-05-04 Øyvind Harboe * : zy1000: wait for srst to deassert make wait for srst deassert more long latency friendly (JTAG over TCP/IP), print actual time if it was more than 1ms. Signed-off-by: Øyvind Harboe 2010-04-30 Tobias Ringström * : STM32 flash erase timeout fix The current timeout for STM32 flash block erase and flash mass erase is 10 (ms), which is too tight, and fails around 50% of the time for me. The data sheet for STM32F107VC specifies a maximum erase time of 40 ms (for both operations). I'd also consider it a bug that the code does not detect a timeout, but just assumes that the operation has completed. The attached patch does not address this bug. The attached patch increases the timeouts from 10 to 100 ms. Please apply. /Tobias 2010-04-29 Øyvind Harboe * : flash: write_image would fail for certain images Fix a bug where write_image would fail if the sections in the image were not in ascending order. This has previously been fixed in gdb load. Solved by sorting the image sections before running flash write_image erase unlock foo.elf. Signed-off-by: Øyvind Harboe 2010-04-28 Øyvind Harboe * : nor: remove bogus output about padding sections padding of 0 bytes is actually no padding, do not output warning about padding in that case. Signed-off-by: Øyvind Harboe 2010-04-26 Marek Vasut * : Add VPACLink interface definition This patch adds definition file for the Voipac VPACLink JTAG adaptor. The adaptor is combined JTAG/UART device. Signed-off-by: Marek Vasut 2010-04-24 michal smulski * : telo: update configuration scripts to matched master branch Signed-off-by: Øyvind Harboe 2010-04-20 michal smulski * : docs: improve load_image docs add docs for missing args. Signed-off-by: Øyvind Harboe 2010-04-17 Andreas Fritiofson * : stm32x: allow flash probe on a running target If the flash has not yet been probed and GDB connects while the target is running, the flash probe triggered by GDB's memory map read will fail. In that case the returned memory map will be empty, causing a subsequent load from within GDB to fail. There's not much you can do from GDB to recover, other than a restart; a 'mon reset init' and manual 'mon flash probe' won't help since GDB has already made up its mind about the memory map. It seems there's no reason to require the target to be halted when probing the flash. Remove the check to let a valid memory map be provided to GDB even when connecting to a running target. Signed-off-by: Andreas Fritiofson 2010-04-14 Antonio Borneo * : NOR/CFI: remove redundant code Arguments for "flash bank" command are already parsed and put in "bank" struct. Removed code to parse them again. Signed-off-by: Antonio Borneo 2010-04-13 Mike Dunn * : xscale: fix analyze_trace for trace data collected in wrap mode This patch fixes the xscale_analyze_trace() function. This function was defective for a trace collected in 'fill' mode (hiccups with repeated instructions) and completely broken when buffer overflowed in 'wrap' mode. The reason for the latter case is that the checkpoint registers were interpreted incorrectly when two checkpoints are present in the trace (which will be true in 'wrap' mode once the buffer fills). In this case, checkpoint1 register will contain the older entry, and checkpoint0 the newer. The original code assumed the opposite. I eventually gave up trying to understand all the logic of the function, and rewrote it. I think it's much cleaner and understandable now. I have been using and testing this for a few weeks now. I'm confident it hasn't regressed in any way. Also added capability to handle (as best as possible) the case where an instruction can not be read from the loaded trace image; e.g., partial image. This was a 'TODO' comment in the original xscale_analyze_trace(). Outside of xcsale_analyze_trace(), these (related) changes were made: - Remove pc_ok and current_pc elements from struct xscale_trace. These elements and associated logic are useless clutter because the very first entry placed in the trace buffer is always an indirect jump to the address at which execution resumed. This type of trace entry includes the literal address in the trace buffer, so the initial address of the trace is immediately determined from the trace buffer contents and does not need to be recorded when trace is enabled. - Added num_checkpoints to struct xscale_trace_data, which is necessary in order to correctly interpret the checkpoint register contents. - In xscale_read_trace() - Fix potential array out-of-bounds condition. - Eliminate partial address entries when parsing trace (can occur in wrap mode). - Count and record number of checkpoints in trace. - Added small, inlined utility function xscale_display_instruction() to help make the code more concise and clear. TODO: - Save processor state (arm or thumb) in struct xscale_trace when trace is enabled so that trace can be analyzed correctly (currently assumes arm mode). - Add element to struct xscale_trace that records (when trace is enabled) whether vector table is relocated high (to 0xffff0000) or not, so that a branch to an exception vector is traced correctly (curently assumes vectors at 0x0). 2010-04-14 Anton Fedotov * : cortex-a8: more MMU support + virt2phys() can now convert virtual address to real + read_memory() and write_memory() are renamed to read_phys_memory() and write_phys_memory() + new read_memory() and write_memory() try to resolve real address if mmu is enambled than perform real address reading/writing + if address is bellow 0xc000000 than TTB0 is used for page table dereference, if above - than TTB1. Linux style of user/kernel address separation + if above fails (i.e address is unspecified) than mode is checked whether it is Supervisor (than TTB1) or User (than TTB0) - Software breakpoints doesn't work. You should invoke "gdb_breakpoint_override hard" before you start debugging + cortex_a8_mmu(), cortex_a8_enable_mmu_caches(), cortex_a8_disable_mmu_caches() are implemented Signed-off-by: Øyvind Harboe 2010-04-11 Antonio Borneo * : NOR/TMS470: review scope of symbols Add "static" qualifier to private functions and data. Signed-off-by: Antonio Borneo 2010-04-11 Antonio Borneo * : TARGET/MIPS32_PRACC: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : HELPER/LOG: review unused symbols Remove unused functions: - log_catch - log_rethrow - log_try Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : NOR/CFI: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : OPENOCD: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : BINARYBUFFER: review scope of data and functions Add "static" qualifier to private data and functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : NAND/TCL: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : NAND/ARM_IO: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : NAND/MX3: review scope of data Add "static" qualifier to private data. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : NOR/AVRF: review scope of data Add "static" qualifier to private data. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : NOR/DRIVERS: review scope of functions Add "static" qualifier to private functions. Remove unused "extern" in src/ecosboard.c Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : TCL: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : HELLO: review unused symbols Remove unused functions: - hello_register_commands Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : ADI_V5_JTAG: review scope of data Add "static" qualifier to private data. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : ARM_JTAG: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : ARMV4_5_MMU: review unused symbols Remove unused data: - armv4_5_mmu_page_type_names Remove prototype of not existing function: - armv4mmu_translate_va Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : EMBEDDEDICE: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo 2010-04-10 Antonio Borneo * : TARGET: review scope of functions Add "static" qualifier to private functions. Remove unused "extern" in src/ecosboard.c Signed-off-by: Antonio Borneo 2010-04-04 David Brownell * : Restore deleted '!' character I'm not sure what caused this significant character to get deleted. it may be related to intermittent Editor or terminal flakes I've been seeing lately (sigh). This fix is trivial. Signed-off-by: David Brownell 2010-04-04 David Brownell * : simplify and unconfuse target_run_algorithm() For some reason there are *two* schemes for interposing logic into the run_algorithm() code path... One is a standard procedural wapper around the target method invocation. the other (superfluous) one hacked the method table by splicing a second procedural wrapper into the method table. Remove it: * Rename its slightly-more-featureful wrapper so it becomes the standard procedural wrapper, leaving its added logic (where it should have been in the first place. Also add a paranoia check, to report targets that don't support algorithms without traversing a NULL pointer, and tweak its code structure a bit so it's easier to modify. * Get rid of the superfluous/conusing method table hacks. This is a net simplification, making it simpler to analyse what's going on, and then interpose logic . ... by ensuring there's only one natural place for it to live. ------------ Signed-off-by: David Brownell 2010-03-28 Mike Dunn * : xscale: fix trace buffer functionality when resuming from a breakpoint Problem: halt at a breakpoint, enable trace buffer ('xscale trace_buffer enable fill'), then resume. Wait for debug exception when trace buffer fills (if not sooner due to another breakpoint, vector catch, etc). Instead, never halts. When halted explicitly from OpenOCD and trace buffer dumped, it contains only one entry; a branch to the address of the original breakpoint. If the above steps are repeated, except that the breakpoint is removed before resuming, the trace buffer fills and the debug exception is generated, as expected. Cause: related to how a breakpoint is stepped over on resume. The breakpoint is temporarily removed, and a hardware breakpoint is set on the next instruction that will execute. xscale_debug_entry() is called when that breakpoint hits. This function checks if the trace buffer is enabled, and if so reads the trace buffer from the target and then disables the trace (unless multiple trace buffers are specified by the user when trace is enabled). Thus you only trace one instruction before it is disabled. Solution: kind of a hack on top of a hack, but it's simple. Anything better would involve some refactoring. This has been tested and trace now works as intended, except that the very first instruction is not part of the trace when resuming from a breakpoint. TODO: still many issues with trace: doesn't work during single-stepping (trace buffer is flushed each step), 'xscale analyze_trace' works only marginally for a trace captured in 'fill' mode, and not at all for a trace captured in 'wrap' mode. Signed-off-by: Øyvind Harboe 2010-03-26 Antonio Borneo * : NOR TCL: fix usage message The command "flash bank" has updated syntax. Add the mandatory parameter to the usage message that prints in case of error. Signed-off-by: Antonio Borneo 2010-03-04 Øyvind Harboe * : zy1000: dev tool first cut peek/poke over tcp/ip, used for debug/research purposes only. Long term JTAG over TCP/IP might be an offshoot. The performance is usable for development/testing purposes. Signed-off-by: Øyvind Harboe 2010-03-25 Daniel Bäder * : change %x and %d to PRIx32 and PRId32 where needed for cygwin 2010-03-24 Antonio Borneo * : telnet_server: review unused symbols Remove unused function Signed-off-by: Antonio Borneo 2010-03-24 David Brownell * : FT2232 Messaaging fix The init cleanup patch overlooked a message which was wrongly specific to the "usbjtag" layout. Fix. Signed-off-by: David Brownell 2010-03-24 Antonio Borneo * : server: review scope of functions and data Add "static" qualifier to private functions and data. Signed-off-by: Antonio Borneo 2010-03-20 Mike Dunn * : fix software breakpoints on xscale This patch fixes xscale software breakpoints by cleaning the dcache and invalidating the icache after the bkpt instruction is inserted or removed. The icache operation is necessary in order to flush the fetch buffers, even if the icache is disabled (see section 4.2.7 of the xscale core developer's manual). The dcache is presumed to be enabled; no harm done if not. The dcache is also invalidated after cleaning in order to safeguard against a future load of invalid data, in the event that cache_clean_address points to memory that is valid and in use. Also corrected a confusing typo I noticed in a comment. TODO (or not TODO...?): the xscale's 2K "mini dcache" is not cleaned. This cache is not used unless the 'X' bit in the page table entry is set. This is a proprietary xscale extension to the ARM architecture. If a target's OS or executive makes use of this for memory regions holding code, the breakpoint problem will persist. Flushing the mini dcache requires that 2K of valid cacheable memory (mapped with 'X' bit set) be designated by the user for this purpose. The debug handler that gets downloaded to the target will also need to be extended. 2010-03-21 David Brownell * : ft2232 init mess cleanup In the ft2232 driver, initialization for many layouts punts to a routine called usbjtag_init(), instead of a routine specific to each layout. That routine is a mess built around a "what type layout am I" core. That's a bad design ... in this case, especially so, since it bypasses the layout-specific dispatch which was just done, and obfuscates the initialization which is at least somewhat generic, instead of being specific to the "usbjtag" layout. Split and document out the generic parts of usbjtag_init(), and make the rest of those layouts have layout-specific init methods. Also, rename usbjtag_reset() ... that also was not specific to the "usbjtag" layout, and thus contributed to the previous code structure confusion. (Eventually, all layout-specific code (and method tables) should probably live in files specific to each layout. These changes will facilitate those and other cleanups to this driver.) Signed-off-by: David Brownell 2010-03-19 Øyvind Harboe * : jtag: make out_value const Tightens up the jtag_add_xxx_scan() API Signed-off-by: Øyvind Harboe 2010-03-19 David Brownell * : FT2232 comment tweaks Note that the FT4232 chips have four channels not two, and Elaborate on uses of the additional channels. Signed-off-by: David Brownell 2010-03-19 Øyvind Harboe * : zy1000: fix bug in end state of DCC writes Introduced in latest commits, found by code inspection & GCC warning. Signed-off-by: Øyvind Harboe 2010-03-18 Øyvind Harboe * : jtag: remove jtag_get_end_state() usage Code inspection indicated what constant end states to use. Signed-off-by: Øyvind Harboe 2010-03-18 Øyvind Harboe * : jtag: remove unecessary usage of jtag_get_end_state(). By code inspection. Signed-off-by: Øyvind Harboe 2010-03-18 Mike Dunn * : Fix underlying problem with xscale icache and dcache commands Fix problem with the xscale icache and dcache commands. Both commands were enabling or disabling the mmu, not the caches I didn't look any further after my earlier patch fixed the trivial problem with command argument parsing. Turns out the underlying code was broken. The resolution is straightforward when you look at the arguments to xscale_enable_mmu_caches() and xscale_disable_mmu_caches(). I finally took a deeper look after dumping the cp15 control register (XSCALE_CTRL) and seeing that the cache bits weren't changing, but the mmu bit was (which caused all manner of grief, as you can imagine). This has been tested and works OK now. src/target/xscale.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) Signed-off-by: David Brownell 2010-03-18 David Brownell * : commit 52a788e008ecf0ca6156f02de08a0f062d49a236 Author: David Brownell Date: Thu Mar 18 11:56:17 2010 -0700 2010-03-18 Øyvind Harboe * : jtag: retire one instance of jtag_get_end_state() usage Less global variables.... Signed-off-by: Øyvind Harboe 2010-03-18 Spencer Oliver * : DOCS: update flash bank examples - include the $_FLASHNAME in all flash bank examples. Signed-off-by: Spencer Oliver 2010-03-17 Spencer Oliver * : MIPS: remove unused arg from mips_ejtag_set_instr This arg was never used and was just taken from the arm jtag code. Signed-off-by: Spencer Oliver 2010-03-17 Øyvind Harboe * : linker error: fix problem with duplicate fn A fn was copied instead of moved to a new file. The linker can discard exact copies of fn's without warning. This is a C++'ism. However on my Ubuntu 9.10 machine, it fails. Signed-off-by: Øyvind Harboe 2010-03-17 Øyvind Harboe * : gdb: long running "monitor mww" now works w/gdb invoke keep_alive() to make sure that the default 2000ms timeout does not trigger. Signed-off-by: Øyvind Harboe 2010-03-17 Øyvind Harboe * : target: mdX/mwX on target were badly broken - incorrect parsing of arguments - mdX didn't display arguments correctly I don't think anyone ever used that code path :-) Did you know that "target mdw" and mdw are very different? for {set i 0} {$i < 256} {set i [expr $i+1]} {mwb [expr 0x2000000+$i] $i} mdw 0x2000000 0x10 0x02000000: 03020100 07060504 0b0a0908 0f0e0d0c 13121110 17161514 1b1a1918 1f1e1d1c 0x02000020: 23222120 27262524 2b2a2928 2f2e2d2c 33323130 37363534 3b3a3938 3f3e3d3c > zy1000.cpu mdb 0x2000000 0x20 0x02000000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................ 0x02000010 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................ > zy1000.cpu mdh 0x2000000 0x20 0x02000000 0100 0302 0504 0706 0908 0b0a 0d0c 0f0e ................ 0x02000010 1110 1312 1514 1716 1918 1b1a 1d1c 1f1e ................ 0x02000020 2120 2322 2524 2726 2928 2b2a 2d2c 2f2e !"#$%&'()*+,-./ 0x02000030 3130 3332 3534 3736 3938 3b3a 3d3c 3f3e 0123456789:;<=>? > zy1000.cpu mdw 0x2000000 0x20 0x02000000 03020100 07060504 0b0a0908 0f0e0d0c ................ 0x02000010 13121110 17161514 1b1a1918 1f1e1d1c ................ 0x02000020 23222120 27262524 2b2a2928 2f2e2d2c !"#$%&'()*+,-./ 0x02000030 33323130 37363534 3b3a3938 3f3e3d3c 0123456789:;<=>? 0x02000040 43424140 47464544 4b4a4948 4f4e4d4c @ABCDEFGHIJKLMNO 0x02000050 53525150 57565554 5b5a5958 5f5e5d5c PQRSTUVWXYZ[\]^_ 0x02000060 63626160 67666564 6b6a6968 6f6e6d6c `abcdefghijklmno 0x02000070 73727170 77767574 7b7a7978 7f7e7d7c pqrstuvwxyz{|}~. Signed-off-by: Øyvind Harboe 2010-03-16 Spencer Oliver * : PIC32: add software reset support The PIC32MX does not support the ejtag software reset - it is optional in the ejtag spec. We perform the equivalent using the microchip specific MTAP cmd's. Signed-off-by: Spencer Oliver 2010-03-16 Øyvind Harboe * : gdb_server: improved gdb load performance by ack'ing memory writes immediately and reporting either at next memory write or stepi/continue time. GDB will then send off a new packet that is ready by the time the previous packet has been written to target memory. On faster adapters this can be as much as 10% improvement. Signed-off-by: Øyvind Harboe 2010-03-16 Øyvind Harboe * : arm7/9: remove unused post_restore_context Unused. If something should happen after context restore, then the calling code can just do it afterwards. Signed-off-by: Øyvind Harboe 2010-03-01 Øyvind Harboe * : bitbang: add jtag_add_tms_seq support Signed-off-by: Øyvind Harboe 2010-03-16 Spencer Oliver * : PIC32: add Microchip Explorer16 cfg - add Microchip Explorer16 cfg using PIC32MX360F512L PIM. - remove reset config from PIC32 target cfg. Signed-off-by: Spencer Oliver 2010-03-15 Bradey Honsinger * : image loading: fix problem with offsets > 0x80000000 Fixes bug that prevented users from specifying a base address of 0x80000000 or higher in image commands (flash write_image, etm image, xscale trace_image). image.base_address is an offset from the start address contained in the image file (if there is one), or from 0 (for binary files). As a signed 32-bit int, it couldn't be greater than 0x7fffffff, which is a problem when trying to write a binary file to flash above that address. Changing it to a 64-bit long long keeps it as a signed offset, but allows it to cover the entire 32-bit address space. Signed-off-by: Øyvind Harboe 2010-03-15 David Brownell * : rename jtag_nsrst_assert_width as adapter_nsrst_assert_width Globally rename "jtag_nsrst_assert_width" as "adapter_nsrst_assert_width", and move it out of the "jtag" command group ... it needs to be used with non-JTAG transports Includes a migration aid (in jtag/startup.tcl) so that old user scripts won't break. That aid should Sunset in about a year. Signed-off-by: David Brownell 2010-03-15 David Brownell * : rename jtag_khz as adapter_khz Globally rename "jtag_khz" as "adapter_khz", and move it out of the "jtag" command group ... it needs to be used with non-JTAG transports Includes a migration aid (in jtag/startup.tcl) so that old user scripts won't break. That aid should Sunset in about a year. (We may want to update it to include a nag message too.) Signed-off-by: David Brownell 2010-03-15 Spencer Oliver * : PIC32MX: update cfg script The default config script will now dynamically setup the BMX registers in the reset init script. This will also work if the user overrides the default working area. Signed-off-by: Spencer Oliver 2010-03-14 David Brownell * : FT2232: lookup and save layout just once Streamline use of the layout: have the "ft2232_layout" command look it up and save the result, instead of having a few different chunks of code looking it up later, and saving just its name (which is already part of the layout). This - is cleaner - reports errors sooner - facilitates earlier adapter-specific setup - removes unused "default to "usbjtag" logic Signed-off-by: David Brownell 2010-03-11 David Brownell * : versaloon cleanup patch Remove undesirable - backslashes at end-of-line; - initializations of BSS data to zero/NULL; - overlong lines (80+ characters) - whitespace issues - brackets around single-line statements And other minor issues reported by the Linux "checkpatch" utility Signed-off-by: David Brownell 2010-03-08 Michal Demin * : Add support for Bus Pirate as a JTAG adapter. This includes a driver and matching config file. This support needs to be enabled through the initial "configure" (use "--enable-buspirate"). Signed-off-by: Michal Demin Signed-off-by: David Brownell 2010-03-10 Spencer Oliver * : MIPS: make fixed code arrays static const Signed-off-by: Spencer Oliver 2010-03-08 Spencer Oliver * : PIC32: add flash algorithm support Add flash algorithm support for the PIC32MX. Still a few things todo but this dramatically decreases the programing time, eg. approx programming for 2.5k test file. - without fastload: 60secs - with fastload: 45secs - with fastload and algorithm: 2secs. Add new devices to supported list. Signed-off-by: Spencer Oliver 2010-03-08 Spencer Oliver * : STR7: flash loader cleanup - make algorithm array static const. - increase algorithm buffer size to 32k. Signed-off-by: Spencer Oliver 2010-03-08 Spencer Oliver * : ADUC702x: flash loader cleanup - make algorithm array static const. Signed-off-by: Spencer Oliver 2010-03-08 David Brownell * : move a constant table to .rodata section The table of command registration functions shouldn't be in writable memory, where stray pointers can clobber it. Also, it shouldn't be initialized at runtime; that just consumes needless code space. Signed-off-by: David Brownell 2010-03-08 Øyvind Harboe * : zy1000: embedded ice dcc tweak How many bits to shift out before/after enabled tap not in bypass is calculated outside the loop. This is more of a demonstration of principle and to clarify code than a performance optimisation as such. Follows up a bit on the simplification work in jtag interface. Signed-off-by: Øyvind Harboe 2010-03-04 Øyvind Harboe * : jtag: jtag_add_ir_scan() now takes a single field In the code a single field was all that was ever used. Makes jtag_add_ir_scan() simpler and leaves more complicated stuff to jtag_add_plain_ir_scan(). Signed-off-by: Øyvind Harboe 2010-03-06 Antonio Borneo * : CFI: review print of Voltage values JEDEC standard reports Vpp integer part encoded as 4 bit HEX value. To print it using decimal digits, %u is required. Other voltage values are coded as BCD, so %x is appropriate. Code already prints one nibble at a time, so no need for field width and precision in format string. Signed-off-by: Antonio Borneo Signed-off-by: Øyvind Harboe 2010-03-05 David Brownell * : README: update libftdi version The FT2232H really wants libftdi 0.17 or newer; some notable bugs got fixed in that version. Signed-off-by: David Brownell 2010-03-04 Øyvind Harboe * : minidriver: fix arm11 compilation problem Signed-off-by: Øyvind Harboe 2010-03-03 David Brownell * : NOR: trim range in flash_driver_protect() When the beginning or end of the specified range of sectors already has the requested protection status, don't ask the flash driver to change those sectors. This will among other things turn command sequences like this into the NOPs one would expect: flash protect_check 0 flash info 0 ... reports everything as unprotected ... flash protect 0 0 1 off That speeds things up (by whatever work was just avoided). Also, with Stellaris (which can't unprotect flash at page level) this can eliminate some undesirable/false error reports. (And finishes fixing a bug currently listed in our bug database...) Signed-off-by: David Brownell 2010-03-03 David Brownell * : NOR: stellaris message tweaks Give a more accurate failure message when trying to unprotect; don't complain about pages being write protected, just say that unprotect is not supported by the hardware ... referencing the new "recover" command, which is the way to achieve that. Likewise, when trying to protect, talk about "pages" (matching hardware doc) not "sectors" (an concept that's alien to these chips). Also make the helptext for the "recover" command mention that it also erases the device. Signed-off-by: David Brownell 2010-03-02 David Brownell * : ADIv5: use new DAP ops for AP read/write Make ADIv5 internals use the two new transport-neutral calls for reading and writing DP registers; and do the same for external callers. Also, bugfix some of their call sites to handle the fault returns, instead of ignoring them. Remove most of the JTAG-specific calls, using their code as the bodies of the JTAG-specific implementation for the new methods. NOTE that there's a remaining issue: mem_ap_read_buf_u32() makes calls which are JTAG-specific. A later patch will need to remove those, so JTAG-specific operations can be removed from this file, and so that SWD support will be able to properly drop in as just a transport layer to the ADIv5 infrastructure. (The way read results are posted may need some more attention in the transport-neutrality interface.) Signed-off-by: David Brownell 2010-03-02 David Brownell * : ADIv5: use new dap_run() operation Make ADIv5 use one of the new transport-neutral interfaces: call dap_run(), not jtagdp_transaction_endcheck(). Also, make that old interface private; and bugfix some of its call sites to handle the fault returns, instead of ignoring them. Signed-off-by: David Brownell 2010-03-02 David Brownell * : target_resume() doxygen Add doxygen for target_resume() ... referencing the still-unresolved confusion about what the "debug_execution" parameter means (not all CPU support code acts the same). The 'handle_breakpoints" param seems to have resolved the main issue with its semantics, but it wasn't part of the function spec before. Signed-off-by: David Brownell 2010-03-02 David Brownell * : ADIv5: use right ID for Cortex-M3 ETM Correct a mistake made copying the ID of the Cortex-M3 ETM module from the TRM, so that "dap info" on a CM3 with an ETM will now correctly describe ROM table entries for such modules. (They are included on LPC17xx and some other cores.) Signed-off-by: David Brownell 2010-03-01 Øyvind Harboe * : zy1000: faster jtag_add_ir_scan() Faster and simpler. Signed-off-by: Øyvind Harboe 2010-03-01 Øyvind Harboe * : zy1000: add jtag_add_tms_seq support Signed-off-by: Øyvind Harboe 2010-02-28 Spencer Oliver * : armv4_5: remove core_type check in mcr/mrc cmd core_type check is not required as the core function will be null for cores that do not support the mcr/mrc functions. Signed-off-by: Spencer Oliver 2010-02-28 Spencer Oliver * : stellaris: recover_command use usleep rather than sleep windows api does not define a posix sleep, use usleep that has an openocd wrapper to the win32 native function. Signed-off-by: Spencer Oliver 2010-02-26 Spencer Oliver * : semihosting: add armv7m semihosting support do_semihosting and arm_semihosting now check the core type and use the generic arm structure. Signed-off-by: Spencer Oliver 2010-02-26 Spencer Oliver * : CortexM3: move disassemble cmd to arm cmd group Rather than using a Cortex disassemble cmd, we now use the arm generic version. Signed-off-by: Spencer Oliver 2010-01-13 Spencer Oliver * : MIPS: add mips algorithm support - add mips support for target algorithms. - added handlers for target_checksum_memory and target_blank_check_memory. - clean up long lines Signed-off-by: Spencer Oliver 2010-02-28 Mariano Alvira * : Add board/redbee-usb.cfg The Redbee USB is a small form-factor usb stick from Redwire, LLC (www.redwirellc.com/store), built around a Freescale MC13224V ARM7TDMI + 802.15.4 radio (plus antenna). It includes an FT2232H for debugging, with Channel B connected to the mc13224v's JTAG interface (unusual) and Channel A connected to UART1. Signed-off-by: David Brownell 2010-02-27 Mariano Alvira * : Add target/mc13224v.cfg The MC13224V is a FreeScale ARM7TDMI based IEEE802.15.4 platform for Zigbee and similar low-power wireless applications. Using PIP (Platform In Package) technology, it integrates: an RF balun and matching network; a buck converter (only an external inductor is necessary); 96KB of SRAM; and 128KB of non-volatile memory. It has an integrated bootloader and can boot from a variety of sources: external SPI or I2C non-volatile memory, an image loaded over UART1, or the internal non-volatile memory. The image loaded from one of these sources is executed directly from SRAM starting at location 0x00400000. Open source development code at http://mc1322x.devl.org Signed-off-by: David Brownell 2010-02-27 David Brownell * : ADIv5 DAP ops switching to JTAG or SWD modes Define two new DAP operations which use the new jtag_add_tms_seq() calls to put the DAP's transport into either SWD or JTAG mode, when the hardware allows. Tested with the Stellaris 'Recovering a "Locked" Device' procedure, which loops five times over both of these. Signed-off-by: David Brownell 2010-02-27 David Brownell * : interface: define TMS sequence command For support of SWD we need to be able to clock out special bit sequences over TMS or SWDIO. Create this as a generic operation, not yet called by anything, which is split as usual into: - upper level abstraction ... here, jtag_add_tms_seq(); - midlayer implementation logic hooking that to the lowlevel code; - lowlevel minidriver operation ... here, interface_add_tms_seq(); - message type for request queue, here JTAG_TMS. This is done slightly differently than other operations: there's a flag saying whether the interface driver supports this request. (In fact a flag *word* so upper layers can learn about other capabilities too ... for example, supporting SWD operations.) That approach (flag) lets this method *eventually* be used to eliminate pathmove() and statemove() support from most adapter drivers, by moving all that logic into the mid-layer and increasing uniformity between the various drivers. (Which will in turn reduce subtle bugginess.) Signed-off-by: David Brownell 2010-02-24 David Brownell * : ARM ADIv5 doxygen and cleanup Add doxygen for mem_ap_read_buf_u{8,16,32}() calls, and shrink a few overlong lines. Signed-off-by: David Brownell 2010-02-23 David Brownell * : ARM ADIv5: rename more JTAG-specific routines Highlight more of the internal JTAG-specific utilities, so it's easier to identify code needing changes to become transport-neutral. Signed-off-by: David Brownell 2010-02-09 Øyvind Harboe * : arm11: allow minidrivers to implement inner loop of memory writes This allows minidrivers to e.g. hardware accelerate memory writes. Same trick as is used for arm7/9 dcc writes. Added error propagation for memory transfer failures in code rearrangement. Also the JTAG end state is not updated until after the memory write run is complete. Signed-off-by: Øyvind Harboe 2010-02-21 David Brownell * : ft2232 table init cleanup Use labeled initializers in the table of layouts instead of positional ones. This ls cleaner and less error prone, plus it simplifies patches which add members to these structure. Signed-off-by: David Brownell 2010-02-21 David Brownell * : ADIv5: relocate memacess_tck cycles When using an AP to access a memory (or a memory-mapped register), some extra TCK (assuming JTAG) cycles should be added to ensure the AP has enugh time to complete that access before trying to collect the response. The previous code was adding these cycles *before* trying to access (read or write) data to that address, not *after*. Fix by putting the delays in the right location. Signed-off-by: David Brownell 2010-02-21 David Brownell * : ARM: ADIv5, deadcode cleanup I have no idea what the scan_inout_check() was *expecting* to achieve by issuing a read of the DP_RDBUFF register. But in any case, that code was clearly never being called ("invalue" always NULL) ... so remove it, and the associated comment. Also rename it as ap_write_check(), facilitating a cleanup of its single call site by removing constant parameters. Signed-off-by: David Brownell 2010-02-21 David Brownell * : ADIv5 clean up AP fault handling Pass up fault codes from various routines, so their callers can clean up after failures, and remove the FIXME comments highlighting those previously goofy code paths. dap_ap_{read,write}_reg_u32() dap_ap_write_reg() mem_ap_{read,write}_u32() mem_ap_{read,write}_atomic_u32() dap_setup_accessport() Make dap_ap_write_reg_u32() just wrap dap_ap_write_reg(), instead of cloning its core code (and broken fault handling). Signed-off-by: David Brownell 2010-02-21 David Brownell * : ARM: keep a handle to the PC Keep a handle to the PC in "struct arm", and use it. This register is used a fair amount, so this is a net minor code shrink (other than some line length fixes), but mostly it's to make things more readable. For XScale, fix a dodgy sequence while stepping. It was initializing a variable to a non-NULL value, then updating it to handle the step-over-active-breakpoint case, and then later testing for non-NULL to see if it should reverse that step-over-active logic. It should have done like ARM7/ARM9 does: init to NULL. Signed-off-by: David Brownell 2010-02-21 David Brownell * : ARM11: per-core options should not be global Address some FIXME comments by getting rid of globals, moving per-core parameters in the existing per-core data structure. This will matter most whenever there are multiple ARM11 cores, e.g. ARM11 MPcore chips, but in general is just cleanup. Signed-off-by: David Brownell 2010-02-21 David Brownell * : Open the merge window for the 0.5.0 release cycle. Signed-off-by: David Brownell 2010-02-21 David Brownell * : User's Guide mentions OS-specific installation Specifically the Linux issue of needing "udev" rules, and MS-Windows needing driver configuration. Also, update the existing udev note to use the correct name of that rules file in the source tree. Signed-off-by: David Brownell 2010-02-20 David Brownell * : CSB337 board cleanup (quasi-regression) Get rid of new nasty warning: NOTE! Severe performance degradation without fast memory access enabled... Signed-off-by: David Brownell 2010-02-16 Marc Pignat * : atm920t : fix breakpoints and data cache handling Breakpoints did not work because the data cache was not flushed properly. As a bonus add capability to write to memory marked as read only by the MMU, which allows software breakpoints in such memory regions. 2010-02-15 Øyvind Harboe * : gpl: fix GPL startup message Signed-off-by: Øyvind Harboe 2010-02-14 Mathias Kuester * : fix crash with DSP563XX When a DSP563xx-aware GDB asks OpenOCD for target registers, the result should be a GDB with register data ... not an OpenOCD crash. (Note that mainline GDB doesn't currently support this core, so for now, this requires a GDB with FreeScale patches.) Signed-off-by: David Brownell 2010-02-13 David Brownell * : Restore "-dev" version suffix (0.4.0-rc2-dev) Signed-off-by: David Brownell 2010-02-11 Spencer Oliver * : STR9xpec: issue warning when unlocking device Issue warning to user when unlocking or writing the option bytes. The new settings will not take effect until a target reset. Signed-off-by: Spencer Oliver 2010-02-12 Øyvind Harboe * : arm720t: virt2phys callback added This is a copy and paste of arm926ejs. Not tested, but ready for testing at least. There is a good chance that it will work if the generic armv4_5 fn's are robust enough... Signed-off-by: Øyvind Harboe 2010-02-11 Viktar Palstsiuk * : target library: configuration files for openocd tested with Atmel SAM-ICE V6 JTAG. Signed-off-by: Øyvind Harboe 2010-02-10 Øyvind Harboe * : arm11: fix another infinite loop bug reset init would get stuck in an infinite loop when e.g. khz was too high. Added timeout. This is a copy of paste of a number of such bugfixes in the arm11 code. Arm11 code reviewed for further such infinite loop bugs and I couldn't find any more. Xing fingers it's the last one... Signed-off-by: Øyvind Harboe 2010-02-09 Øyvind Harboe * : target: add todo in target_write_memory() about alignment target_write_buffer() does not align "buffer" in host memory passed to target_write_memory(). Signed-off-by: Øyvind Harboe 2010-02-06 David Brownell * : Re-title Developer's Guide The Doxygen output was previously titled "OpenOCD Reference Manual", which was quite misleading ... the User's Guide is the reference manual which folk should consult about how to use the software. Just rename it to match how it's been discussed previously, and to bring out its intended audience: developers of this software. As a rule, Doxygen is only for folk who work with the code it documents. Signed-off-by: David Brownell 2010-02-05 Øyvind Harboe * : zy1000: complete zy1000_uart to jim command switch Signed-off-by: Øyvind Harboe 2010-02-04 David Brownell * : Documentation: mention bug database Have the User's Guide and BUG handling notes both reference the fact that we now have a bug database at SourceForge. Signed-off-by: David Brownell 2010-02-04 Spencer Oliver * : CMD: duplicate cmd error msg When registering cmds we report duplicate attempts to register a cmd as a LOG_ERROR. Some situations need this, such as when registering dual flash banks. http://www.mail-archive.com/openocd-development@lists.berlios.de/msg11152.htmlSigned-off-by: Spencer Oliver 2010-02-03 Spencer Oliver * : JTAG: fix bug when no interface connected - fix coredump when OpenOCD is started without a jtag interface connected. Signed-off-by: Spencer Oliver 2010-02-02 David Brownell * : NOR: User's Guide updates Remove long-obsolete text about "erase_check" affecting "flash info" output. Move parts of that text to "protect_check", where it's still relevant; and update the "flash info" description to mention the issue. (This is still awkward. It might be best to make "protect_check" mirror "erase_check" by dumping what it finds, so "flash info" doesn't dump any potentially-stale cache info.) Signed-off-by: David Brownell 2010-02-02 Edgar Grimberg * : flash/str7x: After reset init the flash is unlocked The default state of the STR7 flash after a reset init is unlocked. The information in the flash driver now reflects this. The information about the lock status cannot be read from the flash chip, so the user is informed that flash info might not contain accurate information. [dbrownell@users.sourceforge.net: line length shrinkage] Signed-off-by: Edgar Grimberg Signed-off-by: David Brownell 2010-01-29 Edgar Grimberg * : Test cases ran on v0.4.0-rc1 Test cases ran on v0.4.0-rc1 for a number of targets: AT91FR40162 LPC2148 SAM7 STR710 STR912 The goal of the testing session was to prove basic functionality of OpenOCD for different targets. Signed-off-by: Edgar Grimberg 2010-01-31 David Brownell * : ADIv5: more messaging cleanup, docs When the TAR cache was explicitly invalidated, don't bother printing it; the actual hardware status is more informative. Provide some doxygen for the MEM-AP setup routine. Signed-off-by: David Brownell 2010-01-21 Øyvind Harboe * : telnet: fix strage blank spaces at beginning of telnet lines Sometimes we saw two strange blank spaces at the beginning of the telnet lines. progress ogress > This patch fixes this problem: progress progress > The code changes are *reasonably* clean, but perhaps it could be made a bit more elegant, but I didn't want to change things after I finished diagnosis/testing & submitting the patch. The problem was that logging can send the text and the newline separately in two different requests and the telnet code would incorrectly remove the prompt from the end of a line. Signed-off-by: Øyvind Harboe 2010-01-30 David Brownell * : ADIv5 error checking for Tcl commands Reject invalid AP numbers (256+) as Tcl operation parameters. Shrink one of the overlong lines. Add my copyright to the ADIv5 code (multiple contributions). Signed-off-by: David Brownell 2010-01-29 David Brownell * : ADIv5: cleanup, rename swjdp_transaction_endcheck() Make messages reference "DAP" if they're actually transport-agnostic, or "JTAG-DP" when they're JTAG-specific. Saying SWJ-DP is often wrong (on most Cortex-A8 chips) and is confusing even if correct (since we don't yet support SWD). Rename a JTAG-specific routine to jtagdp_transaction_endcheck() to highlight that it's JTAG-specific, and that identify DAP clients undesirably depending on JTAG. (They will all need to change for SWD support.) Shrink a few overlong lines of code. Copy a comment from code removed in a previous patch (for the ARMv7-M "dap baseaddr" command). Signed-off-by: David Brownell 2010-01-29 David Brownell * : NOR: cleanup driver decls Fix goofy struct indents. Function names *are* their addresses. Signed-off-by: David Brownell 2010-01-28 David Brownell * : doc clarifications for server flags The "-f" is a shortcut for "-c" ... and providing any "-c" options means the "openocd.cfg" file isn't implicitly used. Both the User's Guide and the manual page were weak on these points, which has led to some confusion. Also update the manual page to include highlights of the search path mechanism, including the facts that it exists and that "-s" adds to it. Stop saying only the current directory is involved; the OpenOCD script library is quite significant. (Missing: complete manpage coverage of the search path, including a FILES section listing all components and saying where the script library is found.) Signed-off-by: David Brownell 2010-01-28 Spencer Oliver * : ARM semihosting: win32 and cygwin fixes Cygwin would fail to reopen a previously written file if the mode is not given. Simplified converting the open flags and made sure the win32 O_BINARY bit is set. Added define for systems that do not support O_BINARY. Signed-off-by: Spencer Oliver 2010-01-27 David Brownell * : Cortex-M3: report lockup, and recover ARMv7-M defines a "lockup" state that's entered in certain double fault sequences which can't be recovered from without external help. OpenOCD has previously ignored this. Issue a diagnostic saying the chip has locked up, and force exit from this state by halting the core. It's not clear this is the best way to handle lockup; but there should now be less confusion. Signed-off-by: David Brownell 2010-01-27 David Brownell * : Cortex-A8: debug messaging tweaks Make that "TODO" message say what needs to be done. Say what part of examining failed. Signed-off-by: David Brownell 2010-01-26 David Brownell * : cygwin buildfix isspace() parameter must be an integer, else a 'char' gets used as an array index (sigh). Signed-off-by: David Brownell 2010-01-25 Edgar Grimberg * : core arm11: Silence logs at level 3 if there is no activity If the target and openocd are idling, the log should normally be silent at level 3. (Given no verbose logging options.) Signed-off-by: Edgar Grimberg Signed-off-by: David Brownell 2010-01-22 David Brownell * : EmbeddedICE - fix Feroceon/Dragonite message The breakpoint/watchpoint message was wrong for Feroceon and Dragonite, which have only one working watchpoint unit. Signed-off-by: David Brownell 2010-01-22 David Brownell * : ARM11: fix breakpoints with GDB This fixes a bug whereby GDB's breakpoints weren't activated. The root cause is a confused interface to resume(). Fix by almost ignoring the "handle breakpoints" parameter; it only seems related to the case of skipping breakpoint-at-PC. Update a few coments to clarify what's happening. Signed-off-by: David Brownell 2010-01-21 David Brownell * : User's Guide secton on target hardware setup Highlight the needs to properly jumper development boards; to make the OpenOCD configuration match the jumpering; and to have a usable "reset-init" method when debugging early boot code. Specific mention of the "ATX Mode" that seems useful on many i.MX boards, forcing NAND boot. Signed-off-by: David Brownell 2010-01-21 Øyvind Harboe * : target: print reason why GDB halts If GDB halts unexpectedly, print reason: srst assert or power out detected. If polling fails, then things are a bit trickier. We do not want to spam telnet or the log with polling failed messages. Leave that case be w/a comment in a code for now. Signed-off-by: Øyvind Harboe 2010-01-21 Edgar Grimberg * : target: Fixed format problem for mdh Fixed format problem for mdh. It needs to display 4 chars. Signed-off-by: Edgar Grimberg 2010-01-21 Øyvind Harboe * : ecos: add missing PRId8 definition Signed-off-by: Øyvind Harboe 2010-01-20 David Brownell * : Cortex-M3 vector_catch testing support The "cm3-ftest.cfg" can be used to verify that OpenOCD handles certain faults correctly: - Test #1: it ignores faults that it wasn't told to catch - Test #2: if vector_catch is told to catch, it catches The "fault.c" generates ASM code to trigger faults, while the config script loads and runs pre-compiled code. This covers most, but not all, of the vector_catch options. Signed-off-by: David Brownell 2010-01-20 David Brownell * : gdb_server: correctly report flash sector sizes Report each region of same-size sectors separately, instead of incorrectly reporting that every sector has the same size. This is a longstanding bug on NOR flash chips with non-uniform sector sizes. It was largely hidden by other bugs in flash handling. When some of those were recently fixed, this one was exposed as a regression on str710. [oyvind.harboe@zylin.com: update the loop to behave on str7 ] Signed-off-by: Øyvind Harboe Signed-off-by: David Brownell 2010-01-20 Øyvind Harboe * : testing: fix str710 test case now builds Make the test case easily adjustable in size. str710 has very peculiar flash sector layout, nice for testing, but a larget test_rom.elf is required. Signed-off-by: Øyvind Harboe 2010-01-19 Spencer Oliver * : ARMV7M: handle bkpt instruction on resume/step Skip over a bkpt instruction if found on resume/step. Only software breakpoints known to OpenOCD are currently handled. So this handles the special case of either a user added bkpt or library added, eg. semi-hosting support. Signed-off-by: Spencer Oliver 2010-01-19 David Brownell * : gdb_server -- subroutinize memory map logic Put the memory map logic into its own subroutine. This will make it a bit easier to package bugfixes, and simplifies the query packet handling. Signed-off-by: David Brownell 2009-11-21 Andreas Fritiofson * : update win32 script search path The default script search path on Windows is out of date with the current layout (from installation and documentation), which makes the standard script library not be found after a normal ./configure && make && make install under msys/MinGW. The same should hold true for cygwin native builds (not verified). Update search path to ../share/openocd/scripts not ../lib/openocd, relative to the openocd executable. Signed-off-by: Andreas Fritiofson Signed-off-by: David Brownell 2010-01-18 Øyvind Harboe * : zy1000: flush jtag buffer before changing speed It is conceivable that there could be commands in the queue when a speed change request comes in. Flush the hw queue before changing speed. Not observed, found by inspection. Signed-off-by: Øyvind Harboe 2010-01-19 Øyvind Harboe * : flash: add error messages upon incorrect arguments to flash iteration According to OpenOCD error handling rules the error is logged at where it occurs(same site where an exception would have been thrown). Signed-off-by: Øyvind Harboe 2010-01-18 Øyvind Harboe * : commands: allow scan_chain command to be executed during config Adding taps and then dumping them is quite reasonable thing to do in a config script. Signed-off-by: Øyvind Harboe 2010-01-16 richard vegh * : NAND: lpc3180 crashes on LPC3250 The LPC3180 NAND driver was crashing on some large page chips. Fix: - Crash and related functionality (don't memset too much OOB data) - Some debug messages - Command handling now works [dbrownell@users.sourceforge.net: whitespace/linelength/message cleanup] Signed-off-by: David Brownell 2010-01-15 David Brownell * : ARM DPM: disable some nyet-ready breakpoint code Until we manage breakpoints at runtime (patches not ready for 0.4) the only way this code should touch them is to disable them at server startup (a previous debug session may have left them active). Signed-off-by: David Brownell 2010-01-14 David Brownell * : jtag.h whitespace/comment cleanup Signed-off-by: David Brownell 2010-01-14 David Brownell * : ARM7/ARM9: improved reset support Teach most remaining ARM cores how to use the "reset-assert" event. Same model as elsewhere: iff a handler is provided for that event, use that instead of trying to assert SRST (which may be unavailable, or inappropriate since it resets too much). Else no change. Signed-off-by: David Brownell 2010-01-14 Laurentiu Cocanu * : str9x.c: remove optimization when erasing the whole bank Using the erase bank command will cause a time out error. Replacing this with the erase sector bank will provide a slower but safer and stable method to erase the flash. Signed-off-by: Laurentiu Cocanu Signed-off-by: Øyvind Harboe 2010-01-14 Spencer Oliver * : GDB: change gdb_breakpoint_override to COMMAND_ANY - enable gdb_breakpoint_override to be used within config script. Signed-off-by: Spencer Oliver 2010-01-13 David Brownell * : NOR: add optional "flash erase_address" sector padding Add a NOR flash mechanism where erase_address ranges can be padded out to sector boundaries, triggering a diagnostic: > flash erase_address 0x0001f980 16 address range 0x0001f980 .. 0x0001f98f is not sector-aligned Command handler execution failed in procedure 'flash' called at file "command.c", line 647 called at file "command.c", line 361 > > flash erase_address pad 0x0001f980 16 Adding extra erase range, 0x0001f800 to 0x0001f97f Adding extra erase range, 0x0001f990 to 0x0001fbff erased address 0x0001f980 (length 16) in 0.095975s (0.163 kb/s) > This addresses what would otherwise be something of a functional regression. An earlier version of the interface had a dangerous problem: it would silently erase data outside the range it was told to erase. Fixing that bug turned up some folk who relied on that unsafe behavior. (The classic problem with interface bugs!) Now they can get that behavior again. If they really need it, just specify "pad". Signed-off-by: David Brownell 2010-01-11 Øyvind Harboe * : arm7/9: enable check that DCC downloads have been enabled Signed-off-by: Øyvind Harboe 2010-01-11 Øyvind Harboe * : target: add check_reset hook Allow targets to run checks post reset. Used to check that e.g. DCC downloads have been enabled. Signed-off-by: Øyvind Harboe 2010-01-11 Øyvind Harboe * : debug: make logging of commands terser one line / command instead of one line per argument. Signed-off-by: Øyvind Harboe 2010-01-11 Vladimir Zapolskiy * : Added Openmoko USB JTAG interface config file. Added interface config file for JTAG/RS232 debug board originally integrated to Neo 1973 and Neo FreeRunner phones. Adapter was tested with i.MX31, S3C2410 and AT91SAM9260 processors. Signed-off-by: Vladimir Zapolskiy 2010-01-11 Øyvind Harboe * : reset: better error messages Use correct tcl syntax to throw exception. the syntax is "return -code error" not "return -error" Signed-off-by: Øyvind Harboe 2010-01-11 Øyvind Harboe * : zy1000: reset bugfix flush JTAG FIFO before reset. Fixes RCLK problems observed w/lpc2148, but really fixes a wider range of problems. Signed-off-by: Øyvind Harboe 2010-01-08 Øyvind Harboe * : shutdown: more graceful shutdown Shutdown is not an error condition, do not return error from main. Signed-off-by: Øyvind Harboe 2010-01-10 David Brownell * : FreeBSD build fixes Based on notes from Tomek Cedro and Steve Franks . In the User's Guide, sort the list of operating systems reported through Tcl with $ocd_HOSTOS ... and include FreeBSD. Signed-off-by: David Brownell 2010-01-09 David Brownell * : jtag/tcl help/usage fixups The usual: expand several helptexts to be more correct and to use full sentences; make the usage messages use the same EBNF as the User's Guide; use function names for their addresses. Also add a comment about that odd jtag_command_handlers_to_move[] thing. Signed-off-by: David Brownell 2010-01-09 David Brownell * : jtag: presto, parport help/usage updates Presto: add doxygen file comment. Parport: note a couple gaps in layout config. Both: use the uniform EBNF for usage, bugfix helptexts, use function name as its address not "&name". Signed-off-by: David Brownell 2010-01-09 David Brownell * : parport (mostly) doc fixes The "parport_port" commands generally don't *require* a port_number; they're of the "apply any parameter, then print result" variety. Update the User's Guide accordingly. Some of those commands are intended to be write-once: parport_port, and parport_cable. Say so. Use proper EBNF for the parport_write_on_exit parameter. Parport address 0xc8b8 is evidently mutant. Say so in the "parport.cfg" file, to avoid breaking anyone with that mutant config. But update the User's Guide to include a sane example for the LP2 port. Finally document the "presto_serial" command. Signed-off-by: David Brownell 2010-01-09 David Brownell * : src/flash/nor: usage/help/doc updates Make "usage" messages use the same EBNF as the User's Guide; no angle brackets. Improve and correct various helptexts. Don't use "&function"; a function's name is its address. Remove a couple instances of pointless whitespace; shrink a few overlong lines; fix some bad indents. Add TODO list entry re full support for NAND/NOR bank names. Signed-off-by: David Brownell 2010-01-09 David Brownell * : src/server: usage/help/doc updates Make "usage" messages use the same EBNF as the User's Guide; no angle brackets. Improve and correct various helptexts. Specifically for the port commands, clarify that the number is optional, and omitting it causes the current number to be displayed. Don't use "&function"; a function's name is its address. Remove a couple instances of pointless whitespace; shrink a few overlong lines. Signed-off-by: David Brownell 2010-01-08 David Brownell * : PLD: usage/help updates Make "usage" messages use the same EBNF as the User's Guide; no angle brackets. Improve and correct various helptexts. Don't use "&function"; a function's name is its address. Remove a couple instances of pointless whitespace, shrink a few overlong lines. Signed-off-by: David Brownell 2010-01-08 David Brownell * : Doc/examples: clarify usage messages Update/bugfix the "hello" example; emphasize using EBNF syntax, matching the User's Guide. Correct the Texinfo style guide to say EBNF, not BNF. Signed-off-by: David Brownell 2010-01-08 David Brownell * : MFLASH: help/usage updates Make "usage" messages use the same EBNF as the User's Guide; no angle brackets. Improve and correct various helptexts. Don't use "&function"; a function's name is its address. Remove a couple instances of pointless whitespace. Signed-off-by: David Brownell 2010-01-08 David Brownell * : NOR: add FIXMEs for writing ones It can invalidate ECC codes, and in general is not guaranteed to work. (However on some chips it _appears_ to behave.) Just don't do it; don't write in those cases. Signed-off-by: David Brownell 2010-01-07 David Brownell * : ARM966: help/usage updates Usage syntax messages have the same EBNF as the User's Guide; there should be no angle brackets in either place. Fix the User's Guide to say where the magic CP15 bits are defined; and add comments in case someone provides mcr/mrc methods. Signed-off-by: David Brownell 2010-01-07 David Brownell * : ARM720: help/usage updates Deprecate the "pass an instruction opcode" flavor of cp15 access in favor of the "arm mcr ..." and "arm mrc ..." commands, which offer fewer ways to break things. Use the same EBNF syntax in the code as for the user's guide. Update User's Guide to say where to find those magic values (which table in the ARM920 TRM). Signed-off-by: David Brownell 2010-01-07 David Brownell * : ARM11: help/usage updates Usage syntax messages have the same EBNF as the User's Guide; there should be no angle brackets in either place. Uupdate some helptext to be more accurate. Fix the User's Guide in a few places to be more consistent (mostly to use brackets not parentheses) and to recognize that parameter may be entirely optional (in which case the command just displays output, and changes nothing). Also reference NXP, not Philips, for LPC chips. Don't use "&function"; functions are like arrays, their address is their name. Signed-off-by: David Brownell 2010-01-07 David Brownell * : ARMv7: help/usage updates Provide helptext which was sometimes missing; update some of it to be more accurate. Usage syntax messages have the same EBNF as the User's Guide; there should be no angle brackets in either place. Don't use "&function"; functions are like arrays, their address is their name. Shrink some overlong lines, remove some empties. Add a couple comments about things that should change: those extra TCK cycles for MEM-AP reads are in the wrong place (that might explain some problems we've seen); the DAP command tables should be shared, not copied. Signed-off-by: David Brownell 2010-01-07 David Brownell * : target misc: help/usage updates Provide helptext which was sometimes missing; update some of it to be more accurate. Usage syntax messages have the same EBNF as the User's Guide. Don't use "&function"; functions are like arrays, their address is their name. Shrink some overlong lines; remove some empties. Signed-off-by: David Brownell 2010-01-07 Spencer Oliver * : MIPS: change bulk_write_memory fallback msg to LOG_DEBUG Signed-off-by: Spencer Oliver 2010-01-06 Spencer Oliver * : MIPS: fastdata bulk write fallback If fastdata access fails, then fallback to default mips_m4k_write_memory Remove unnecessary fastdata loader verify check Signed-off-by: Spencer Oliver 2010-01-05 David Brownell * : don't require 'openocd.cfg' to start Starting the daemon with with just a bare "openocd" I saw: Can't find openocd.cfg That's not an error; don't treat it as if it were. There may be an error later -- like, "no interface set up" -- but let messages only report real errors, not fake ones. 2010-01-05 David Brownell * : ARM: add comments re DAP assumptions I think some of these assumptions are not well-founded. Related, that swjdp_transaction_endcheck() is a bit iffy. Signed-off-by: David Brownell 2009-12-21 Spencer Oliver * : PIC32: enable ram execution add reset-init script to allow ram execution from reset, this is required for ejtag fastdata access. Signed-off-by: Spencer Oliver 2009-12-17 Spencer Oliver * : parport: output port as hex rather than dec Signed-off-by: Spencer Oliver 2010-01-05 Øyvind Harboe * : gdb: fix regression in gdb_port command The gdb_port command can be invoked during normal execution to report the port used for gdb, whereas it was listed as CONFIG stage only, which caused an error when excuting it to return the reported error. Also in line with the grander goal of making more commands available during all "modes" (perhaps retiring config mode), there is no particular reason to limit gdb_port to the config stage. Regression was introduced in: b3bf1d12b2fdfba1c1cbee3e1afbfbb27cbd1a26 aka v0.4.0-rc1-32-gb3bf1d1 Signed-off-by: Øyvind Harboe 2010-01-04 David Brownell * : ARMv7-M: use AP_REG_* symbol Signed-off-by: David Brownell 2010-01-03 David Brownell * : JTAG/drivers: ft2232 docs Add doxyegen description for this driver. Correct the helptext (configures *or* displays based on #params), and usage (use the same BNF as the User's Guide). Remove superfluous #include Signed-off-by: David Brownell 2010-01-03 David Brownell * : JTAG: Amontec JTAG accelerater "rtck" is back The command processing conversion a while back lost the "rtck" enable/disable command; restore it. NOTE that having such a command is wrong; there's a standard way to enable adaptive clocking ("speed 0"). Signed-off-by: David Brownell 2010-01-03 David Brownell * : JTAG/drivers: amt_jtagaccel fixes + cleanup Build fixes: it failed abysmally with PPDEV enabled. Swapped a build-time error with a FIXME comment in the affected macros. Cleanup: remove "&" before function pointers, and excess indent, for the interface struct declaration. Signed-off-by: David Brownell 2010-01-02 David Brownell * : ARM: dap info fix + tweaks Fix: don't print the BASE address except if it's a MEM-AP; that's an unlikely error, but there's no point getting it wrong. Tweaks: comments, capitalization. Signed-off-by: David Brownell 2010-01-02 David Brownell * : ARM: ADIv5 symbol and comment cleanup Instead of magic numbers, use their AP_REG_* constants. Rename the ROM address symbol as BASE to match ARM's documentation. Comment various other symbols in the header; add some missing ones. Remove an unused struct. Add some doxygen for stuff including the DAP structure and initialization. Signed-off-by: David Brownell 2010-01-02 David Brownell * : streamline and document helptext mode displays Most commands are usable only at runtime; so don't bother saying that, it's noise. Moreover, tokens like EXEC are cryptic. Be more clear: highlight only the commands which may (also) be used during the config stage, thus matching the docs more closely. There are - Configuration commands (per documentation) - And also some commands that valid at *any* time. Update the docs to note that "help" now shows this mode info. This also highlighted a few mistakes in command configuration, mostly commands listed as "valid at any time" which shouldn't have been. This just fixes ones I noted when sanity testing. Signed-off-by: David Brownell 2010-01-01 Dean Glazeski * : Add the current command to the command information I wanted to make it so I can be ignorant of a commands invocation string, so I tried to use CMD_CURRENT (aka cmd->current) which is supposed to house a pointer to the current command.  It turns out that this wasn't being set. This patch adds the current command structure to the command invocation structure before sending it along to the command handler. Signed-off-by: David Brownell 2009-12-31 David Brownell * : User's Guide: warn about the forum Namely, that developers don't hang out; it's a users-only club. Signed-off-by: David Brownell 2009-12-31 Antonio Borneo * : ARM7_9: Fix segfaults Handlers for commands - arm7_9 semihosting - $_TARGETNAME arp_reset assert 1 didn't check if target has already been examined, and could segfault when using the NULL pointer "arm7_9->eice_cache". Signed-off-by: Antonio Borneo Signed-off-by: David Brownell 2009-12-31 Antonio Borneo * : ARM9TDMI: Fix segfault. The handler for "arm9tdmi vector_catch ..." did not check if target has already been examined. Without this fix it segfaults when using NULL pointer "arm7_9->eice_cache". Signed-off-by: Antonio Borneo Signed-off-by: David Brownell 2009-12-30 Øyvind Harboe * : zy1000: add zy1000_ prefix to uart command less polution of the general namespace(preventive action, no problems reported). Signed-off-by: Øyvind Harboe 2009-12-29 Øyvind Harboe * : zy1000: reconfigure FPGA upon reset instead of just the CPU Signed-off-by: Øyvind Harboe 2009-12-25 Øyvind Harboe * : zy1000: less warnings use inline for static functions in header files to avoid warnings about fn not being used. Signed-off-by: Øyvind Harboe 2009-12-28 Piotr Esden-Tempski * : Added floss-jtag interface config file. 2009-12-28 Freddie Chopin * : stm32x commands get "usage" Add .usage fields to stm32x command_registration, so that "help stm32x" shows required parameters. Signed-off-by: Freddie Chopin Signed-off-by: David Brownell 2009-12-28 Piotr Esden-Tempski * : NOR: last_addr also needs correction when checking alignment Otherwise the new alignment checking algorithm thinks that the address is not aligned, because it is way beyond the last sector. Signed-off-by: David Brownell 2009-12-27 David Brownell * : NOR: make flash_write_unlock() pad to sector end Resolve a regression when using newish automagic "write_image" modes, by always padding to the end of affected sectors. Also document some issues associated with those automagic options, in the User's Guide and also some related code comments. We might need similar padding at the *beginning* of some sectors, but this is a minimalist fix for the problems which have currently been reported (plus doc updates). Signed-off-by: David Brownell 2009-12-09 Dean Glazeski * : Olimex SAM9-L9260 board configuration update. This updates the board configuration for the SAM9-L9260 board with the configuration for the on-board NAND and dataflash. Included are commands for configuring the AT91SAM9 NAND flash driver. Signed-off-by: David Brownell 2009-12-26 David Brownell * : User's Guide: update GDB info Advise leaving background polling enabled; fix broken URL; add simple program startup example. 2009-12-26 David Brownell * : NOR: Allocate the right amount of memory Switch to calloc() to simplify review and initialization. 2009-12-26 Antonio Borneo * : PARPORT code cleanup: Align elements in array. Signed-off-by: Antonio Borneo 2009-12-21 David Brownell * : v0.4.0-rc1 milestone Winter Solstice, 2009. Signed-off-by: David Brownell 2009-12-21 David Brownell * : Packaging fix Don't forget to list target/arm_opcodes.h Signed-off-by: David Brownell 2009-12-20 David Brownell * : Cortex-M3: cleanup Misc: - Introduce some "struct reg" temporaries, for clarity - Shorten lines - Add some missing whitespace - Clean up comments - Add notes about some fault handling issues - Most of these errata workarounds are for *OLD* chip revisions Signed-off-by: David Brownell 2009-12-21 Antonio Borneo * : arm7_9: Support VINITHI signal Command "reset halt" checks if PC properly resets, issueing warning: "PC was not 0. Does this target need srst_pulls_trst?". Checking PC against 0 is not always correct. Removed PC value check, as suggested by Øyvind Harboe. Signed-off-by: Antonio Borneo Signed-off-by: U-PROPRIET-28D9DF\PROPRIETAIRE 2009-12-09 Dean Glazeski * : AT91SAM9 NAND flash driver. This creates the TCL interface for configuring an AT91SAM9 NAND flash controller and implements the necessary functions to correctly work with a NAND flash device connected to the chip. This includes updates to the driver list and the Makefile.am to support building the driver and also houses the documentation update in openocd.texi. Signed-off-by: David Brownell 2009-12-19 David Brownell * : ETM: add "etm trigger_debug" command In conjunction with manual register setup, this lets the ETM trigger cause entry to debug state. It should make it easier to test and bugfix the ETM code, by enabling non-trace usage and isolating bugs specific to thef ETM support. (One current issue being that trace data collection using the ETB doesn't yet behave.) For example, many ARM9 cores with an ETM should be able to implement four more (simple) breakpoints and two more (simple) watchpoints than the EmbeddedICE supports. Or, they should be able to support complex breakpoints, incorporating ETM sequencer, counters, and/or subroutine entry/exit criteria int criteria used to trigger debug entry. Signed-off-by: David Brownell 2009-12-19 David Brownell * : ETM: start cleaning up ETM_CTRL bit handling Provide better comments for the ETM_CTRL bits; use the correct bit for half/full clock mode; and define a few more of the bits available from the earliest ETM versions. The new bit defintions use ETM_CTRL_* names to match their register (instead of ETM_PORT_* or ETMV1_*). For clarity, and better matching to docs, they are defined with bitshifting not pre-computed masks. Stop abusing typdefs for ETM_CTRL values; such values are not limited to the enumerated set of individual bit values. Rename etm->portmode to etm->control ... and start morphing it into a single generic shadow of ETM_CTRL. Eventually etm->tracemode should vanish, so we can just write etm->control to ETM_CTRL. Restore an "if" that somehow got dropped. Signed-off-by: David Brownell 2009-12-19 David Brownell * : NEWS: mention libftdi 0.17 2009-12-18 David Brownell * : Subject: flash fill[bwh] should use bulk i/o It's currently allocating a big buffer but writing it out in units of sizeof(host's pointer) ... sub-optimal. Plus fix a couple minor coding style goofs. Signed-off-by: David Brownell 2009-12-18 David Brownell * : XScale: better {read,write}_phys() We can actually do the right thing if the MMU is off; save the error message for the phys-but-MMU-enabled path, which is what isn't yet supported. Signed-off-by: David Brownell 2009-12-18 David Brownell * : stellaris: update bulk flash writes Try to right-size the SRAM buffers, by not: - using them for very small writes - giving up when a large buffer isn't available - allocating buffers much larger than their data Also don't: - bother loading the code unless we allocate the writebuffer too - be so verbose with messaging: * be more concise * reduce importance (e.g. DEBUG not WARNING) * remove duplication The minimum buffer size is something of a guess. It's eight times smaller than before, almost the same size as the code being downloaded. It probably deserves some tuning. Also, note an erratum affecting flash protection on some chips; and narrow many over-wide lines affected by the above changes. Signed-off-by: David Brownell 2009-12-17 Dean Glazeski * : NAND read data page refactor. Added a new function to encapsulate reading a page of data from a NAND device using either the read_block_data function of a NAND controller or to use direct reading of data from the NAND device. This also adds some performance enhancements and uses the read_data function if the read_block_data function fails safely (because it can't allocate a buffer in the working area). [dbrownell@users.sourceforge.net: fix fault handling, whitespace] Signed-off-by: David Brownell 2009-12-16 David Brownell * : Remove duplicate Olimex-"tiny" interface We already have tcl/interface/olimex-jtag-tiny.cfg and don't need a clone of it. 2009-12-16 David Brownell * : stellaris: comments Someday revisit various issues: Tempest parts support writing more than one word at a time; for some target firmware it might be necessary to save and restore flash IRQ configuration. (The safest policy is likely to always reset after flash updates.) Plus swap some undesirable TAB characters with SPACE. Signed-off-by: David Brownell 2009-12-16 David Brownell * : stellaris: remove needless code No point in reading and discarding a status value when fetching part description data. Or having that needless "#if 0" code. Signed-off-by: David Brownell 2009-12-16 David Brownell * : NOR: bugfix "flash fill[bwh] ..." helptext These commands don't have a "bank" parameter. Signed-off-by: David Brownell 2009-12-15 Øyvind Harboe * : ecos: crisper implementation of timeval_ms() A crisper/faster implementation under eCos that makes profiling a tad easier. Signed-off-by: Øyvind Harboe 2009-12-15 David Brownell * : more tcl/{board,target} cleanup Remove more remnants of the old "jtag_device" syntax. Don't [format "%s.cpu" $_CHIPNAME] ... it's needless complexity. Remove various non-supported "-variant" target options; they're not needed often at all. Flag some of the board files as needing to have and use target files for the TAP and target declarations. Signed-off-by: David Brownell 2009-12-14 David Brownell * : XScale: use all-ones for BYPASS, not five-ones PXA3xx has more than five bits in IR. Signed-off-by: David Brownell 2009-12-15 Øyvind Harboe * : zy1000: keep up with command.h cleanup Signed-off-by: Øyvind Harboe 2009-12-15 Øyvind Harboe * : imx31: move srst delay into config script reset init/run now works again. Signed-off-by: Øyvind Harboe 2009-12-14 David Brownell * : ARM: disassemble STM correctly There is no "STMMIDA" instruction. There is however "STMDAMI". Signed-off-by: David Brownell 2009-12-14 Yegor Yefremov * : Common target file for Stellaris chips Common target.cfg file for LM3S CPU family [dbrownell@users.sourceforge.net: rename, generalize more] Signed-off-by: Yegor Yefremov Signed-off-by: David Brownell 2009-12-14 David Brownell * : jtag: add '-ignore-version' option Add a "-ignore-version" to "jtag newtap" which makes the IDCODE comparison logic optionally ignore version differences. Update the "scan_chain" command to illustrate this by showing the "*" character instead of the (ignored) version nibble. Signed-off-by: David Brownell 2009-12-13 David Brownell * : target: further shrink Jim-awareness Don't include from target.h ... not everything which touches targets needs to be able to talk to Jim. Plus, most files include this header by another path. Also, switch the affected files to use the classic sequence for #included files: all first, then the "local_headers.h". This helps prevent growth of problematic layering, by minimizing entanglement. Signed-off-by: David Brownell 2009-12-11 David Brownell * : ARM11: avoid pointless status returns For some routines that only returned ERROR_OK and where the caller never checked ... don't bother. Remove some noise, and bugfix some comments. Signed-off-by: David Brownell 2009-12-11 Zachary T Welch * : fix 'write_image' usage information The 'flash write_image' command erroneously listed the bank number, when it actually uses target addresses to do that lookup for the user. 2009-12-11 David Brownell * : ARM: disassembly fixes for LDC/STC/MRRC/MCRR Properly detect all of these, including the "2" variants; and bugfix parameter display for LDC and STC. Signed-off-by: David Brownell 2009-12-10 Spencer Oliver * : server: add server_preinit which is called before config file is parsed. This fixes the issue under native win32 of the socket interface not being enabled (via WSAStartup) before init is called from a script. Signed-off-by: Spencer Oliver 2009-12-10 Øyvind Harboe * : gdb_server: use more local variables in inner loop of fetching packetstiny refactoring to allow optimisation of inner loops Some profiling information for arm7 16MHz GDB load operation shows gdb_get_packet_inner() near the very top. Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls Ts/call Ts/call name 52.91 2.27 2.27 embeddedice_write_dcc 11.89 2.78 0.51 gdb_get_packet_inner 8.86 3.16 0.38 memcpy 3.26 3.30 0.14 idle_thread_main(unsigned int) 3.03 3.43 0.13 cyg_in_cksum Signed-off-by: Øyvind Harboe 2009-12-10 Øyvind Harboe * : optimisation: tiny optimisation for embedded ice use two shift operations instead of three to set embedded ice register. Signed-off-by: Øyvind Harboe 2009-12-10 David Brownell * : anotyer cygwin compile fix Signed-off-by: David Brownell 2009-12-09 David Brownell * : ARM: update arm_opcodes.h copyright I neglected to copy Magnus' copyright when I moved several declarations from the ARMv7-M header. Signed-off-by: David Brownell 2009-12-09 David Brownell * : Comment and doxygen fixes Signed-off-by: David Brownell 2009-12-08 Rafael Campos Las Heras * : Fix compilation error with gcc 4.4.1 Signed-off-by: Rafael Campos Las Heras 2009-12-08 David Brownell * : target: remove needless "extern"s Most of these happened to be in the target.h file. Some of those are associated with symbols that could be removed at some point ... e.g. NVP_ASSERT/true and its sibling NVP_DEASSERT/false. Signed-off-by: David Brownell 2009-12-08 David Brownell * : ARM: cygwin complile fixes It's as if despite integers being 32-bits, GCC refuses to convert a "uint32_t" to one of them. Signed-off-by: David Brownell 2009-12-04 Øyvind Harboe * : minidriver: fix inline capability of minidriver Low latency low CPU processing power systems(embedded) will benefit greatly from being able to inline certain jtag_add_xxx() fn's. The trick is that this has to be done in such a way as to allow implementing an OpenOCD API with a shared library(eventually) on a PC hosted OpenOCD. Signed-off-by: Øyvind Harboe 2009-12-05 Øyvind Harboe * : build: add build/src to include path This allows including generated include files. Signed-off-by: Øyvind Harboe 2009-12-07 David Brownell * : ARM: list number of HW breakpoints/watchpoints When starting up, say how many hardware breakpoints and watchpoints are available on various targets. This makes it easier to tell GDB how many of those resources exist. Its remote protocol currently has no way to ask OpenOCD for that information, so it must configured by hand (or not at all). Update the docs to mention this; remove obsolete "don't do this" info. Presentation of GDB setup information is still a mess, but at least it calls out the three components that need setup. Signed-off-by: David Brownell 2009-12-07 David Brownell * : ARM: don't clone arm_arch_state() code Have various ARM cores delegate to arm_arch_state() to display basic information, instead of duplicating that logic. This shrinks the code, makes them all report when semihosting is active, and highlights which data are specific to this core. (Like ARM720 not having separate instruction and data caches.) Signed-off-by: David Brownell 2009-12-07 David Brownell * : ARM: use not armv4_5.h Move most declarations in to and update users. What's left in the older file is stuff that I think should be removed ... the old register cache access stuff, which makes it awkward to support microcontroller profile (Cortex-M) cores. The armv4_5_run_algorithm() declaration was moved too, even though it's not yet as generic as it probably ought to be. Signed-off-by: David Brownell 2009-12-07 David Brownell * : ARM: move opcode macros to Move the ARM opcode macros from , and a few Thumb2 ones from , to more appropriate homes in a new file. Removed duplicate opcodes from that v7m/Thumb2 set. Protected a few macro argument references by adding missing parentheses. Tightening up some of the line lengths turned up a curious artifact: the macros for the Thumb opcodes are all 32 bits wide, not 16 bits. There's currently no explanation for why it's done that way... Signed-off-by: David Brownell 2009-12-07 David Brownell * : ARM: disassemble two more v6+ instructions The SRS and RFE instructions speed exception entry/exit by making it easy to save and restore PC and SPSR. This handles both ARM and Thumb2 encodings. Fix minor PLD goofage; that "should never reach this point" can't happen, so remove it. Signed-off-by: David Brownell 2009-12-07 David Brownell * : OMAP2420: define reset-assert event Behave like OMAP3530: force global software reset. Given the patch to teach ARM11 how to use these events, and use VCR to catch the reset vector, this works better than either the current reset logic or than using SRST. Signed-off-by: David Brownell 2009-12-06 Zachary T Welch * : add 'flash list', rewrite 'flash banks' Rename the existing 'flash banks' implementation as 'flash list', and replace the broken 'flash_banks' TCL wrapper with a new command handler. Adds documentation for the new 'flash list' command in the user guide. 2009-12-06 Zachary T Welch * : fix NOR flash regression When factoring the bank setup command into flash_bank_add(), I forgot to include a call to the new helper. 2009-12-05 Mathias Kuester * : NOR: add 29LV400BC flash device Signed-off-by: David Brownell 2009-12-05 Nicolas Pitre * : ARM semihosting: work with both low and high vectors Signed-off-by: Nicolas Pitre Signed-off-by: David Brownell 2009-12-04 Zachary T Welch * : move remaining nand helper files Move remaining NAND implementation files into src/flash/nand/. 2009-12-04 Zachary T Welch * : split NAND driver handling into nand/driver.[ch] This work parallels the NOR directory, encapsulating the NAND drivers into a separate file. This takes an extra step by encapsulating the type of data structure used to manage the drivers, allowing it to be changed from an array to a dynamic list in the future. 2009-12-04 David Brownell * : ARM: rename armv4_5_build_reg_cache() as arm_*() Signed-off-by: David Brownell 2009-12-04 David Brownell * : ARM: misc generic cleanup Remove an undesirable use of the CPSR symbol ... it needs to vanish. Flag mode-to-number stuff as obsolete; say why ... should also vanish. Get rid of no-longer-used mode and state typedefs. Comment a few of the implicit ties to "classic ARM". Signed-off-by: David Brownell 2009-12-04 David Brownell * : ARM: switch target_to_armv4_5() to target_to_arm() And remove that old symbol. Signed-off-by: David Brownell 2009-12-04 David Brownell * : ARM: rename armv4_5_mode_* AS arm_mode_* Signed-off-by: David Brownell 2009-12-04 David Brownell * : ARM: rename ARMV4_5_STATE_* as ARM_STATE_* Signed-off-by: David Brownell 2009-12-04 David Brownell * : ARM11: basic watchpoint support Use the DPM watchpoint support; remove old incomplete stubs. Signed-off-by: David Brownell 2009-12-04 Zachary T Welch * : reorder build order of src directory Descend into the library modules in order, from bottom-to-top. 2009-12-04 Zachary T Welch * : split flash.h into into flash/nor/*.h Move the bulk of the flash.h file into flash/nor/core.h, leaving an empty husk that will be removed in the next patch. The NOR driver structure is an implementation detail, so move it into its own private header file along with helper declaration for finding them by name. 2009-12-04 Zachary T Welch * : split NOR and NAND flash headers Moves common flash errors to to decouple these two mostly unrelated trees of code. 2009-12-04 Zachary T Welch * : add flash/nor/drivers.c Encapsulates access to the flash_drivers array, providing a base of operations for future dynamic driver module loading features. 2009-12-04 David Brownell * : ARM: semihosting entry cleanup Clean up arm_semihosting() entry a bit, comment some issues and just which SVC opcodes are getting intercepted. Microcontroller profile cores will need a new entry, since they use BKPT instead (and don't have either SVC mode or an SPSR register). Signed-off-by: David Brownell 2009-12-04 David Brownell * : User's Guide: more semihosting info List it in the concept index, in the section about target software changes a project might want to consider, and in the section about debug messaging. Signed-off-by: David Brownell 2009-12-03 Zachary T Welch * : add flash/nor/core.[ch] The newly moved flash TCL routines access the internals of the module too much. Fix the layering issues by adding new core NOR flash APIs: : - flash_driver_find_by_name() - self-descriptive : - flash_bank_add() - encapsulates adding banks to bank list - flash_bank_list() - encapsulates retreiving bank list This allows the externs in flash/nor/imp.h to be removed, and these mechanisms may now be re-used by other flash module code. 2009-12-03 Zachary T Welch * : separate Jim from jtag/core.c After previous efforts, only one Jim routine remained in jtag/core.c, and moving it to jtag/tcl.c painlessly finishes separating these layers. The headers need separating, but the implementation is clean. 2009-12-03 Zachary T Welch * : check top-level command registrations When calling module_register_commands, the return value needs to be checked for failures. Instead of duplicating code, use an array of function pointers to the identical registration functions to iterate over during startup. 2009-12-04 David Brownell * : target: cygwin build fixes Signed-off-by: David Brownell 2009-12-03 Nicolas Pitre * : basic ARM semihosting support Semihosting enables code running on an ARM target to use the I/O facilities on the host computer. The target application must be linked against a library that forwards operation requests by using the SVC instruction that is trapped at the Supervisor Call vector by the debugger. The "hosted" library version provided with CodeSourcery's Sourcery G++ Lite for ARM EABI is one example. This is currently available for ARM9 processors, but any ARM variant should be able to support this with little additional work. Tested using binaries compiled with Sourcery G++ Lite 2009q1-161 and ARM RVCT 3.0. [dbrownell@users.sourceforge.net: doc tweaks, NEWS] Signed-off-by: Nicolas Pitre Signed-off-by: David Brownell 2009-11-16 Dean Glazeski * : Make ARM NAND I/O operations aware of last op Updates the ARM NAND I/O code to look at and update the op field of arm_nand_data to reflect the last operation performed. It uses this field to copy the correct code to the target in the case where the struct is used for reads and writes. Signed-off-by: David Brownell 2009-11-20 Dean Glazeski * : NAND page command refactoring. Created a new function that handles sending a command and the address information for pages to a NAND device. [dbrownell@users.sourceforge.net: tweaked line lengths, name 'oob_only'] Signed-off-by: David Brownell 2009-12-03 David Brownell * : ARM DPM: share debug reason logic No point in both ARM11 and Cortex-A8 having private copies of the logic sorting out e.g. DBG_REASON_WATCHPOINT. Add and use a shared routine for this ... there's actually a bunch more debug entry logic that could be shared, this is just a start on that. Note that this routine fixes a bug observed in the ARM11 code, where some abort mode quirks were displayed as being an unknown debug reason; and also silences needless ARM11 chatter. Likewise with private copies of DSCR ... add one to the DPM struct. Save it as part of setting DBG_REASON_* so later patches can switch over to using that copy. Signed-off-by: David Brownell 2009-12-03 David Brownell * : ARM DPM: make DSCR bit defs sharable Move the symbols for these bits from "armv7a.h" to "arm_dpm.h", where they can be seen and used not just by Cortex-A but also by the ARM11 (armv6) code. Change them from bit numbers to bit masks ... this matches the usage in ARM11 code, and also makes it easier to read. Rename DSCR_EXT_INT_EN as DSCR_ITR_EN to match the docs; it's enabling ITR functionality, not external interrupts, so this changes the name to be less misleading. (There *IS* a bit affecting interrupts, and this isn't it.) Signed-off-by: David Brownell 2009-12-03 Zachary T Welch * : fix double 'init' regression To prevent regression in the behavior of 'init', we allow it to run in any mode. If provided with -c init and with -c noinit, then the second init at startup caused a spurious mode failure. Let 'init' handle it. 2009-12-03 Øyvind Harboe * : zy1000: include files have moved about now compiles again after include files were moved about to reduce -I usage and stop using quotes but rather angle brackets for include files. Signed-off-by: Øyvind Harboe 2009-12-03 Zachary T Welch * : change #include "../hello.h" to "hello.h" Before we can -I the top-level src/ directory alone, references to "hello.h" must be updated. This is an internal header, so it does not need angle brackets. 2009-12-03 Zachary T Welch * : change #include "svf.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "svf.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "telnet_server.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "telnet_server.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "httpd.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "httpd.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "s3c24xx_regs.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "s3c24xx_regs.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "nand.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "nand.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "flash.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "flash.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "trace.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "trace.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "target.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "target.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "mips_ejtag.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "mips_ejtag.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "mips32.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "mips32.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "etm.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "etm.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "breakpoints.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "breakpoints.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "armv7m.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "armv7m.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "armv4_5_mmu.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "armv4_5_mmu.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "armv4_5.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "armv4_5.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "arm_dpm.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "arm_dpm.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "arm9tdmi.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "arm9tdmi.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "arm7tdmi.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "arm7tdmi.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "arm11.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "arm11.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "minidriver.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "minidriver.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "interface.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "interface.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "types.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "types.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "replacements.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "replacements.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "log.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "log.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "ioutil.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "ioutil.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "configuration.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "configuration.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-12-03 Zachary T Welch * : change #include "binarybuffer.h" to Changes from the flat namespace to heirarchical one. Instead of writing: #include "binarybuffer.h" the following form should be used. #include The exception is from .c files in the same directory. 2009-11-28 Zachary T Welch * : change autoconf #include in configure.in Updates "system.h" and "replacements.h" with and respectively. 2009-12-03 Nicolas Pitre * : feroceon.c should be part of ARM7_9_SRC The Feroceon and Dragonite cores are similar to the ARM926 and ARM966 cores respectively. Signed-off-by: Nicolas Pitre 2009-12-02 Zachary T Welch * : move jtag drivers to src/jtag/drivers Moves JTAG interface drivers to src/jtag/drivers/, Adds src/jtag/drivers/Makefile.am. Builds libocdjtagdrivers.la. Flattens the rlink driver files into the drivers/ directory, adding the 'rlink_' prefix or '.rlink' suffix as appropriate. 2009-12-01 Zachary T Welch * : move nand drivers to src/flash/nand/ Moves NAND drivers to src/flash/nand/. Adds src/flash/nand/Makefile.am. Builds libocdflashnand.la. 2009-12-02 David Brownell * : ARM11: store a clean copy of DSCR Just store a clean copy of DSCR in the per-CPU struct, so we trivially pass a pointer to a recent copy. This replaces the previous "last_dscr" and cleans up most of the related calling conventions ... but it doesn't remove the other DSCR copy. 2009-12-02 David Brownell * : ARM11: don't expose RDTR Don't expose the RDTR register through the register cache any more. If anyone wants Tcl scripts to be able to use DCC based communication with app code in the target, this wouldn't do it. Bugfix: don't trust the Tcl-accessible version of DSCR to flag whether RDTR needs to be restored when resuming. 2009-12-02 David Brownell * : ARM11: remove arm11->target Don't need/want arm11->target; we have arm11->arm.target instead. Also remove some unused watchpoint stuff. 2009-12-02 Zachary T Welch * : fix configure problem when building w/o USB If building OpenOCD without any USB drivers, a warning would appear because $build_usb is never set to a sane default. This fixes it. 2009-12-02 Zachary T Welch * : fix 'target init' command registration The command handler registration was put at the top level, rather than as a subcommand. Move it to where it belongs. 2009-12-01 Zachary T Welch * : remove #if BUILD_HTTPD Add httpd_stubs.c to provide no-op implementations of httpd_start() and httpd_stop(). Allows these routines to be called unconditionally and ensures the libocdserver ABI remains unchanged regardless of whether this feature was built-in or not. Prints a DEBUG message when the stub implementation is included. 2009-12-01 Zachary T Welch * : remove #if logic for openocd_sleep_*lude Adds server_stubs.c to hold these routines, using automake logic to ensure it gets included under the right conditions. 2009-11-30 Zachary T Welch * : target: factor target_init() into pieces Moves body of target initialization loop into a helper function, cleaning up its visual flow in the process. 2009-11-30 Zachary T Welch * : flash: factor init to 'flash init' Split flash initialiation into 'flash init', called from 'init'. 2009-11-30 Zachary T Welch * : nand: factor init to 'nand init' Split NAND initialization into 'nand init', which gets called from the main 'init' command. 2009-12-02 David Brownell * : ARMv7a/Cortex-A8: report watchpoint trigger insn Save and display the address of the instruction which triggered the watchpoint. Because of pipelining, that's well behind the PC value when debug entry completes. (Example in a subroutine that had been returned from...) Remove unused A8 stuff, mostly watchpoint hooks from the header. Signed-off-by: David Brownell 2009-12-02 Øyvind Harboe * : zy1000: keep up with startup refactoring work. keep up with server_init() introduction. Signed-off-by: Øyvind Harboe 2009-12-01 David Brownell * : ARM: core DPM support for watchpoints This is a NOP unless the underlying core exposes two new methods, and neither of the two cores using this (ARM11xx, Cortex-A8) do so yet. This patch only updates those cores so they pass a flag saying whether or not to update breakpoint and watchpoint status before resuming; and removing some now-needless anti-segfault code from ARM11. Cortex-A8 didn't have that code ... yes, it segfaulted when setting watchpoints. NOTE: this uses a slightly different strategy for setting/clearing breakpoints than the ARM7/ARM9/etc code uses. It leaves them alone unless it's *got* to change something, to speed halt/resume cycles (including single stepping). ALSO NOTE: this under-delivers for Cortex-A8, where regions with size up to 2 GBytes can be watched ... it handles watchpoints which ARM11 can also handle (size 1/2/4 bytes). Should get fixed later. Signed-off-by: David Brownell 2009-12-01 David Brownell * : Tcl and doc: update to match new 'arm mcr ...' etc Make them match the C code. Signed-off-by: David Brownell 2009-12-01 Øyvind Harboe * : zy1000: keep up with latest changes to command handling Keep up with Jim Tcl interpreter creation cleanup. Signed-off-by: Øyvind Harboe 2009-12-01 David Brownell * : ARM11: remove previous mcr()/mrc() methods We don't need this code, now that the DPM code handles it. Signed-off-by: David Brownell 2009-12-01 David Brownell * : ARM: implement mrc()/mcr() as DPM ops Instead of having separate ARM11 and Cortex-A8 implementations of this code, have one shared implementation which just builds on the existing "run instruction via R0" support. This enables followup patches to remove that now-unused code from those two drivers. (Patches to move the "mrc" and "mcr" code into "struct arm" are due too ... MIPS and other cores do not support those ARM-specific concepts.) Signed-off-by: David Brownell 2009-12-01 David Brownell * : ARMv7-A: stop using CP15 ops The ARMv7-A code uses read_cp15() to access fault registers. Instead, use DPM operations directly, passing in the relevant MRC instructions. This eliminates per-operation overhead (though it'll be hard to observe, this is uncommon) and helps eliminate read_cp15(). Signed-off-by: David Brownell 2009-11-30 Øyvind Harboe * : main: invoke jtag_interface_quit() explicitly There is no particular reason to invoke jtag_interface_quit() on the atexit() handler, it just makes the code more obtuse and stops other legitimate usage of atexit(). Signed-off-by: Øyvind Harboe 2009-11-30 David Brownell * : XScale: restore_context() cleanup Clean up two aspects to this routine: bad naming, since it doesn't restore the context, just the banked registers; and excess indentation for the bulk of the code. Also make some of its call sites stash the function's return code; someday they should use it for error checking. Signed-off-by: David Brownell 2009-11-29 Zachary T Welch * : remove interp global variable! Finish removing references to the 'interp' global variable from the command module, encapsulating all reference via command_context. Eliminates use of the global entirely, so it can be removed. Hurrah! 2009-11-29 Zachary T Welch * : do not extern 'interp' from command.c Adds 'interp' field to command_context, chasing the few remaining references to the global variable outside of the command module. 2009-11-29 Zachary T Welch * : jtag: avoid using interp global variable Adds 'interp' field to jtag_tap_event_action structure to avoid using the global variable of same name. 2009-11-29 Zachary T Welch * : make syntax errors respond with 'usage' The 'help' text will become more verbose, so its entire text will be far more than desired when you only borked your syntax. The usage still allows the commands to be looked up for more help. 2009-11-29 Zachary T Welch * : improve command_done() API and docs command_done() does not need to return an error, but it needed Doxygen comment. Provide some for copy_command_context as well. Note: this audit revealed some potential bugs with the command context implementation. There was a reason that commands were added at the end of the list. Shallow copying of command_context means that the list is shared between them. And commands added at the top-level before the pre-existing commands will not be available in the shared context as they were before. Yikes! Fortunately, this does not seem to occur in general use, as 'add_help_text' gets registered in startup.tcl and claims the first slot in my own test cases. Thus, it seems that we have been masking the issue for now, but it shows the need for further architectural improvement in the core command module. 2009-11-29 Zachary T Welch * : allow deferal of init Adds 'noinit' command to prevent OpenOCD from running 'init' at the end up startup, allowing it to be given from telnet or TCL. This provides the old behavior by default, and users can add this command to their scripts to get the new behavior. 2009-11-28 Zachary T Welch * : improve gdb_init() sequence Rework gdb_init to create flexible APIs (gdb_target_add_{one,all}) and static helper (gdb_target_start) for starting GDB services. Eliminates duplicated code and provides general mechanisms for adding GDB services. The 'init' command is updated to call the new API, and later patches can decouple its policy of adding all targets therein. Provides the new capability to use both piped and TCP servers when multiple targets are defined. The first target fills the pipe, and others will be started on TCP ports (unless disabled, i.e. gdb_port=0). 2009-11-29 David Brownell * : XScale: clean up full_context() (#2) Streamline the loop by continuing as soon as we know there's no work to be done; this lets us un-indent almost everything. Signed-off-by: David Brownell 2009-11-29 David Brownell * : XScale: debug entry uses new register mapping Use the new mapping interfaces in the debug entry path. SPSR and the banked registers now have smaller and faster accessors ... use them. Signed-off-by: David Brownell 2009-11-29 Marek Vasut * : XScale: initial PXA3xx support [dbrownell@users.sourceforge.net: user's guide; variant param is optional] Signed-off-by: David Brownell 2009-11-28 David Brownell * : bugfix: 'init' changes state, not main() Code other than main() may invoke "init". When it does so, customized handlers may need to run ... so make sure the command context state is updated before they do so. Signed-off-by: David Brownell 2009-11-28 David Brownell * : Cortex-M3: don't chain "struct arm" commands Those commands presume support for the "classic" set of CPU modes (FIQ, supervisor, IRQ, etc) ... which aren't supported by the ARMv7-M or ARMv6-M architectures. They also presume a "struct arm" base type, which this code doesn't use. We haven't cleaned up the register handling enough to be able to share any of those "base" methods. Signed-off-by: David Brownell 2009-11-25 Zachary T Welch * : add more stub handlers to testee target Prevent everything from crashing when exercising various commands. 2009-11-25 Zachary T Welch * : split jim_target into multiple handlers The 'target' command group was implemented using its own command dispatching, which can be eliminated by using the new chained command registration mechanism. This patch splits the jim_target() function into individual handlers, which makes them to be visible to the help and usage commands. These one-trick handlers are much easier to understand. 2009-11-26 Zachary T Welch * : improve jtag_tap_configure Splits bulk of the jtag_tap_configure into jtag_tap_configure_event, removing three or four levels of indentation in the process. The resulting code was stylistically improved in other ways, but it should be functionally identical. 2009-11-26 Zachary T Welch * : begin moving JTAG jim handlers/helpers Moves the tertiary jim handlers and required static helpers to the top of tcl.c, defining them in a new registration array that is chained in both the top-level context and under the jtag command. The top-level commands can be removed at some point in the future to reduce clutter. 2009-11-28 Zachary T Welch * : remove redundant 'rm' command handler Two 'rm' commands were implemented and registered. This removes the version that would have never been called prior to refactoring the command registration. 2009-11-28 Zachary T Welch * : include mode information in help text. Extends the help output to list the valid modes for each commands. Fixes a memory leak of the returned command_name() string. 2009-11-27 Zachary T Welch * : add command private data setter/accessor Presently, commands registration taks a static handler data pointer. This patch adds support for commands that require a dynamic pointer, such as those registered in a dynamic context (e.g. subcommands for a user-created 'foo.cpu' command). The command_set_handler_data will update a command (group) to use a new context pointer, while the CMD_DATA macro allows command handlers to access the value. Jim handlers should find this value in interp->cmdPrivData. 2009-11-27 Zachary T Welch * : remove unknown handler Updates command registration to provide top-level handlers for all commands, rather than falling back onto the 'unknown' command. Instead, that same handler is registered for placeholders, providing the same functionality under the root verb command name instead. This permits users to implement their own 'unknown' function, and it resolves some mind-bending breakage related to function object lookup while recursing. Changes 'ocd_bounce' to call 'ocd_command' and 'ocd_help' from the wrapper directly, rather than bouncing through their wrappers. This prevents endless recursion caused by the above changes, whereby the 'command' wrapper's type check would blow the stack to hell and gone. 2009-11-27 Zachary T Welch * : add 'command type' introspective handler Adds the 'command' group handler, with the 'type' command producing a string that tells whether the given command is 'native' (for Jim-based command handlers), 'simple' (for simple built-in commands), 'group' for command group placeholders, and 'unknown' if not found in the command registration tables (e.g. core built-ins functions). 2009-11-28 David Brownell * : ARM11: fix dbgtap JTAG_DEBUG There is no DEBUG() macro; don't call one! Always at least *parse* debug code, to help prevent such errors. Signed-off-by: David Brownell 2009-11-28 David Brownell * : target: remove unused TARGET_EVENT_OLD_* symbols Just two *_OLD_* symbols left... Signed-off-by: David Brownell 2009-11-27 David Brownell * : omap3530.cfg: use new "reset-assert" event Replaces previous "reset-assert-pre" workaround. Signed-off-by: David Brownell 2009-11-27 David Brownell * : target: groundwork for "reset-assert" event This defines a "reset-assert" event and a supporting utility routine, and documents both how targets should implement it and how config scripts should use it. Core-specific updates are needed to make this work. Signed-off-by: David Brownell 2009-11-27 Zachary T Welch * : fix regression causing duplicated output The command refactoring caused subcommand handlers to produce duplicate output when run. The problem was introduced by failing to ensure all such invocations went through a top-level "catcher" script, prefixing the command name with the 'ocd_' prefix and consuming its results. The fix is to ensure such a top-level "catcher" script gets created for each top-level command, regardless of whether it has a handler. Indeed, this patch removes all command registrations for sub-commands, which would not have worked in the new registration scheme anyway. For now, dispatch of subcommands continues to be handled by the new 'unknown' command handler, which gets fixed here to strip the 'ocd_' prefix if searching for the top-level command name fails initially. Some Jim commands may be registered with this prefix, and that situation seems to require the current fallback approach. Otherwise, that prefix could be stripped unconditionally and the logic made a little simpler. The same problem must be handled by the 'help' command handler too, so its lookup process works as intended. Overall, the command dispatching remains more complicated than desired, but this patch fixes the immediate regressions. 2009-11-27 Zachary T Welch * : update minidummy interface driver command handling Changes the interface definition field reference from register_commands to commands, which allows the module to compile. 2009-11-27 Øyvind Harboe * : zy1000: keep up with changes to log_init() fn's and return value for log_init() changed to void. Signed-off-by: Øyvind Harboe 2009-11-16 Dean Glazeski * : ARM NAND I/O header documentation update. Fixed the header file to properly specify the doxygen documentation for the items defined in it. Signed-off-by: David Brownell 2009-11-16 Dean Glazeski * : ARM NAND I/O refactor code copying. Created a function for copying code to the working area on a target. The NAND write and read functions are updated to include use of this function. Signed-off-by: David Brownell 2009-11-17 Dean Glazeski * : NAND Flash documentation update. Updated doxygen comments for different interface structures for the NAND interface. Signed-off-by: David Brownell 2009-11-24 Uwe Hermann * : update bug reporting information The Berlios bug-tracker is disabled, bug reports go to the list. Signed-off-by: Zachary T Welch 2009-11-24 Uwe Hermann * : fix typos in source files Correct some spelling errors in source comments and printed output. Signed-off-by: Zachary T Welch 2009-11-26 Eric Wetzel * : fix 'flash protect' and 'flash erase_sector' Command upgrading introduced two off-by-one bugs in the flash commands. This patch fixes the 'flash {protect,erase_sector}' commands to check that they have been passed the correct number of arguments. Ammended during commit to fix help text for 'erase_address' too. 2009-11-25 David Brownell * : target: target_get_name() --> target_type_name() There are two names that may matter on a per-target basis. One is a per-instance name (for example, "at91sam7s.cpu"). The other is the name of its type (for example, "arm7tdmi"), which is shared among multiple targets. Currently target_get_name() returns the type name, which is misleading and is rarely appropriate for target diagnostics. Rename that as target_type_name(). Signed-off-by: David Brownell 2009-11-25 David Brownell * : ARM: minor armv4/armv5 cleanup Lines of 300+ characters are still bad; debug tweaks. Signed-off-by: David Brownell 2009-11-25 David Brownell * : ARM7/9: shrink run_algorithm_inner() lines 300+ characters is unreasonable. So is half that. Signed-off-by: David Brownell 2009-11-20 Zachary T Welch * : update NEWS with recent developments Mention changes to flash bank command syntax, 'nand verify' command, command error handling and reporting, and help/usage command upgrades. 2009-11-23 Zachary T Welch * : support OPENOCD_DEBUG_LEVEL environment setting Detect the OPENOCD_DEBUG_LEVEL setting in log_init(), allowing the very early startup phases to be debugged. 2009-11-24 Zachary T Welch * : update command handler documentation Adds sections on command registration and chaining, giving an overview to developers that want to use these features. 2009-11-21 Zachary T Welch * : improve command handling examples Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands. 2009-11-24 Zachary T Welch * : encapsulate and re-use log capture, retval setup Factors log capture while running script commands, eliminating duplicated code between script_command and jim_capture. Factors setting a command's Jim "retval" into a new helper as well. Using these new helpers in the new unknown command handler's fixes possible regressions caused by these bits being missing. 2009-11-23 Zachary T Welch * : improve usage and help command output Rewrite formatting code in C, removing last remenants of TCL help code. Sinificantly improves the readability by using smarter indent and wrap. 2009-11-24 Zachary T Welch * : httpd: use register_commands() Updates httpd_start() to use register_commands() for 'readform' and 'writeform' commands. Adds server/httpd.h to export the new signatures for this function (and httpd_stop), which allows removing the obsoleted declarations inside openocd.c. 2009-11-23 Zachary T Welch * : refactor command_new to use command_registration Save stack space: use a struct. Makes it easier to add new parameters. 2009-11-23 Zachary T Welch * : remove target_type register_command callback Uses chaining of command_registration structures to eliminate all target_type register_callback routines. Exports the command_handler registration arrays for those target types that are used by others. 2009-11-23 Zachary T Welch * : trace: use register_commands() 2009-11-23 Zachary T Welch * : target: use register_commands() 2009-11-23 Zachary T Welch * : etm_dummy: use register_commands() 2009-11-23 Zachary T Welch * : etb: use register_commands() 2009-11-23 Zachary T Welch * : cortex_a8: use register_commands() 2009-11-23 Zachary T Welch * : armv7a: use register_commands() 2009-11-23 Zachary T Welch * : arm9tdmi: use register_commands() 2009-11-23 Zachary T Welch * : arm926ejs: use register_commands() 2009-11-23 Zachary T Welch * : arm7_9_common: use register_commands() 2009-11-23 Zachary T Welch * : arm11: use register_commands() 2009-11-22 Zachary T Welch * : remove flash_driver->register_callbacks Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands. 2009-11-22 Zachary T Welch * : str9xpec: use register_commands() 2009-11-22 Zachary T Welch * : str7x: use register_commands() 2009-11-22 Zachary T Welch * : stellaris: use register_commands() 2009-11-22 Zachary T Welch * : nand: use register_commands() Eliminates 'nand_cmd' global variable. 2009-11-22 Zachary T Welch * : lpc3180_nand_controller: use register_commands() 2009-11-22 Zachary T Welch * : lpc2000: use register_commands() 2009-11-22 Zachary T Welch * : ecos: use register_commands() 2009-11-22 Zachary T Welch * : avrf: use register_commands() 2009-11-22 Zachary T Welch * : at91sam3: use register_commands() 2009-11-20 Zachary T Welch * : vsllink: use register_commands() Use register_commands() with command registration array. 2009-11-20 Zachary T Welch * : presto: use register_commands() Use register_commands() with command registration array. 2009-11-20 Zachary T Welch * : jlink: use register_commands() Use register_commands() with command registration array. 2009-11-20 Zachary T Welch * : ft2232: use register_commands() Use register_commands() with a command registration array. 2009-11-20 Zachary T Welch * : arm-jtag-ew: use register_commands() Uses register_commands() with command registration array. 2009-11-23 Zachary T Welch * : pld: use static registration instead of callback Remove register_callbacks from pld_device structure, using an array of command_registration records instead. 2009-11-22 Zachary T Welch * : {,x}svf: use register_commands() Use register_commands() for registering {,x}svf commands. 2009-11-20 Zachary T Welch * : log: use register_commands() Use register_commands() for logging callbacks. Improve help and add proper usage. 2009-11-20 Zachary T Welch * : openocd: use register_commands() Use register_commands() for top-level version and init command. 2009-11-21 Zachary T Welch * : hello: use register_commands() Use new register_commands() with command registration table. 2009-11-22 Zachary T Welch * : add public API for locating commands Allow other modules to find a command, primarily for the purpose of registering and unregistering subcommands. 2009-11-21 Zachary T Welch * : add command registration chaining Adds the ability to chain registration structures. Modules can define a command with the 'chain' and 'num_chain' fields defined in their registration table, and the register_commands() function will initialize these commands. If the registration record creates a new command, then the chained commands are created under it; otherwise, they are created in the same context as the other commands (i.e. the parent argument). 2009-11-20 Zachary T Welch * : command: use register_commands for handlers Use register_commands() to register low-level command handlers, adding a builtin_command_handlers declaration that is easy to understand. Splits help and usage information into their appropriate fields. 2009-11-20 Zachary T Welch * : add register_commands for batch registration The register_commands API takes multiple commands in one call, allowing modules to declare and pass a much simpler (and more explicit) array of command_registration records. 2009-11-20 Zachary T Welch * : use COMMAND_REGISTER macro Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases. 2009-11-21 Zachary T Welch * : improve startup tcl scripts Fix a couple of layering violations missed in the last round. Add missing comment headers. 2009-11-24 David Brownell * : Cortex-A8: hook up DPM This replaces two versions of register access functions. One was commented out, and seemed to have uncertain intent. The other was fairly new, and helped motivate the DPM framework once I observed that the ARM11 was doing the very same ops. Signed-off-by: David Brownell 2009-11-24 David Brownell * : Cortex-A8: minor cleanup Make various functions static, add some comments, report vector catch as a flavor of DBG_REASON_BREAKPOINT, get rid of needless/undesirable ARMV4_5_CORE_REG_MODE, etc. Signed-off-by: David Brownell 2009-11-24 Zachary T Welch * : fix doxygen build Update build rules to skip the PDF unless the TeX has been created. Also, fixes a warning regarding pattern rules being a GNU make trick. 2009-11-19 Zachary T Welch * : jlink: remove superfluous indentation Rewrite logic to remove indentation in jlink_usb_open, in prep for further surgery. 2009-11-19 Zachary T Welch * : rlink: eliminate spurious indentation Rework rlink_init to use less indentation. Best viewed with diff -w. 2009-11-19 Zachary T Welch * : usbprog: use jtag_usb_open Rewrite usbprob_jtag_open to use jtag_usb_open helper. 2009-11-19 Zachary T Welch * : add jtag/usb_common.[ch] files Begins to consolidate code used by several USB JTAG interfaces. This first patch provides the required build system changes and a common jtag_usb_open routine, which will replace the guts for probing the busses and devices for possible VID/PID matches. The following patches convert each driver to use it. 2009-11-24 David Brownell * : ARM11: use standard run_algorithm() As with single stepping, the previous stuff was needed because the ARM11 code wasn't using the standard ARM base type and register access ... but now those mechanisms work, so we can switch out that special-purpose glue, in favor of the more thoroughly tested/capable "standard" code. Fixes a bug in the resume() implementation: it wasn't handling two of its arguments correctly, preventing the "flash erase_check" algorithm from working. (This code needs a *subsequent* update for correct register handling, though... removing the confusion about which "r2", for example, to use.) This should resolve some "FIXME" comments too, for Thumb and processor mode support. It also gets rid of a nasty exit() call; servers should only have *clean* shutdown paths. Signed-off-by: David Brownell 2009-11-24 David Brownell * : ARM11: partial support for standard ARM register interfaces. This provides "standard" ARM register support -- with twenty or more shadow registers on top of what this code now handles, but properly associated with the various core modes -- parallel to the current register code. That is, the current code is stilil managing the "current" registers; the new code shadows them. You can see all the registers with "arm reg", modify the shadows like "r8_fiq" or "sp_abt" with "reg", and see them get properly written back when you step. (Just don't do that with any of the registers managed by the "old" code ...) It also switches to using more standard code, relying on those standard registers, in two places: (a) the poll status display, which now shows core state (ARM/Thumb/...) and mode (Supervisor, IRQ, etc); and (b) GDB register access. So it's not a full migration, there are warts -- every place that touches the old register cache is a potential bug -- but it's a small more-or-less-comprehensible step that's even somewhat useful. Later patches complete the migration. Signed-off-by: David Brownell 2009-11-24 David Brownell * : ARM11: implement provider for new DPM interface This is a very thin layer over some of the current ARM11 debug TAP utilities. The layer isn't yet hooked up. Signed-off-by: David Brownell 2009-11-24 David Brownell * : target: cope with *any* error setting a breakpoint It's wrong to map unrecognized failure codes to success. Signed-off-by: David Brownell 2009-11-23 Jerry Ling * : mips: fix gaffe when removing dynamic array allocation Classic sizeof() gaffe. Signed-off-by: Øyvind Harboe 2009-10-26 Øyvind Harboe * : arm926ejs: retire cp15 commands, handled by mrc/mcr. Signed-off-by: Øyvind Harboe 2009-11-22 David Brownell * : ARM11: macro cleanup Make this code look more like the rest of the OpenOCD code. - Use calloc() directly, not NEW() ... and fix some potential memory leaks while we're at it. - Remove FNC_INFO ... it's a NOP that just clutters things, and it's trivial for developers to add tracing as needed. - Replace FNC_INFO_NOTIMPLEMENTED with LOG_WARNING calls; ditto. And stop having those call sites wrongly succeed! - Waste less space with the CHECK_RETVAL() macro. Signed-off-by: David Brownell 2009-11-22 Øyvind Harboe * : mips: use const for code sequences This will allow data to be allocated in read only memory instead of on the stack. Speeds things up and reduces stack usage. Signed-off-by: Øyvind Harboe 2009-11-22 Øyvind Harboe * : arm926ejs: fix warnings buf_set_u32() operated on an uninitialized stack variable with non-byte boundaries, which led to warnings about reading uninitialized stack. Signed-off-by: Øyvind Harboe 2009-11-22 David Brownell * : ARM: use arm_reg_current() Start using the arm_reg_current() call. This shrinks and speeds the affected code. It can also prevent some coredumps coming from invalid CPSR values ... the ARMV4_5_CORE_REG_MODE() macro returns bogus registers if e.g. "Secure Monitor" mode isn't supported by the current CPU. Signed-off-by: David Brownell 2009-11-22 David Brownell * : target: make register flags "bool" Mostly for clarity, but it also saves code and data space. Signed-off-by: David Brownell 2009-11-22 Øyvind Harboe * : flash: dynamically allocate working storage Allocate working memory rather than using stack. Signed-off-by: Øyvind Harboe 2009-11-22 Øyvind Harboe * : todo: add tip on how to identify excessive stack usage Use dynamic allocations for working memory rather than stack. Signed-off-by: Øyvind Harboe 2009-11-21 Øyvind Harboe * : embedded: reduce stack usage Allocate working structures on stack to avoid issues with path lengths + reduce stack usage. Signed-off-by: Øyvind Harboe 2009-11-21 Øyvind Harboe * : embedded: save stack and also do not recaluate the crc32_table upon every invocation. Signed-off-by: Øyvind Harboe 2009-11-22 Øyvind Harboe * : build: fix breakage in building bin2char bin2char build relied on $(builddir) which is not defined for arm-elf X builds at least. Signed-off-by: Øyvind Harboe 2009-11-22 David Brownell * : ARM: define two register utilities Define arm_reg_current() ... returning handle to a given register, and encapsulating the current mode's register shadowing. It's got one current use, for reporting the current register set to GDB. This will let later patches clean up much ARMV4_5_CORE_REG_MODE() nastiness, saving a bit of code. Define and use arm_set_cpsr() ... initially it updates the cached CPSR and sets up state used by arm_reg_current(), plus any SPSR handle. (Later: can also set up for T and J bits.) Signed-off-by: David Brownell 2009-11-22 David Brownell * : ARM11: remove disabled register hooks Minor cleanup of ARM11 register handling: remove disabled register hooks. This should all be handled by shared code, and this stuff is just clutter. Signed-off-by: David Brownell 2009-11-21 Zachary T Welch * : allow jtag interfaces to lack commands Allow JTAG interface drivers to skip registering an register_commands callback when it will just be empty. 2009-11-20 David Brownell * : ARM: pass 'struct reg *' to register r/w routines Implementations need to access the register struct they modify; make it easier and less error-prone to identify the instance. (This removes over 10% of the ARMV4_5_CORE_REG_MODE nastiness...) Plus some minor fixes noted when making these updates: ARM7/ARM9 accessor methods should be static; don't leave CPSR wrongly marked "dirty"; note significant XScale omissions in register handling; and have armv4_5_build_reg_cache() record its result. Rename "struct armv4_5_core_reg" as "struct arm_reg"; it's used for more than those older architecture generations. Signed-off-by: David Brownell 2009-11-20 Zachary T Welch * : maintain command lists in sorted order Use insertion sort to the command link lists. The only practical effect of this is to order the output of the new 'help' command. 2009-11-20 Zachary T Welch * : provide command context during cmd_init For the startup.tcl code to use built-in commands, the context must be associated with the interpreter temporarily. This will be required to add help text. 2009-11-19 Zachary T Welch * : factor help script command into parts Creates a helper function, cmd_help, which displays the help string for a single command. Presently, it is called from the loop in help. The routine has been extended to allow indentation of command groups, so an improved help command can improve the display of information. 2009-11-19 Zachary T Welch * : change command_find helper interface Avoid requiring double pointers where a single would suffice. 2009-11-20 David Brownell * : target.cfg: TAP id for Hilscher netX 500 Based on email from "Martin Kaul ". Signed-off-by: David Brownell 2009-11-19 David Brownell * : Cortex-A8: better context restore The previous version never wrote dirty registers for non-current CPU modes ... fix that. Signed-off-by: David Brownell 2009-11-19 David Brownell * : target: create/use register_cache_invalidate() Create a generic register_cache_invalidate(), and use it to replace three all-but-identical core-specific routines: - armv4_5_invalidate_core_regs() - armv7m_invalidate_core_regs - mips32_invalidate_core_regs() too. Make cache->num_regs be unsigned, avoiding various errors. Net code shrink and simplification. Signed-off-by: David Brownell 2009-11-18 Zachary T Welch * : document new flash syntax Updates the user documentation with the new syntax for defining flash and nand banks. 2009-11-17 Zachary T Welch * : add support for naming NAND banks Requires users to name their nand banks, allowing them to be used instead of bank numbers in script commands. 2009-11-18 Zachary T Welch * : update 'flash bank' usage in scripts Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the first argument to 'flash bank'. 2009-11-17 Zachary T Welch * : refactor handle_flash_bank_command Move variables to point of first use, reducing their scope. Add driver_name temporary to help arguments be changed later. Eliminates the useless 'found' variable, changing the code to terminate the loop immediate and return its success. 2009-11-17 Zachary T Welch * : allow flash/nand banks commands to accept names Add get_flash_bank_by_name (and get_nand_device_by_name) helpers to retrieves struct flash_bank * (struct nand_device *) given a driver name and an (optional) driver-specific bank index. These are used to extend flash_command_get_bank_by_num (and nand_command_get_device_by_num) to allow all flash (nand) commands to reference defined banks by name, not just by number. To avoid some code duplication, add the flash/common.[ch] files to hold functionality common to both types driver. The first two methods are helpers for the above routines to find a bank specified by a "name" or "name.index" string. get_flash_name_index() finds the '.index' portion, while flash_driver_name_matches() performs the string portion matching. 2009-11-19 David Brownell * : ARM: streamline register init Combine register names with other per-register data into a single template structure. This saves space, and makes it easier to change how registers get handled (by shrinking the number of places that care about cache indices). Signed-off-by: David Brownell 2009-11-18 Dean Glazeski * : nand_fileio_parse_args parses wrong param for size This changes the size parameter from argv[2] to argv[3], which is what it's supposed to be. Signed-off-by: Zachary T Welch 2009-11-19 David Brownell * : ARMv7-A: use standard ARM core_mode symbols The only way ARMv7-A modes differ from ARMv4/ARMv5 flavors is that v7-A is allowed to include "Secure monitor" support. That's now handled by our standard top-level ARM code ... so phase out the stuff that's specific to ARMv7-A. Signed-off-by: David Brownell 2009-11-18 Zachary T Welch * : remove fast command and jim_global_long Removing the fast command eliminates the fast_and_dangerous global, which was used only by arm7_9_common as an initializer. The command is not called in the tree; instead, more explicit commands are used. The jim_global_long function was not used anywhere in the tree. 2009-11-18 Zachary T Welch * : change all bool parsers to accept any value This patch changes the behavior of all boolean parsing callers to accept any one of "true/enable/on/yes/1" or "false/disable/off/no/0". Since one particular pair will be most appropriate in any given situation, the specific macros should continue to be used in order to display the most informative error messages possible. 2009-11-18 Zachary T Welch * : use COMMAND_PARSE_ENABLE macro where appropriate Updates all command parsing of simple "enable" and "disable" arguments. A few case in the tree use a tri-state or extended arguments, which cannot use this simple macro. Simlifies the xscale icache/dcache command handler logic. 2009-11-18 Zachary T Welch * : add COMMAND_PARSE_BOOL macro and friends Adds several macros similar to COMMAND_PARSE_NUMBER, but for parsing boolean command arguments. Two flavors are provided to provide drop-in compatibility with existing code, allow for the elimination of a lot of code bloat while improving the error checking and reporting. COMMAND_PARSE_ON_OFF parses "on"/"off" command parameters. COMMAND_PARSE_ENABLE parses "enable"/"disable" command parameters. Both print the error and return an error out of the calling function. 2009-11-18 David Brownell * : Cortex-A8: xPSR handling updates When we read the CPSR on debug entry, update the CPSR cache in all cases, not just when the current processor state is User or System. Plus minor cleanup of how the (too-many) other registers' cache entries get updated. Signed-off-by: David Brownell 2009-11-18 David Brownell * : ARM: simplify ARMv7-A register handling ARMv7-A doesn't need to duplicate all the standard ARM code for register handling. - Switch Cortex-A8 to use the standard register code - Remove duplicated infrastructure from ARMv7-A - Have ARMv7-A arch_state() show CPSR, like other ARMs Add comments to show where the Cortex-A8 isn't actually doing the right thing for register reads/writes, unless core happens to be in the right mode to start with. (Looks like maybe there may be generic confusion between saved/current PSR values in all the ARM code ...) Make related ARMv7-A and Cortex-A8 symbols properly static. Signed-off-by: David Brownell 2009-11-18 David Brownell * : ARM: add "core_type" field to "struct arm" It's used to flag cores with the "TrustZone" extension, and is used in subsequent patches to set up support for the registers shadowed by its new secure monitor mode. The ARM1176 and Cortex-A8 both support this new mode. Signed-off-by: David Brownell 2009-11-17 Zachary T Welch * : pass startup_tcl to command_init Removes external linkage from helper module, making the startup code a parameter to a new command context's initialization routine. 2009-11-17 Zachary T Welch * : move startup.c to libopenocd Moves the creation of startup_tcl.c from src/helper/ to src/. Prepares to split the startup.tcl file into its per-module parts. 2009-11-17 Øyvind Harboe * : jtag-api: get rid of unecessary buf_set_u23() that make code obtuse. Also, this is on the path to increasing the word size for bit vectors from 8 to something wider(32? natural host machine width?) Signed-off-by: Øyvind Harboe 2009-11-17 David Brownell * : ARM: add arm_mode_name() Add and use arm_mode_name() to map from PSR bits to user meaningful names. It uses a new table which, later, can be used to hold other mode-coupled data. Add definitions for the "Secure Monitor" mode, as seen on some ARM11 cores (like ARM1176) and on Cortex-A8. The previous mode name scheme didn't understand that mode. Remove the old mechanism ... there were two copies, caused by Cortex-A8 needing to add "Secure Monitor" mode support. Signed-off-by: David Brownell 2009-11-17 Zachary T Welch * : allow documentation to be configured Add --disable-doxygen-html and --enable-doxygen-pdf options to the configure script, allowing user to change the defaults. These update the proess of munging the Doxygen configuration file to use the settings thusly provided. Add options in README. 2009-11-17 Zachary T Welch * : update command_handler documentation Improve the developer manual and primer sections which talk about writing command handlers. Notably, it documents the new CMD_* macros. 2009-11-16 Zachary T Welch * : add CMD_NAME variable in command_invocation Update CMD_NAME from its migratory home in CMD_ARGV[-1] to cmd->name. Allows CMD_ARGV++ idiom to be used safely in command handlers. 2009-11-15 Zachary T Welch * : command_handler: change 'cmd_ctx' to CMD_CTX Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX. 2009-11-15 Zachary T Welch * : command_handler: change to 'argc' to CMD_ARGC This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC. 2009-11-17 David Brownell * : target: simplify register get/set ops No need to indirect from registered integers to pointers. Just stash the pointers directly in the register struct, and don't even bother registering. This is a small code shrink, speeds register access just a smidgeon, and gets rid of another rude exit() path. Signed-off-by: David Brownell 2009-11-17 Øyvind Harboe * : zy1000: revC UART forwarding Name of serial device differs between revB/C. Signed-off-by: Øyvind Harboe 2009-11-12 Øyvind Harboe * : zy1000: fix bug when running on non-arm CPU Shifting by more than 32 is undefined for 32 bit integers according to the C standard. Robust solution is conditional code. Signed-off-by: Øyvind Harboe 2009-11-17 David Brownell * : ARM9TDMI: remove now-needless "struct arm9tdmi" And move the rest of the vector_catch stuff into the C file; it's not part of the module interface. Signed-off-by: David Brownell 2009-11-17 David Brownell * : target: remove some more duplicate includes Signed-off-by: David Brownell 2009-11-16 David Brownell * : Cortex-A8: no exit() calls, add missing v7-A init Eventually there should be a v7a init routine, but for now all that is inlined here. Signed-off-by: David Brownell 2009-11-16 David Brownell * : MIPS: no exit() calls Signed-off-by: David Brownell 2009-11-16 David Brownell * : ARMv4/ARMv5: no exit() calls Signed-off-by: David Brownell 2009-11-16 David Brownell * : Cortex-M3: don't exit() Get rid of undesirable and needless exit() calls from the Cortex-M3 support. Signed-off-by: David Brownell 2009-11-16 David Brownell * : ARM11: register (most) standard ARM commands Have ARM11 register the "standard" ARM commands. For now, only disassembly really works. Signed-off-by: David Brownell 2009-11-16 David Brownell * : JTAG: fix autoprobe failure. Fix bug noted by Øyvind: terminate the IR length autoscan when the IR is too long, or otherwise broken. Signed-off-by: David Brownell 2009-11-13 Zachary T Welch * : struct fileio: improve member types Add const keyword to file url and cast to free(). Make size an ssize_t and chase all format strings that use it. 2009-11-15 Zachary T Welch * : use Jim_CmdProc in jim_register The jim_register command just needed to use the type defined by jim.h. 2009-11-15 Zachary T Welch * : make command line options const The getopt_long call allows a const struct option, so mark ours const too. 2009-11-16 David Brownell * : target: don't include "log.h" from "armv4_5.h" No point in multiple includes, and that file doesn't use its functions any more. Signed-off-by: David Brownell 2009-11-16 David Brownell * : JTAG: no LOG_WARNING() for taps without IDCODE Signed-off-by: David Brownell 2009-11-16 David Brownell * : "types.h" doxygen fix Signed-off-by: David Brownell 2009-11-16 Zachary T Welch * : move ARRAY_SIZE macro to types.h The ARRAY_SIZE macro was defined in several target files, so move it to types.h. This patch also removes two other identical macros: DIM (from jtag.h) and asizeof (from arm11.h). 2009-11-16 Zachary T Welch * : remove TAP_SCAN_BYTES macro Use DIV_ROUND_UP(n, 8) instead of TAP_SCAN_BYTES macro. 2009-11-16 Zachary T Welch * : move container_of to types.h The container_of macro is useful as a general solution. It belongs in types.h, rather than target.h where it was introduced. Requires the offsetof macro, which comes from (moved as well). 2009-11-15 Zachary T Welch * : flash_command_get_bank_by_num: make COMMAND_HELPER Use COMMAND_HELPER macro to declare flash_command_get_bank_by_num. This is required for COMMAND_PARSE_NUMBER macro. 2009-11-07 Zachary T Welch * : Add 'nand verify' command Add the 'nand verify' command to perform a dump and fake-write simultaneously, checking the read bits against those generated by the write process. Appropriate user documentation for this command has been added to the user guide as well. The algorithm presently makes a relatively naive comparison. Some chips that use ECC may not verify correctly using this implementation, but the new documentation provides details about this limitation. 2009-11-05 Zachary T Welch * : Use nand_fileio_* in write/dump commands. This patch eliminates duplicated code in the the NAND 'dump' and 'write' by using the new static helper functions. These changes also fix a possible memory leak in nand dump command, in the case that the dump file failed to open. Overall, the changes should be functionally equivalent, but the resulting code will be easier to improve and extend further. 2009-11-16 Zachary T Welch * : binarybuffer: add API documentation Adds Doxygen documentation for a number of the binarybuffer APIs, including "unexpected" behavior exposed during review on the list. 2009-11-14 Zachary T Welch * : improve buf_set_buf helper Use void * and unsigned types for buffer and their sizes. Allows it to be used with more than uint8_t * without casts. 2009-11-14 Zachary T Welch * : improve buf_cpy helper Use memcpy for bulk of copy, improve final byte handling. Improve types by using void * for buffers and unsigned for size. 2009-11-14 Zachary T Welch * : improve str_to_buf and buf_to_str helpers Improve types: use void * and unsigned. Move all variables to point of first use. Move radix guessing logic to new str_radix_guess helper. 2009-11-14 Zachary T Welch * : binarybuffer: fix whitespace related issues Add inter-operator whitespace. Improve existing documentation. 2009-11-16 David Brownell * : target: no implicit #includes of "register.h" Same deal: "register.h" got needlessly included all over the place because of being in a few widely included headers. So take it out of the header files which included it, and put it in files which use it ... reduce needless interdependencies. Also, don't need that extra "types.h" inclusion. Signed-off-by: David Brownell 2009-11-16 David Brownell * : target: don't implicitly include "algorithm.h" Most files in the tree seem to have ended up including this, and *quite* needlessly ... only code implementing or using downloadable algorithms actually needs these declarations. So take it out of the header files which included it, and put it in files which use it ... reduce needless interdependencies. Also: "algorithm.h" doesn't need to include "types.h" again; it already comes from a different header. Signed-off-by: David Brownell 2009-11-15 David Brownell * : ARM11: use now-generic memory utils Now the ARM11 cores can use the renamed arm_checksum_memory() and arm_blank_check_memory() routines ... do so. Sanity checked with "flash erase_check" of both NOR banks on an OMAP2420 ... the algorithm code dumped four lines of of "poll" status after each of almost 520 blocks (yes, *very* annoying) but gave plausible results after producing that spam. Signed-off-by: David Brownell 2009-11-15 David Brownell * : ARM: memory utils aren't ARM7/ARM9 dependent The arm7_9_checksum_memory() and arm7_9_blank_check_memory() routines are not actually specific to the ARM7 and ARM9 core generations ... they can work for any core which can run algorithms using basic ARM (not Thumb) instructions. Rename them; move the declarations to a more generic site; likewise move the code (and tidy it a bit in the process). NOTE: the blank_check() method falsely returned a success status (0) on one error path, when the algorithm failed. Fixed this bug. Signed-off-by: David Brownell 2009-11-15 Zachary T Welch * : arm-jtag-ew,jlink: switch to COMMAND_HANDLER These drivers were overlooked during the recent upgrade. Convert them, moving their registration routines to eliminate their declarations. 2009-11-14 Zachary T Welch * : remove unused arm_jtag_buf_to_* helpers Removes unused arm_jtag_buf_* helpers from arm_jtag.[ch]. These could reappear if patches are provided to conver the tree to use them, but this code should not be in the master tree until that series is ready. 2009-11-14 Zachary T Welch * : struct scan_field_s -> struct scan_field Remove obsolete suffix from struct scan_field. Somehow, these definitions did not get updated but did not cause any errors. 2009-11-14 David Brownell * : lpc2900.h -- remove from Makefile.am too Signed-off-by: David Brownell 2009-11-14 David Brownell * : remove annoying $URL$ startup message It's completely unused; the obnoxious "DANGER!!!" comments don't even explain what it was doing (shorthand SVN magic). Signed-off-by: David Brownell 2009-11-14 Zachary T Welch * : add openocd.h for top-level declarations Create src/openocd.h to hold declarations previously made internally by src/main.c and src/server/server.c. This ensures all functions are verified to be in-sync at compile time (rather than at link), making it easier to track down bugs. 2009-11-13 David Brownell * : ARM11: ETM + ETB support Kick in ETM (and ETB) support for ARM11. Tested on OMAP 2420, so update that configuration. (That's an ARM1136ejs, ETB, OpenGL ES1.1, C55x DSP, etc.) Also update the other ARM11 ETM + ETB targets in the tree to set up these modules. (Not tested.) Signed-off-by: David Brownell 2009-11-13 David Brownell * : iMX2* + ETB targets: hook up ETM and ETB ARM9 cores with an ETB will have a matching ETM. Hook them both up by default. Signed-off-by: David Brownell 2009-11-13 David Brownell * : ETM: simplify ETM initialization code paths Return NULL from etm_build_reg_cache() not ERROR_OK; and share code on that fault path. Let ETM code handle any tracking of its cache -- not callers. Signed-off-by: David Brownell 2009-11-13 David Brownell * : target: remove unused "bitfield" infrastructure We have too many different registers, and too many version and context dependent interpretations, for this type of bitfield management to be scalable. (Anyone who really wants bitfield interpretation *can* do that in Tcl code...) There are ... quite a few copies of the same ARM dummy registers. There should eventually be one copy; this many is craziness. Signed-off-by: David Brownell 2009-11-13 David Brownell * : ARM7/9: rm arm7_9_get_arch_pointers() Remove the last external user of arm7_9_get_arch_pointers(), and that annoying downcast utility. Add an is_arm7_9() predicate. Stop returning specious success codes on various failure paths in the ARM7/ARM9 commands which used that downcast utility. Signed-off-by: David Brownell 2009-11-13 Zachary T Welch * : command_t -> struct command Remove misleading typedef and redundant suffix from struct command. 2009-11-13 Zachary T Welch * : remove rlink structure typedefs Remove useless typedefs from the rlink driver. Improve whitespace. 2009-11-13 Zachary T Welch * : nand_device_t -> struct nand_device Remove misleading typedef and redundant suffix from struct nand_device. 2009-11-13 Zachary T Welch * : reg_t -> struct reg Remove misleading typedef and redundant suffix from struct reg. 2009-11-13 Zachary T Welch * : improve mips32_pracc_context Use struct mips32_pracc_context instead of a typedef. 2009-11-13 Zachary T Welch * : armv4_5_common_t -> struct arm Remove misleading typedef and just use struct arm. 2009-11-13 Zachary T Welch * : etb_t -> struct etb Remove misleading typedef and redundant suffix from struct etb. 2009-11-13 Zachary T Welch * : image_elf_t -> struct image_elf Remove misleading typedef and redundant suffix from struct image_elf. 2009-11-13 Zachary T Welch * : cortex_m3_fp_comparator_t -> struct cortex_m3_fp_comparator Remove misleading typedef and redundant suffix from struct cortex_m3_fp_comparator. 2009-11-13 Zachary T Welch * : cortex_a8_brp_t -> struct cortex_a8_brp Remove misleading typedef and redundant suffix from struct cortex_a8_brp. 2009-11-13 Zachary T Welch * : xscale_trace_t -> struct xscale_trace Remove misleading typedef and redundant suffix from struct xscale_trace. 2009-11-13 Zachary T Welch * : target_event_action_t -> struct target_event_action Remove misleading typedef and redundant suffix from struct target_event_action. 2009-11-13 Zachary T Welch * : arm9tdmi_vector_t -> struct arm9tdmi_vector Remove misleading typedef and redundant suffix from struct arm9tdmi_vector. Renames enum arm9tdmi_vector as enum arm9tdmi_vector_bit. 2009-11-13 Zachary T Welch * : xscale_common_t -> struct xscale_common Remove misleading typedef and redundant suffix from struct xscale_common. 2009-11-13 Zachary T Welch * : trace_point_t -> struct trace_point Remove misleading typedef and redundant suffix from struct trace_point. 2009-11-13 Zachary T Welch * : target_timer_callback_t -> struct target_timer_callback Remove misleading typedef and redundant suffix from struct target_timer_callback. 2009-11-13 Zachary T Welch * : working_area_t -> struct working_area Remove misleading typedef and redundant suffix from struct working_area. 2009-11-13 Zachary T Welch * : reg_cache_t -> struct reg_cache Remove misleading typedef and redundant suffix from struct reg_cache. 2009-11-13 Zachary T Welch * : oocd_trace_t -> struct oocd_trace Remove misleading typedef and redundant suffix from struct oocd_trace. 2009-11-13 Zachary T Welch * : mips_ejtag_t -> struct mips_ejtag Remove misleading typedef and redundant suffix from struct mips_ejtag. 2009-11-13 Zachary T Welch * : mips32_common_t -> struct mips32_common Remove misleading typedef and redundant suffix from struct mips32_common. 2009-11-13 Zachary T Welch * : image_mot_t -> struct image_mot Remove misleading typedef and redundant suffix from struct image_mot. 2009-11-13 Zachary T Welch * : image_ihex_t -> struct image_ihex Remove misleading typedef and redundant suffix from struct image_ihex. 2009-11-13 Zachary T Welch * : image_section_t -> struct image_section Remove misleading typedef and redundant suffix from struct image_section. 2009-11-13 Zachary T Welch * : etm_capture_driver_t -> struct etm_capture_driver Remove misleading typedef and redundant suffix from struct etm_capture_driver. 2009-11-13 Zachary T Welch * : etb_reg_t -> struct etb_reg Remove misleading typedef and redundant suffix from struct etb_reg. 2009-11-13 Zachary T Welch * : cortex_m3_common_t -> struct cortex_m3_common Remove misleading typedef and redundant suffix from struct cortex_m3_common. 2009-11-13 Zachary T Welch * : watchpoint_t -> struct watchpoint Remove misleading typedef and redundant suffix from struct watchpoint. 2009-11-13 Zachary T Welch * : mcu_jtag_t -> struct mcu_jtag Remove misleading typedef and redundant suffix from struct mcu_jtag. 2009-11-13 Zachary T Welch * : armv7m_algorithm_t -> struct armv7m_algorithm Remove misleading typedef and redundant suffix from struct armv7m_algorithm. 2009-11-13 Zachary T Welch * : armv7a_core_reg_t -> struct armv7a_core_reg Remove misleading typedef and redundant suffix from struct armv7a_core_reg. 2009-11-13 Zachary T Welch * : armv7a_common_t -> struct armv7a_common Remove misleading typedef and redundant suffix from struct armv7a_common. 2009-11-13 Zachary T Welch * : armv4_5_cache_common_t -> struct armv4_5_cache_common Remove misleading typedef and redundant suffix from struct armv4_5_cache_common. 2009-11-13 Zachary T Welch * : armv4_5_core_reg_t -> struct armv4_5_core_reg Remove misleading typedef and redundant suffix from struct armv4_5_core_reg. 2009-11-13 Zachary T Welch * : arm_jtag_t -> struct arm_jtag Remove misleading typedef and redundant suffix from struct arm_jtag. 2009-11-13 Zachary T Welch * : arm_load_store_instr_t -> struct arm_load_store_instr Remove misleading typedef and redundant suffix from struct arm_load_store_instr. 2009-11-13 Zachary T Welch * : arm_b_bl_bx_blx_instr_t -> struct arm_b_bl_bx_blx_instr Remove misleading typedef and redundant suffix from struct arm_b_bl_bx_blx_instr. 2009-11-13 Zachary T Welch * : swjdp_reg_t -> struct swjdp_reg Remove misleading typedef and redundant suffix from struct swjdp_reg. 2009-11-13 Zachary T Welch * : arm966e_common_t -> struct arm966e_common Remove misleading typedef and redundant suffix from struct arm966e_common. 2009-11-13 Zachary T Welch * : arm920t_tlb_entry_t -> struct arm920t_tlb_entry Remove misleading typedef and redundant suffix from struct arm920t_tlb_entry. 2009-11-13 Zachary T Welch * : arm7tdmi_common_t -> struct arm7tdmi_common Remove misleading typedef and redundant suffix from struct arm7tdmi_common. 2009-11-13 Zachary T Welch * : arm720t_common_t -> struct arm720t_common Remove misleading typedef and redundant suffix from struct arm720t_common. 2009-11-13 Zachary T Welch * : arm11_reg_state_t -> struct arm11_reg_state Remove misleading typedef and redundant suffix from struct arm11_reg_state. 2009-11-13 Zachary T Welch * : arm11_reg_defs_t -> struct arm11_reg_defs Remove misleading typedef and redundant suffix from struct arm11_reg_defs. 2009-11-13 Zachary T Welch * : mem_param_t -> struct mem_param Remove misleading typedef and redundant suffix from struct mem_param. 2009-11-13 Zachary T Welch * : arm11_register_history_t -> struct arm11_register_history Remove misleading typedef and redundant suffix from struct arm11_register_history. 2009-11-13 Zachary T Welch * : pld_device_t -> struct pld_device Remove misleading typedef and redundant suffix from struct pld_device. 2009-11-13 Zachary T Welch * : xilinx_bit_file_t -> struct xilinx_bit_file Remove misleading typedef and redundant suffix from struct xilinx_bit_file. 2009-11-13 Zachary T Welch * : connection_t -> struct connection Remove misleading typedef and redundant suffix from struct connection. 2009-11-13 Zachary T Welch * : tcl_connection_t -> struct tcl_connection Remove misleading typedef and redundant suffix from struct tcl_connection. 2009-11-13 Zachary T Welch * : telnet_service_t -> struct telnet_service Remove misleading typedef and redundant suffix from struct telnet_service. 2009-11-13 Zachary T Welch * : gdb_connection_t -> struct gdb_connection Remove misleading typedef and redundant suffix from struct gdb_connection. 2009-11-13 Zachary T Welch * : aduc702x_flash_bank_t -> struct aduc702x_flash_bank Remove misleading typedef and redundant suffix from struct aduc702x_flash_bank. 2009-11-13 Zachary T Welch * : pic32mx_mem_layout_t -> struct pic32mx_mem_layout Remove misleading typedef and redundant suffix from struct pic32mx_mem_layout. 2009-11-13 Zachary T Welch * : nand_block_t -> struct nand_block Remove misleading typedef and redundant suffix from struct nand_block. 2009-11-13 Zachary T Welch * : str9x_flash_bank_t -> struct str9x_flash_bank Remove misleading typedef and redundant suffix from struct str9x_flash_bank. 2009-11-13 Zachary T Welch * : str7x_flash_bank_t -> struct str7x_flash_bank Remove misleading typedef and redundant suffix from struct str7x_flash_bank. 2009-11-13 Zachary T Welch * : stm32x_flash_bank_t -> struct stm32x_flash_bank Remove misleading typedef and redundant suffix from struct stm32x_flash_bank. 2009-11-13 Zachary T Welch * : stellaris_flash_bank_t -> struct stellaris_flash_bank Remove misleading typedef and redundant suffix from struct stellaris_flash_bank. 2009-11-13 Zachary T Welch * : pic32mx_flash_bank_t -> struct pic32mx_flash_bank Remove misleading typedef and redundant suffix from struct pic32mx_flash_bank. 2009-11-13 Zachary T Welch * : ocl_priv_t -> struct ocl_priv Remove misleading typedef and redundant suffix from struct ocl_priv. 2009-11-13 Zachary T Welch * : nand_manufacturer_t -> struct nand_manufacturer Remove misleading typedef and redundant suffix from struct nand_manufacturer. 2009-11-13 Zachary T Welch * : nand_flash_controller_t -> struct nand_flash_controller Remove misleading typedef and redundant suffix from struct nand_flash_controller. 2009-11-13 Zachary T Welch * : mflash_bank_t -> struct mflash_bank Remove misleading typedef and redundant suffix from struct mflash_bank. 2009-11-13 Zachary T Welch * : mflash_gpio_drv_t -> struct mflash_gpio_drv Remove misleading typedef and redundant suffix from struct mflash_gpio_drv. 2009-11-13 Zachary T Welch * : lpc3180_nand_controller_t -> struct lpc3180_nand_controller Remove misleading typedef and redundant suffix from struct lpc3180_nand_controller. 2009-11-13 Zachary T Welch * : lpc288x_flash_bank_t -> struct lpc288x_flash_bank Remove misleading typedef and redundant suffix from struct lpc288x_flash_bank. 2009-11-13 Zachary T Welch * : flash_driver_t -> struct flash_driver Remove misleading typedef and redundant suffix from struct flash_driver. 2009-11-13 Zachary T Welch * : faux_flash_bank_t -> struct faux_flash_bank Remove misleading typedef and redundant suffix from struct faux_flash_bank. 2009-11-13 Zachary T Welch * : cfi_fixup_t -> struct cfi_fixup Remove misleading typedef and redundant suffix from struct cfi_fixup. 2009-11-13 Zachary T Welch * : cfi_spansion_pri_ext_t -> struct cfi_spansion_pri_ext Remove misleading typedef and redundant suffix from struct cfi_spansion_pri_ext. 2009-11-13 Zachary T Welch * : cfi_intel_pri_ext_t -> struct cfi_intel_pri_ext Remove misleading typedef and redundant suffix from struct cfi_intel_pri_ext. 2009-11-13 Zachary T Welch * : avrf_flash_bank_t -> struct avrf_flash_bank Remove misleading typedef and redundant suffix from struct avrf_flash_bank. 2009-11-13 Zachary T Welch * : at91sam7_flash_bank_t -> struct at91sam7_flash_bank Remove misleading typedef and redundant suffix from struct at91sam7_flash_bank. 2009-11-13 Zachary T Welch * : jtag_command_container_t -> union jtag_command_container Remove misleading typedef from union jtag_container. 2009-11-13 Zachary T Welch * : end_state_command_t -> struct end_state_command Remove misleading typedef from struct end_state_command. 2009-11-13 Zachary T Welch * : stableclocks_command_t -> struct stableclocks_command Remove misleading typedef from struct stableclocks_command. 2009-11-13 Zachary T Welch * : pathmove_command_t -> struct pathmove_command Remove misleading typedef from struct pathmove_command. 2009-11-13 Zachary T Welch * : cmd_queue_page_t -> struct cmd_queue_page Remove misleading typedef from struct cmd_queue_page. 2009-11-13 Zachary T Welch * : more vsllink typedef cleanup Remove useless typedef for struct insert_insignification_operation. 2009-11-13 Zachary T Welch * : presto_t -> struct presto Remove useless typedef. 2009-11-13 Zachary T Welch * : jlink_jtag_t -> struct jlink Remove misleading typedef and redundant suffix. 2009-11-13 Zachary T Welch * : pending_scan_result_t -> struct pending_scan_result Remove misleading typedef from struct struct pending_scan_result. Future patches need to remove these duplicated types and code. 2009-11-13 Zachary T Welch * : use struct jtag_tap_event_action Remove useless typedef and redundant suffix from jtag_tap_event_action. 2009-11-13 Zachary T Welch * : jtag_interface_t -> struct jtag_interface Remove useless typedef and redundant suffix from struct jtag_interface. 2009-11-13 Zachary T Welch * : bitq_interface_t -> struct biq_interface Remove useless typedef and redundant suffix. 2009-11-13 Zachary T Welch * : scan_field_t -> struct scan_field Remove useless structure typedef. 2009-11-13 Zachary T Welch * : fileio_t -> struct fileio Remove useless structure typedef. 2009-11-13 Zachary T Welch * : remove accidental artifact Somehow I managed to slip a temporary build file into the tree. Remove it and update the .gitignore file so it doesn't happen again. 2009-11-11 Zachary T Welch * : add src/hello.c to augment new command tutorial The hello module provides the 'hello' command, printing a greetings to the command console. It can grow to serve as pedagogical example of services that OpenOCD developers should use: a runnable style guide. 2009-11-10 Zachary T Welch * : command_handler_t: make args parameter const This patch prevents command handlers from modifying the strings passed in the 'args' array. 2009-11-10 Zachary T Welch * : command_handler_t: make argc unsigned The number of command arguments will always be 0 or more, so use the right type in handlers. This has a cascading effect up through the layers, but the new COMMAND_HANDLER macros prevented total chaos. 2009-11-10 Zachary T Welch * : use CALL_COMMAND_HANDLER instead of direct calls By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or even removed in inherited signatures, without requiring revisiting all of the various call sites. 2009-11-10 Zachary T Welch * : nand: add NAND_DEVICE_COMMAND_HANDLER macro Abstracts the extended NAND command handling to allow the function signature to be controlled by __COMMAND_HANDLER. 2009-11-10 Zachary T Welch * : add FLASH_BANK_COMMAND_HANDLER macro The FLASH_BANK_COMMAND_HANDLER provides an extended command handler using the __COMMAND_HANDLER macro, whereby changing that macro is sufficient to update flash handlers with the new signature. It also enforces uniform style and scope when implementing this handler. 2009-11-10 Zachary T Welch * : arm_adi,armv7[am]: use COMMAND_HELPER for helpers Rewrites the dap_* command helpers to use the COMMAND_HELPER paradigm. Uses CALL_COMMAND_HELPER to hide inherited calling conventions. 2009-11-09 Zachary T Welch * : use COMMAND_HANDLER macro to define all commands 2009-11-10 Zachary T Welch * : add COMMAND_HANDLER and COMMAND_HELPER macros The COMMAND_HANDLER and COMMAND_HELPER macros allow commands to be defined in a manner that decouples them from the exact order and type of their parameters. Once converted, incremental changes to the command handler type can be addressed in incremental patches that do not need to touch the entire tree. These macros' implementation, __COMMAND_HANDLER, is used to define the new command_handler_t type, and additional patches will use it to derive new macros to define extended command types (e.g. flash, nand, pld). The CALL_COMMAND_HANDLER provides a means of calling helpers or nested handlers from withing a command handler. This patch uses C99 varadic macro expansion. Please report compilers that cannot handle this code. 2009-11-13 David Brownell * : Cortex-A8: fix indent The "remove (forward) declarations" patch goofed indentation on the "cortexa8_target" struct; fix. Signed-off-by: David Brownell 2009-11-12 David Brownell * : ETM: start support for ETMv2+ ARM11 and newer cores include updated ETM modules. Recognize their version codes and some key config differences. Sanity checked on an OMAP2, with an ETM11RV r0p1 (ETMv3.1). This still handles only scan chain 6, with at most 128 registers. Newer cores (mostly, Cortex) will need to use the DAP instead. Note that the newer ETM modules don't quite fit the quirky config model of the older ones ... having more port widths is easy, but the modes aren't the same. That still needs to change. Fix a curious bug ... how did the register cache NOT get saved?? Signed-off-by: David Brownell 2009-11-12 Jonas Horberg * : parport: add support for the jtag_khz command. Add the khz and speed_div functions to the parport interface driver. Add the parport_toggling_time function that tells the parport driver how long (in nanoseconds) it takes for the hardware to toggle TCK. [dbrownell@users.sourceforge.net: tweak doc for clarity, mention multimeter, and whitespace fixes] Signed-off-by: David Brownell 2009-11-11 David Brownell * : ETM: use new toplevel ETM handle Make ETM itself use the new toplevel ETM handle, instead of the to-be-removed lower level one. As of this patch, nothing should be using the old ARM7/ARM9-specific handle. Signed-off-by: David Brownell 2009-11-11 David Brownell * : ETM: update arm[79]tdmi_examine() Make ARM7 and ARM9 cores use the new toplevel ETM handle to trigger ETM setup, not the to-be-removed lower level one. Signed-off-by: David Brownell 2009-11-10 Zachary T Welch * : fix 'jtag interface' behavior Without this patch, running "openocd -c 'jtag interface'" segfaults. Now, it returns the string "undefined" when the interface is unset. 2009-11-11 Zachary T Welch * : add help regardless of callback Add help for commands regardless of whether a handler is involved. With this, all sorts of new commands can be found in 'help' text. Hopefully, all of them have been documented.... Sadly, the lsort function appears to handle nested lists poorly, such that sub-commands do not group with their parents. 2009-11-11 Zachary T Welch * : add command_name helper The command_name function returns a malloced string for a given command and its parents. This can be used to display a message to the user, but it is used internally to handle registration and syntax errors. This helps permit arbitrary command nesting. 2009-11-11 Zachary T Welch * : remove obsolete doxygen comments Documenting command handler parameters is redundant and pointless. 2009-11-10 Zachary T Welch * : cortex_a8: remove declarations, use static keyword 2009-11-10 Zachary T Welch * : change argv to args in command handlers Subsequent patches expect all command handlers to use a uniform parameter naming scheme. In the entire tree, these two files used standard 'argv' instead of our non-standard 'args'. This patch opts to reduces the noise required to unify the command handlers, using dominant 'args' form. A future patch may be used to convert us back to the standard argv, but that requires coordination with all developers to minimize disruptions. 2009-11-09 Zachary T Welch * : command.c: make private routines static This patch also improves the signature of run_command function. 2009-11-09 Zachary T Welch * : time_support: improve use of types Update timeval_add_time to use long int; implement timeval_add with it. Update timeval_ms to check gettimeofday return value, return int64_t. 2009-11-11 David Brownell * : ETM cleanup Various cleanups of ETM related code. - Saner error return paths - Simplify arm7_9 init ... no need for extra zeroing! - Shrink some lines - Tweak some diagnostics - Use shorter name for ETM struct type. - Don't exit() and similar. The diagnostics look forward to having this ETM code work with more than just ARM7/ARM9. Signed-off-by: David Brownell 2009-11-10 David Brownell * : ARM720: bugfix The "ARM720 uses the new inheritance/nesting scheme" patch wrongly scrubbed a calloc() from arm720t_target_create(). Signed-off-by: David Brownell 2009-11-10 David Brownell * : target.cfg: (re)move some bogus reset_config lines General rule, this is all board-specific and doesn't belong in target config files. Some of these were just cosmetic. Signed-off-by: David Brownell 2009-10-27 Michael Bruck * : arm11: add etmr/etmw registers to access ETM via DBGTAP scan chain First cut of these commands. Øyvind tinkered a bit with the number parsing to bring it up to speed + rebased it. Ready for testing. Signed-off-by: Øyvind Harboe 2009-11-10 Øyvind Harboe * : telo.cfg: fix search paths Add the missing "target/" prefix for scripts in the target folder. Signed-off-by: Øyvind Harboe 2009-11-10 David Brownell * : ARM920: implement basic MMU ops mmu() works; virt2phys() fails and logs an error. Signed-off-by: David Brownell 2009-11-10 David Brownell * : Target: fix bad error messages And shrink a few too-long lines. Signed-off-by: David Brownell 2009-11-10 Øyvind Harboe * : tcl: HostOs now picks up eCos as well during compile time Signed-off-by: Øyvind Harboe 2009-11-09 Zachary T Welch * : command.c: make commands static Removes useless declarations, moving the handler functions to appear before their use in the (much bigger) command registriation function. 2009-11-09 Zachary T Welch * : jtag: remove useless declarations Contrary to my previous assessment, some opportunities to remove forward declarations were overlooked. Remove them by moving the definitions of the command registration and interface structure to the end of files. 2009-11-09 Zachary T Welch * : {pic32m,stm32}x.c: remove useless declarations Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch 2009-11-09 Zachary T Welch * : flash/.c: remove useless declarations Remove useless forward declarations. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch 2009-11-09 Zachary T Welch * : flash/at91sam[37].c: remove useless declarations Remove useless forward declarations. Moves command registration to end of file. Moves flash structure definitions to end of files. Changes a few references to global flash structure to local refs. Signed-off-by: Zachary T Welch 2009-11-09 Zachary T Welch * : flash/*nand*.c: remove useless declarations Remove useless forward declarations. Moves command registration to end of files. Moves flash structure definition to end of files. Signed-off-by: Zachary T Welch 2009-11-09 David Brownell * : Revert "target: add target->type->has_mmu fn" This patch introduced a bug preventing flash writes from working on Cortex-M3 targets like the STM32. Moreover, it's the wrong approach for handling no-MMU targets. The right way to handle no-MMU targets is to provide accessors for physical addresses, and use them everywhere; and any code which tries to work with virtual-to-physical mappings should use a identity mapping (which can be defaulted). And ... we can tell if a target has an MMU by seeing if it's got an mmu() method. No such methood means no MMU. Signed-off-by: David Brownell 2009-11-09 David Brownell * : User's Guide: Flash/NAND doc tweaks Rename the "Drivers, Options, and Commands" sections to be just "Driver List" matching the earlier reference. Add an example of parallel CFI flash. Signed-off-by: David Brownell 2009-11-09 Zachary T Welch * : target.h: remove extern keyword and wrap Removes 'extern' keyword from function prototypes and wraps long lines. 2009-11-09 Zachary T Welch * : src/flash: remove 'extern' and wrap headers Removes 'extern' keywords from function prototypes in the flash headers. Wraps long lines to fit into 80 columns. Adds multiple inclusion protection for s3c2xx_nand.h. 2009-11-09 Zachary T Welch * : src/helper: wrap and clean headers. Remove all useless 'extern' keywords from function prototypes. Wraps long lines for readability. 2009-11-09 David Brownell * : EmbeddedICE: minor cleanups Add comments (Doxygen and normal), remove unused code, shrink some overlong lines. Get rid of a forward decl. Signed-off-by: David Brownell 2009-11-06 Zachary T Welch * : Add private header for ARM11 internals. Reduces confusion about location of associated routines and reduces clutter in the arm11 header. Removes extra whitespace around the lines touched by these changes. 2009-11-08 David Brownell * : ARM: minor simulator cleanup Make several functions be static. Shrink some of the overlong lines. Use pure tab indents in some places that mixed in spaces. This gives a minor object code shrink (about 2% on amd64). Signed-off-by: David Brownell 2009-11-08 David Brownell * : target.cfg: remove "-work-area-virt 0" The semantics of "-work-area-virt 0" (or phys) changed with the patch to require specifying physical or virtrual work area addresses. Specifying zero was previously a NOP. Now it means that address zero is valid. This patch addresses three related issues: - MMU-less processors should never specify work-area-virt; remove those specifications. Such processors include ARM7TDMI, Cortex-M3, and ARM966. - MMU-equipped processors *can* specify work-area-virt... but zero won't be appropriate, except in mischievous contexts (which hide null pointer exceptions). Remove those specs from those processors too. If any of those mappings is valid, someone will need to submit a patch adding it ... along with a comment saying what OS provides the mapping, and in which context. Example, say "works with Linux 2.6.30+, in kernel mode". (Note that ARM Linux doesn't map kernel memory to zero ...) - Clarify docs on that "-virt" and other work area stuff. Seems to me work-area-virt is quite problematic; not every operating system provides such static mappings; if they do, they're not in every MMU context... Signed-off-by: David Brownell 2009-11-06 David Brownell * : commit a9abfa7d06dbcfded97b7fb41f50d3581c24fbae Author: David Brownell Date: Fri Nov 6 14:57:21 2009 -0800 2009-11-05 Zachary T Welch * : Simplify nand indentation. Removes check covered by new nand_command_get_device_by_num helper. Reverses logic of probe check to further reduce indentation. 2009-11-06 Zachary T Welch * : Fix arm11 vcr command parsing. 2009-11-05 David Brownell * : ARM: other code uses the new inheritance/nesting scheme Remove most remaining uses of target->arch_info from ARM infrastructure, where it hasn't already been updated. Signed-off-by: David Brownell 2009-11-05 David Brownell * : ARM7TDMI uses the new inheritance/nesting scheme Use target_to_arm7_9(), replacing needless pointer traversals. Also: remove now-useless contents of arm7tdmi struct; it's almost ready to be removed. Signed-off-by: David Brownell 2009-11-05 David Brownell * : XScale uses the new inheritance/nesting scheme Use target_to_xscale(), replacing needless pointer traversals and simplifying a bunch of code. Signed-off-by: David Brownell 2009-11-05 David Brownell * : ARM966 uses the new inheritance/nesting scheme Use target_to_arm966(), replacing needless pointer traversals. Signed-off-by: David Brownell 2009-11-05 David Brownell * : FA526 uses the new inheritance/nesting scheme Replace needless pointer traversals, simplify. Signed-off-by: David Brownell 2009-11-05 David Brownell * : Cortex-M3: use the new inheritance/nesting scheme Use new target_to_cm3() and target_to_armv7m() inlines, instead of a series of x->arch_info conversions. Remove arch_info, since nothing uses it. Also fix an omission: the Cortex-M3 commands didn't verify that they were operating on that kind of target. Add comment about the ARMv7M version of that omission. Signed-off-by: David Brownell 2009-11-05 David Brownell * : ARM7TDMI: remove forward decls The forward decls are just code clutter; remove them, by moving their references after definitions. This is another file which never needed even one internal forward declaration. Also shrink a few overly-long lines with function declarations or definitions; get rid of arm7tdmi_register_commands(), it's not needed (just delegated); minor whitespace declutter. Signed-off-by: David Brownell 2009-11-05 David Brownell * : FA526: remove exports and forward decls Unneeded exports cause confusion about the module interfaces. Make most functions static. The forward decls are just code clutter; remove them, by moving their references after definitions. This is another file which never needed even one internal forward declaration. Signed-off-by: David Brownell 2009-11-05 David Brownell * : ARM966: remove exports and forward decls Unneeded exports cause confusion about the module interfaces. Make most functions static. The forward decls are just code clutter; remove them, by moving their references after definitions. This is another file which never needed even one internal forward declaration. Also remove needless arm966e_init_target(), in favor of the arm9tdmi routine to which it delegates its work. This saved over 100 bytes of code on x86_32. Signed-off-by: David Brownell 2009-11-05 David Brownell * : ARM920: remove exports and forward decls Unneeded exports cause confusion about the module interfaces. Make most functions static. Add a short header comment. The forward decls are just code clutter; remove them, by moving their references after definitions. This is another file which never needed even one internal forward declaration. This saved almost 900 bytes of code on x86_32; it seems the compiler can leverage its knowledge that these functions are not called from the outside world... Signed-off-by: David Brownell 2009-10-23 Zachary T Welch * : Improve str9x config command argument parsing. 2009-10-22 Zachary T Welch * : Improve stm32x.c command argument parsing. 2009-10-22 Zachary T Welch * : Improve pic32mx.c command argument parsing. 2009-10-23 Zachary T Welch * : Improve lpc3180_nand_controller.c parsing. This fixes a memory leak in lpc3180_nand_device_command by reordering the malloc to occur after all parsing has completed. 2009-10-23 Zachary T Welch * : Improve lpc288x.c command argument parsing. 2009-10-23 Zachary T Welch * : Improve cfi.c command argument parsing. 2009-10-22 Zachary T Welch * : Improve orion_nand.c command argument parsing. 2009-10-22 Zachary T Welch * : Improve at91sam7.c command argument parsing. 2009-10-22 Zachary T Welch * : Improve nand.c command argument parsing. 2009-10-23 Zachary T Welch * : Add Flash/NAND bank command argument helpers. This eliminates redundant code for parsing and retreiving the bank specified from a script command argument. This patch was written to replace existing functionality; however, the parsing logic can be updated later to allow flash commands to accept bank names as well as their numbers. 2009-10-22 Zachary T Welch * : Improve etm command argument parsing. 2009-10-24 Zachary T Welch * : Improve arm_adi_v5 command argument parsing. 2009-10-24 Zachary T Welch * : Improve xscale command argument parsing. 2009-10-24 Zachary T Welch * : Improve arm966e command argument parsing. 2009-10-24 Zachary T Welch * : Improve arm920t command argument parsing. 2009-10-22 Zachary T Welch * : Improve arm7_9_common command argument parsing. 2009-10-24 Zachary T Welch * : Improve armv7a command argument parsing. 2009-10-24 Zachary T Welch * : Improve xscale command argument parsing. 2009-10-24 Zachary T Welch * : Update all server port command to use new helper. 2009-10-22 Zachary T Welch * : Improve target.c command argument parsing. Passes cmd_ctx into parse_load_image_command_args for reporting the parsing errors therein. 2009-10-22 Zachary T Welch * : Improve debug_level command argument parsing. 2009-10-22 Zachary T Welch * : Add stringify macros in src/helper/types.h. 2009-10-27 Øyvind Harboe * : arm11: check if target is halted before executing mrc/mcr commands. Signed-off-by: Øyvind Harboe 2009-10-26 Øyvind Harboe * : target: check args to mrc/mcr. Signed-off-by: Øyvind Harboe 2009-10-24 Øyvind Harboe * : TODO: Wrote up list of remaining tasks for target->type->mrc/mcr Signed-off-by: Øyvind Harboe 2009-10-24 Øyvind Harboe * : cortex_a8: add mrc mcr interface. Signed-off-by: Øyvind Harboe 2009-11-05 David Brownell * : watchpoint_add() cleanup Fail watchpoint_add() if it's the same address but the parameters are different ... don't just assume having the same address means the same watchpoint! (Note that overlapping watchpoints aren't detected...) Handle unrecognized return codes more sanely; don't exit()! And describe command params right. Signed-off-by: David Brownell 2009-11-05 David Brownell * : Cortex-M3: minor cleanup There's no reason to read which interrupts are enabled from the NVIC; that state isn't used. Plus, it's highly dynamic since firmware can change it at any time; remove the support for those state records. Remove duplicate definition of DWT_CTRL address; shrink a line. Signed-off-by: David Brownell 2009-11-05 David Brownell * : ARMv7M: add docs, remove exports Add Doxygen for the exported ARMv7-M interfaces. Make the non-exported stuff static. Remove functions and data which are now observably unused. Add comment about a small speedup that the run_algorithm() logic could use. Shrink a few too-long lines. Signed-off-by: David Brownell 2009-10-26 Øyvind Harboe * : Make default implementation of mdw/mmw phys return error 'not implemented' 2009-10-30 Øyvind Harboe * : debug interface: get rid of unused pre_debug fn Removing unused code makes it much less mysterius. Signed-off-by: Øyvind Harboe 2009-11-04 David Brownell * : ft2232: cleanup Previous patch somehow made GCC lose some of its cookies; work around, zero-init that struct. Clean up code from the previous patch. Signed-off-by: David Brownell 2009-11-04 David Brownell * : PXA255: support Intel "Lubbock" platform Config for Intel's "Lubbock" PXA255 development board. Even more so than the PXA255 itself, this is obsolete. AFAIK this was the first generally available development platform for PXA255. Intel stopped providing these after other devel boards became available. One interesting thing about this board from the OpenOCD perspective is probably its flash configuration. Each bank is 32 bits wide, built from two 16-bit StrataFlash chips wired in parallel. This doubles throughput ... it reads/writes 32 bits in the time a single chip takes to write just 16 bits. This conf mostly works, given XScale bugfixes, but has some issues (notably: no access to the on-board SDRAM) flagged by FIXMEs. Signed-off-by: David Brownell 2009-11-04 David Brownell * : Version 0.3.0 Remove -dev tag, remove -rc tag. Signed-off-by: David Brownell 2009-11-04 David Brownell * : Doc: fix broken link Signed-off-by: David Brownell 2009-11-04 David Brownell * : Other files: stop referring to ChangeLog too The ChangeLog idiom is redundant given any decent SCM. Time to phase it out here. Signed-off-by: David Brownell 2009-11-04 David Brownell * : Tweak release docs Contrast releases to git snapshot tarballs. Mention that releases have some quality-improvement focus, with special non-"dev" version IDs. Explain more about version IDs, using "openocd -v" to see them, etc; Make release milestone info be less specific about timing, and presume we have both a merge window and an RC stage. Rework the release process information to match reality a bit more closely. Reference the version.sh script (in one place the wrong script was referenced). Bugfix branches get special treatment, while non-bugfix releases are more or less what *defines* being the mainline branch. Signed-off-by: David Brownell 2009-11-04 Øyvind Harboe * : configure: fix build problems with eCos Various include files require some other include files to be included first. Copied solution from net/if.h. Signed-off-by: Øyvind Harboe 2009-11-03 Øyvind Harboe * : target: 20 second timeout/megabyte for CRC check There was a fixed 20 second timeout which is too little for large, slow timeout checks. Signed-off-by: Øyvind Harboe 2009-11-02 Øyvind Harboe * : target: require working area for physical/virtual addresses to be specified Fixed bug: if virtual address for working memory was not specified and MMU was enabled, then address 0 would be used. Require working address to be specified for both MMU enabled and disabled case. For some completely inexplicable reason this fixes the regression in svn 2646 for flash write in arm926ejs target. The logs showed that MMU was disabled in the case below: https://lists.berlios.de/pipermail/openocd-development/2009-November/011882.htmlSigned-off-by: Øyvind Harboe 2009-11-01 David Brownell * : User's Guide: more init info, autoprobing, etc Mention the autoprobing as a tool that may be useful when figuring out how to set up; and add a section showing how to use that mechanism (with an example). Strengthen the differences between config and run stage descriptions; add a section for the latter. Mention Dragonite. Signed-off-by: David Brownell 2009-11-01 Freddie Chopin * : remove "-ircapture 0x1 -irmask 0x1" from stm32.cfg Gets rid of the runtime warning "stm32.bs: nonstandard IR mask" [dbrownell@users.sourceforge.net: line lengths, note issue, section ref] Signed-off-by: David Brownell 2009-10-29 Freddie Chopin * : target.cfg: use $_TARGETNAME for flash This gets rid of runtime warnings from the use of numbers. STM32 and LPC2103 were tested. Other LPC updates are the same, and so are safe. The CFI updates match other tested changes now in the tree. Signed-off-by: David Brownell 2009-10-30 David Brownell * : ARM926: fix arm926ejs_mmu() reading from bad pointer I'm suspecting this code can never have worked, since the original commit (svn #335) in early 2008. Fix is just copy/paste from another (working) function. Signed-off-by: David Brownell 2009-10-29 Michael Roth * : SVF: fix checking bit pattern against length The code works like follow (N = bit_len): N -1 %4 2<< -1 ~ (binary) -------------------------------------------------- 1 0 0 2 1 1111 1110 2 1 1 4 3 1111 1100 3 2 2 8 7 1111 1000 4 3 3 16 15 1111 0000 5 4 0 2 1 1111 1110 6 5 1 4 3 1111 1100 7 6 2 8 7 1111 1000 8 7 3 16 15 1111 0000 ... ... ... ... ... ... Addresses a bug reported by FangfangLi . [dbrownell@users.sourceforge.net: fix spelling bug too] Signed-off-by: Michael Roth Cc: FangfangLi Signed-off-by: David Brownell 2009-10-29 David Brownell * : XSVF: bugfix handling state paths Implement XSVF support for detailed state path transitions, by collecting sequences of XSTATE transitions into paths and then calling pathmove(). It seems that the Xilinx tools want to force state-by-state transitions instead of relying on the standardized SVF paths. Like maybe there are XSVF tools not implementing SVF paths, which are all that we support using svf_statemove(). So from IRPAUSE, instead of just issuing "XSTATE DRPAUSE" they will issue XSTATES for each intermediate state: first IREXIT2, then IRUPDATE, DRSELECT, DRCAPTURE, DREXIT1, and finally DRPAUSE. This works now. Handling of paths that go *through* reset is a trifle dodgey, but it should be safe. Tested-by: Wookey Signed-off-by: David Brownell 2009-10-28 Zachary T Welch * : The openocd 0.3.0-rc0 release. Remove '-dev' version tag: 0.3.0-rc0-dev -> 0.3.0-rc0 2009-10-28 David Brownell * : ARM926: remove exports and forward decls Unneeded exports cause confusion about the module interfaces. Only the Feroceon code builds on this, so only routines it reuses should be public.. Make most remaining functions static, and fix some of the line-too-long issues. The forward decls are just code clutter; move their references later, after the normal declarations. Turns out we don't need even one forward declaration in this file. Signed-off-by: David Brownell 2009-10-22 Zachary T Welch * : Add script to test the release process. Runs the release.sh script in a freshly cloned repository, charting one hypothetical future of OpenOCD's lineage. 2009-10-20 Zachary T Welch * : Factor version munging capabilities out of release.sh. 2009-10-24 Zachary T Welch * : Add git2cl from repo.or.cz as a submodule in tools/git2cl. 2009-10-27 Nicolas Pitre * : ARM: fix single-step of Thumb unconditional branch Only type 1 branch instruction has a condition code, not type 2. Currently they're both tagged with ARM_B which doesn't allow for the distinction. Signed-off-by: Nicolas Pitre Signed-off-by: David Brownell 2009-10-27 Oleg Seiljus * : Signalyzer: H2 and H4 support This patch includes partial support for these new JTAG adapters. More complete support will require updates to the libftdi code, for EEPROM access. [dbrownell@users.sourceforge.net: fix whitespace, linelen, etc ] Signed-off-by: David Brownell 2009-10-27 Nicolas Pitre * : ARM: fix Thumb mode handling when single-stepping register based branch insns Currently, OpenOCD is always caching the PC value without the T bit. This means that assignment to the PC register must clear that bit and set the processor state to Thumb when it is set. And when the PC register value is transferred to another register or stored into memory then the T bit must be restored. Discussion: It is arguable if OpenOCd should have preserved the original PC value which would have greatly simplified this code. The processor state could then be obtained simply by getting at bit 0 of the PC. This however would require special handling elsewhere instead since the T bit is not always relevant (like when PC is used with ALU insns or as an index with some addressing modes). It is unclear which way would be simpler in the end. Signed-off-by: Nicolas Pitre Signed-off-by: David Brownell 2009-10-27 Nicolas Pitre * : ARM: call thumb_pass_branch_condition() only for actual branch opcodes Calling it first with every opcodes and then testing if the opcode was indeed a branch instruction is wasteful and rather strange. If ever thumb_pass_branch_condition() has side effects (say, like printing a debugging traces) then the result would be garbage for most Thumb instructions which have no condition code. While at it, let's make the nearby code more readable by reducing some of the redundant brace noise and reworking the error handling construct. Signed-off-by: Nicolas Pitre Signed-off-by: David Brownell 2009-10-26 David Brownell * : JTAG: "jtag newtap ..." cleanup Get rid of needless variable, improve and shrink diagnostic. Signed-off-by: David Brownell 2009-10-26 David Brownell * : omap3530: target reset/init improvements Now I can issue "reset halt" and have everything act smoothly; the vector_catch hardware is obviously not kicking in, but the rest of the reset sequence acts sanely. - TAP "setup" event enables the DAP, not omap3_dbginit (resolving a chicken/egg bug I noted a while back) - Remove stuff from omap3_dbginit which should never be used in event handlers - Cope better with slow clocking during reset Also, stop hard-wiring the target name: use the input params in the standard way, and set up $_TARGETNAME as an output param. Signed-off-by: David Brownell 2009-10-26 Spencer Oliver * : Fix incorrect line endings Signed-off-by: Spencer Oliver 2009-10-26 Wookey * : balloon3 board base config This is the very basic board config for the balloon3 board cpu JTAG channel. The rest of the config comprises another 14 .cfg files which I suspect openocd doesn't really want all of. I'm still not sure how to deal with this. I'll post another mail/patch to discuss. Signed-off-by: David Brownell 2009-10-23 Øyvind Harboe * : Idea for adding watchpoint masks. 2009-10-25 David Brownell * : minor fixes to TODO list 2009-10-25 Øyvind Harboe * : check if mmu is enabled before using mmu code path 2009-10-25 David Brownell * : JTAG: jtag_tap_init() bugfixes Stop allocating three bytes per IR bit, and cope somewhat better with IR lengths over 32 bits. Signed-off-by: David Brownell 2009-10-24 Øyvind Harboe * : vector_catch and watchpoint TODO items. 2009-10-23 Øyvind Harboe * : Improve help for arm9 vector_catch. 2009-10-23 Øyvind Harboe * : mcr/mrc interface work. Implemented for arm926ejs and arm720t. mcr/mrc commands added. 2009-10-23 David Brownell * : jtag: clean up TAP state name handling Some cosmetic cleanup, and switch to a single table mapping between state names and symbols (vs two routines which only share that state with difficulty). Get rid of TAP_NUM_STATES, and some related knowledge about how TAP numbers are assigned. Later on, this will help us get rid of more such hardwired knowlege. Signed-off-by: David Brownell 2009-10-22 Nicolas Pitre * : Ferocion: fix corruption of r0 when resuming Thumb mode The wrong variable (pc instead of r0) was used. Furthermore, someone did cover this error by stupidly silencing the compiler warning that occurred before a dummy void reference to r0 was added to the code. Signed-off-by: David Brownell 2009-10-22 David Brownell * : ETM: rename registers, doc tweaks The register names are perversely not documented as zero-indexed, so rename them to match that convention. Also switch to lowercase suffixes and infix numbering, matching ETB and EmbeddedICE usage. Update docs to be a bit more accurate, especially regarding what the "trigger" event can cause; and to split the issues into a few more paragraphs, for clarity. Make "configure" helptext point out that "oocd_trace" is prototype hardware, not anything "real". Signed-off-by: David Brownell 2009-10-21 Øyvind Harboe * : mww_phys retired. Replaced by generic mww phys in target.c 2009-10-21 Øyvind Harboe * : retire obsolete mXY_phys commands. Handled by generic memory read/modify commands and target read/write physical memory callbacks. 2009-10-21 Øyvind Harboe * : add support for target_read/write_phys_memory callbacks. 2009-10-21 Øyvind Harboe * : commit 69a6037ce6e76dca4117689208358231dffa0929 Author: Øyvind Harboe Date: Wed Oct 21 13:10:32 2009 +0200 2009-10-21 Øyvind Harboe * : Retire obsolete and superfluous implementations of virt2phys in each target. This is done in a polymorphic implementation in target.c 2009-10-21 Øyvind Harboe * : Defined target_write_memory() to be able to handle implementing breakpoints for read only ram(e.g. MMU write protected. 2009-10-20 David Brownell * : XSVF: use svf_add_statemove() XSVF improvements: - Layer parts of XSVF directly over SVF, calling svf_add_statemove() instead of expecting jtag_add_statemove() to conform to the SVF/XSVF requirements (which it doesn't). This should improve XSTATE handling a lot; it removes most users of jtag_add_statemove(), and the comments about how it should really do what svf_add_statemove() does. - Update XSTATE logic to be a closer match to the XSVF spec. The main open issue here is (still) that this implementation doesn't know how to build and submit paths from single-state transitions ... but now it will report that error case. - Update the User's Guide to mention the two utility scripts for working with XSVF, and to mention the five extension opcodes. Handling of state transition paths is, overall, still a mess. I think they should all be specified as paths not unlike SVF uses, and compiled to the bitstrings later ... so that we can actually make sense of the paths. (And see the extra clocks, detours through RUN, etc.) Signed-off-by: David Brownell 2009-10-20 Øyvind Harboe * : Added the faux flash driver and target. Used for testing. 2009-10-20 Øyvind Harboe * : More svn to git version string fixes. 2009-10-19 David Brownell * : davinci: add watchdog reset method Lightly tested on dm365. Signed-off-by: David Brownell 2009-10-19 David Brownell * : SVF/XSVF: comment and whitespace fixes SVF: comment the predefined/default paths; make them static const SVF, XSVF: whitespace fixes, mostly so copyrights display sanely Signed-off-by: David Brownell 2009-10-19 Redirect 'Slash' NIL * : MinGW: always use "-D__USE_MINGW_ANSI_STDIO" This is unfortunately needed to make stdio work like OpenOCD expects -- matching the ANSI-C standard, instead of MS-Windows. I tested it in both MinGW-W64 on Vista 64 and MinGW-W32 on XP, and I don't see any adverse effects to enabling it for all MinGW versions. 2009-10-19 David Brownell * : Doc: jtag_init must validate scan chain too Same requirement as like init_reset, and for the same reason: we need to start with a known and working state. 2009-10-19 David Brownell * : Ignore openocd.exe for "git status" 2009-10-19 oyvind * : Sync with official Jim Tcl repository. 2009-10-18 Dean Glazeski * : SDRAM and clock configuration for the SAM9-L9260 board from Olimex 2009-10-17 David Brownell * : Ignore two more generated files On Windows the name is "bin2char.exe". All operating systems now have "xscale_handler.h". 2009-10-17 Redirect \"Slash\" NIL * : jim-eventloop for MinGW-w64 Use JIM_WIDE_MODIFIER for the sscanf format, and apply it for MINGW32 as well as other Windows environments. (Microsoft doesn't conform to the C99 standard, and uses "%I64d" not "%lld" for "long long".) NB: __MINGW32__ should work on both w32 and w64,. 2009-10-16 David Brownell * : xscale: better fix for debug_handler.bin Generate a C struct with the data, and use that, instead of an assembly language file. The assembly language causes issues on Darwin and MS-Windows, which don't necessarily use GNU AS; or if they do, don't necessarily use its ELF syntax. It's also better in two other ways: fewer global symbols; and the init-time size check gets optimized away at compile time. (Unless it fails, in which case bigger chunks of the file vanish.) Signed-off-by: David Brownell 2009-10-14 David Brownell * : portability updates Based on some patches from for preliminary Win64 compilation. More such updates are needed, but they need work. Compile tested on 64 and 32 bit Linuxes, and Cygwin. Signed-off-by: David Brownell 2009-10-14 Wookey * : Fw: [PATCH] OpenRD board configuration Ofrwarded from Ron, who's not subscribed. ----- Forwarded message from Ron ----- From: Ron Date: Wed, 14 Oct 2009 04:50:17 +1030 To: wookey@debian.org Subject: [PATCH] OpenRD board configuration X-Spam-Status: No, score=-3.6 required=4.5 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.5 This piggybacks on the 'sheevaplug' layout which uses the same Kirkwood SoC. Signed-off-by: Ron Lee 2009-10-14 Øyvind Harboe * : Work in progress on arm11 reset. Assert srst. 2009-10-14 David Brownell * : Fix problems building xscale_debug.S 2009-10-13 Lennert Buytenhek * : fix detection of PLD instructions Signed-off-by: Lennert Buytenhek Signed-off-by: David Brownell 2009-10-13 David Brownell * : cosmetic cleanup in TMS tables Cleanup comments and layout/whitespace in the TMS tables. Table contents stayed the same (ignoring whitespace). Signed-off-by: David Brownell 2009-10-11 Yauheni Kaliuta * : Do not replace virt2phys with the default one if it was assigned Signed-off-by: Yauheni Kaliuta 2009-10-13 Øyvind Harboe * : Missing type for eCos. 2009-10-13 Øyvind Harboe * : Delete commented out code. Add a bit of error checking. 2009-10-13 Øyvind Harboe * : Propagate error from assert, deassert and halt on tcl target object. 2009-10-12 Øyvind Harboe * : More error propagation fixes. 2009-10-12 Wookey * : Xilinx xcr3256.cfg basic config script 2009-10-12 Øyvind Harboe * : Propagate wDTR/rDTR failure immediately, otherwise it's followed up by timeout errors. 2009-10-12 Øyvind Harboe * : burst writes work fine. clean up junk. 2009-10-12 David Brownell * : simplify XScale debug handler installation Load the XScale debug handler from the read-only data section instead of from a separate file that can get lost or garbaged. This eliminates installation and versioning issues, and also speeds up reset handling a bit. Plus some minor bits of cleanup related to loading that handler: comments about just what this handler does, and check fault codes while writing it into the mini-icache. The only behavioral changes should be cleaner failure modes after errors during handler loading, and being a bit faster. NOTE: presumes GNU assembly syntax, with ".incbin"; and ELF, because of the syntax of the ".size" directive. Signed-off-by: David Brownell 2009-10-12 Øyvind Harboe * : Merge commit 'origin/master' 2009-10-12 Øyvind Harboe * : Supply default reset_config statement to make target scripts useful standalone and provide sensible default 2009-10-11 David Brownell * : xscale.c cleanup Declare almost everything as static. Move stuff to remove most forward references. Remove most forward declarations. Warn if the unimplemented register functions get called. Signed-off-by: David Brownell 2009-10-11 David Brownell * : xscale minor cleanup Add a header comment referencing useful XScale specs. Make most data static, and the tables readonly. Scrub extra blank lines. Return fault codes from one routine. Remove a needless NOP methood. (BUGFIX) When we update R0, mark R0 as dirty/valid ... not R15/PC! Signed-off-by: David Brownell 2009-10-10 Wookey * : Fix reset delays and tinker with ID's 2009-10-09 David Brownell * : add documentation about reset customization We added two overridable procedures; document them, and the two jtag arp_* operations they necessarily expose. Update the comment about the jtag_init_reset() routine; it's been obsolete for as long as it's had SRST support. Signed-off-by: David Brownell 2009-10-09 Øyvind Harboe * : ARM11 error checking 2009-10-09 Øyvind Harboe * : Added tip in documentation on how to translate quirky syntax 2009-10-08 David Brownell * : add overridable Tcl "init_reset" This abstracts the "jtag arp_init-reset" call into a method called from OpenOCD startup and reset processing. Platforms which have different requirements for how such hard resets must be performed can now override "init_reset" instead of needing to rebuild custom hacked versions of the server. Signed-off-by: David Brownell 2009-10-08 Rabeeh Khoury * : Function to flash SheevaPlug u-boot sectors This function is used by the SheevaPlug installer to flash the erase and re-flash the U-Boot environment in the NAND Flash. 2009-10-08 David Brownell * : prevent abort via polling during jtag_reset Observed: openocd: core.c:318: jtag_checks: Assertion `jtag_trst == 0' failed. The issue was that nothing disabled background polling during calls from the TCL shell to "jtag_reset 1 1". Fix by moving the existing poll-disable mechanism to the JTAG layer where it belongs, and then augmenting it to always pay attention to TRST and SRST. Signed-off-by: David Brownell 2009-10-08 David Brownell * : commit 4aacf01e194d09fb55dc759fc42ac42c8432c015 Author: Øyvind Harboe Date: Thu Oct 8 15:43:51 2009 +0200 2009-10-08 Øyvind Harboe * : Add .project to .gitignore 2009-10-08 Øyvind Harboe * : Update copyright statements. Make it easier to sync with Jim Tcl 2009-10-07 John Rigby * : iMX25 target support Signed-off-by: David Brownell 2009-10-07 David Brownell * : commit 03c9e48f88fa8b681b77c6c35d6da0a0e838a7e8 Author: dbrownell Date: Thu Oct 8 00:13:50 2009 +0000 2009-10-07 dbrownell * : Force sane SRST and TRST initialization At least some FT2232 based adapters don't necessarily come up in the expected state, with SRST and TRST disabled. Since other adapters could suffer the same problem, let's avoid needing to patch every driver and just force *all* adapters to initialize those values properly at server startup. git-svn-id: svn://svn.berlios.de/openocd/trunk@2824 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-07 dbrownell * : Remove much #ifdeffery around _DEBUG_JTAG_IO_ usage. Have DEBUG_JTAG_IO() always trigger necessary warnings. git-svn-id: svn://svn.berlios.de/openocd/trunk@2822 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-07 David Brownell * : commit f8c8d8bc72b2a87d2b2e3d583a052d8f0e5d22ea Author: dbrownell Date: Wed Oct 7 16:15:21 2009 +0000 2009-10-07 dbrownell * : Note bug in handling of variables through command line parameters. git-svn-id: svn://svn.berlios.de/openocd/trunk@2819 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-07 oharboe * : first stab at imx35 reset init script git-svn-id: svn://svn.berlios.de/openocd/trunk@2817 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-07 oharboe * : add timeouts and fix syntax error handling of mrc/mcr commands. git-svn-id: svn://svn.berlios.de/openocd/trunk@2815 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-07 oharboe * : increase pause before reboot so web interface remains responsive when issuing a reboot of zy1000 git-svn-id: svn://svn.berlios.de/openocd/trunk@2813 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-07 oharboe * : 1.55 snapshot git-svn-id: svn://svn.berlios.de/openocd/trunk@2810 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-06 David Brownell * : commit 0da2f750a1d437b50b21ac7ee766188a47b37fad Author: dbrownell Date: Tue Oct 6 22:56:52 2009 +0000 2009-10-06 dbrownell * : Dragonite has the same EICE affliction as feroceon. From: Nicolas Pitre git-svn-id: svn://svn.berlios.de/openocd/trunk@2807 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-06 David Brownell * : commit 39b57471bfd92ef0d9a3aceb69f40c1335f5b62f Author: oharboe Date: Tue Oct 6 08:10:57 2009 +0000 2009-10-06 oharboe * : stop using targetnum git-svn-id: svn://svn.berlios.de/openocd/trunk@2804 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-05 David Brownell * : commit 64ec7f66a896fc4de6b472cffb6ef5740a76f61d Author: dbrownell Date: Mon Oct 5 23:45:14 2009 +0000 2009-10-05 David Brownell * : commit 7a57c316196f93c7e31b7d00eb9b52177ae874c6 Author: dbrownell Date: Mon Oct 5 08:23:33 2009 +0000 2009-10-05 dbrownell * : Add a new JTAG "setup" event; use for better DaVinci ICEpick support. The model is that this fires after scanchain verification, when it's safe to call "jtag tapenable $TAPNAME". So it will fire as part of non-error paths of "init" and "reset" command processing. However it will *NOT* trigger during "jtag_reset" processing, which skips all scan chain verification, or after verification errors. ALSO: - switch DaVinci chips to use this new mechanism - log TAP activation/deactivation, since their IDCODEs aren't verified - unify "enum jtag_event" scripted event notifications - remove duplicative JTAG_TAP_EVENT_POST_RESET git-svn-id: svn://svn.berlios.de/openocd/trunk@2800 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-05 dbrownell * : Update the NEWS file to cover more of the user-visible changes. git-svn-id: svn://svn.berlios.de/openocd/trunk@2798 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-02 mlu * : Updated reset event handling in omap3530 cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@2796 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-02 mlu * : Make sure that DSCR_DTR_RX is not full before writing git-svn-id: svn://svn.berlios.de/openocd/trunk@2794 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-02 mlu * : Added asser_reset and deassert_reset for cortex_a8 git-svn-id: svn://svn.berlios.de/openocd/trunk@2792 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-10-02 dbrownell * : Minor ETB and ETM bugfixes and doc updates - ETB * report _actual_ hardware status, not just expected status * add a missing diagnostic on a potential ETB setup error * prefix any diagnostics with "ETB" - ETM * make "etm status" show ETM hardware status too, instead of just traceport status (which previously was fake, sigh) - Docs * flesh out "etm tracemode" docs a bit * clarify "etm status" ... previously it was traceport status * explain "etm trigger_percent" as a *traceport* option ETM+ETB tracing still isn't behaving, but now I can see that part of the reason is that the ETB turns itself off almost immediately after being enabled, and before collecting any data. git-svn-id: svn://svn.berlios.de/openocd/trunk@2790 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-30 zwelch * : Update release process documentation. - Improve and clarify the wording of the introduction. - Add section on version taggging. - Some other minor corrections. git-svn-id: svn://svn.berlios.de/openocd/trunk@2788 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-30 zwelch * : Add numeric version tag support to release script. The release process itself does not use this support yet, but it allows packagers to automate the process of managing their own tags, if they patch the source code before releasing binaries. The release processes should be revised to incorporate this feature to support -rc packages. git-svn-id: svn://svn.berlios.de/openocd/trunk@2786 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-30 zwelch * : Add workaround to release script to update source code URL keyword. git-svn-id: svn://svn.berlios.de/openocd/trunk@2784 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-30 zwelch * : Fix release script bugs after experience from 0.2.0: - The NEWS step failed due to an empty commit comment. - The final release step would have failed, because the steps to switch from the secure to insecure repository (and back again) require both switch and a URL relocation steps git-svn-id: svn://svn.berlios.de/openocd/trunk@2782 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-30 mlu * : Add DSCR_DTR_RX_FULL bit define git-svn-id: svn://svn.berlios.de/openocd/trunk@2780 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-30 oharboe * : michal smulski reset now works git-svn-id: svn://svn.berlios.de/openocd/trunk@2778 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-29 dbrownell * : ARM11 command handling fixes - Commands were supposed to have been "arm11 memwrite ..." not "memwrite ..." - Get rid of obfuscatory macros - Re-alphabetize - Add docs for "arm11 vcr" git-svn-id: svn://svn.berlios.de/openocd/trunk@2776 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-29 dbrownell * : Doc updates: add section on target software changes, minor fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2774 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-29 dbrownell * : ETB: cleanup needless symbol exports and forward decls. git-svn-id: svn://svn.berlios.de/openocd/trunk@2772 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-29 oharboe * : reentry assert git-svn-id: svn://svn.berlios.de/openocd/trunk@2770 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-29 oharboe * : added t/nsrst_assert_width commands git-svn-id: svn://svn.berlios.de/openocd/trunk@2768 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-28 oharboe * : spelling fix git-svn-id: svn://svn.berlios.de/openocd/trunk@2766 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-27 dbrownell * : Add list of JTAG adapter drivers with TAP_RESET statemove bug. git-svn-id: svn://svn.berlios.de/openocd/trunk@2764 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-27 dbrownell * : Don't provide invalid OMAP5912 IR capture value/mask attributes git-svn-id: svn://svn.berlios.de/openocd/trunk@2762 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-26 dbrownell * : Diagnostics tweaks for jtag_examine_chain() failure paths. git-svn-id: svn://svn.berlios.de/openocd/trunk@2760 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-26 dbrownell * : Streamline Capture-IR handling and integrity test. Change the handling of the "-ircapture" and "-irmask" parameters to be slightly more sensible, given that the JTAG spec describes what is required, and that we already require that conformance in one place. IR scan returns some bitstring with LSBs "01". - First, provide and use default values that satisfy the IEEE spec. Existing TAP configs will override the defaults, but those parms are no longer required. - Second, warn if any TAP gets set up to violate the JTAG spec. It's likely a bug, but maybe not; else this should be an error. Improve the related diagnostics to say which TAP is affected. And associated minor fixes/cleanups to comments and diagnostics. git-svn-id: svn://svn.berlios.de/openocd/trunk@2758 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-25 oharboe * : Michael Hasselberg target configuration files for Toshiba TX09 familiy git-svn-id: svn://svn.berlios.de/openocd/trunk@2756 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-24 oharboe * : When attaching GDB to OpenOCD, the target state is no longer affected. Added gdb_sync feature that allows GDB to sync up to target state. Issue "monitor gdb_sync" and the next stepi, will return immediately with updated register values to GDB. git-svn-id: svn://svn.berlios.de/openocd/trunk@2754 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-23 dbrownell * : When setting up an ETM, cache its ETM_CONFIG register. Then only expose the registers which are actually present. They could be missing for two basic reasons: - This version might not support them at all; e.g. ETMv1.1 doesn't have some control/status registers. (My sample of ARM9 boards shows all with ETMv1.3 support, FWIW.) - The configuration on this chip may not populate as many registers as possible; e.g. only two data value comparators instead of eight. Includes a bugfix in the "etm info" command: only one of the two registers is missing on older silicon, so show the first one before bailing. Update ETM usage docs to explain that those registers need to be written to configure what is traced, and that some ETM configs are not yet handled. Also, give some examples of the kinds of constrained trace which could be arranged. git-svn-id: svn://svn.berlios.de/openocd/trunk@2752 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-23 dbrownell * : Initial ETM cleanups. Most of these are cosmetic: - Add a header comment - Line up the ETM context struct, pack it a bit - Remove unused context_id (this doesn't support ETMv2 yet) - Make most functions static - Remove unused string table and other needless lines of code - Correct "tracemode" helptext Also provide and use an etm_reg_lookup() to find entries in the ETM register cache. This will help cope with corrected contents of that cache, which doesn't include entires for non-existent registers. git-svn-id: svn://svn.berlios.de/openocd/trunk@2750 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-22 ntfreak * : - fix build issue under win32 (cygwin/msys) from svn r2746 git-svn-id: svn://svn.berlios.de/openocd/trunk@2748 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-22 dbrownell * : Make it easier to erase or protect through to the end of a (NOR) flash chip: allow passing "last" as an alias for the number of the last sector. Improve several aspects of error checking while we're at it. From: Johnny Halfmoon git-svn-id: svn://svn.berlios.de/openocd/trunk@2746 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-21 dbrownell * : Remove annoying end-of-line whitespace from doc/* files. git-svn-id: svn://svn.berlios.de/openocd/trunk@2744 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-21 dbrownell * : Remove annoying end-of-line whitespace from most src/* files; omitted src/httpd git-svn-id: svn://svn.berlios.de/openocd/trunk@2742 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-21 dbrownell * : Ensure that DaVinci chips can't start with a too-fast JTAG clock. It can be sped up later, once it's known the PLLs are active. Note that modern tools from TI all use adaptive clocking; and that if that's done with OpenOCD, "too fast" is also a non-issue. git-svn-id: svn://svn.berlios.de/openocd/trunk@2740 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-20 dbrownell * : Enhancement: stm32 flash protection error message This patch modifies an error message which, in its original state, I find somewhat unhelpful. So a small hint was added. Signed-off-by: Johnny Halfmoon git-svn-id: svn://svn.berlios.de/openocd/trunk@2738 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-20 dbrownell * : Debug message updates: - Shrink messaging during resets, primarily by getting rid of "nothing happened" noise that hides *useful* information. - Improve: the "no IDCODE" message by identifying which tap only supports BYPASS; and the TAP event strings. Related minor code updates: - Remove two needless tests when examining the chain: we know we have a TAP, and that all TAPs have names. - Clean up two loops, turning "while"s into "for"s which better show what's actually being done. git-svn-id: svn://svn.berlios.de/openocd/trunk@2736 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-19 mlu * : Added CPUDBG_WCR_BASE define git-svn-id: svn://svn.berlios.de/openocd/trunk@2734 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-19 mlu * : Reduced sleep time after reset git-svn-id: svn://svn.berlios.de/openocd/trunk@2732 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-19 dbrownell * : Minor behavior fixes for the two JTAG reset events (C/internal, and Tcl/external): - Reorder so *both* paths (TCK/TMS or TRST) can enable TAPs with ICEpick ... first C code flags TAPs that got disabled, then call any Tcl code that might want to re-enable them. - Always call the C/internal handlers when JTAG operations can be issued; previously that wasn't done when TRST was used. Plus some small cleanups (whitespace, strings, better messaging during debug and on some errors) to reset-related code. git-svn-id: svn://svn.berlios.de/openocd/trunk@2730 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-18 mlu * : Move Cortex A8 debug access initialisation from omap3530.cfg to cortex_a8.c git-svn-id: svn://svn.berlios.de/openocd/trunk@2728 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-18 dbrownell * : Tweak TCL reset script ... mostly improving descriptions of the various steps, but also calling [target names] only once. git-svn-id: svn://svn.berlios.de/openocd/trunk@2726 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-17 dbrownell * : Minor fixes to NAND code and docs Erase logic: - command invocation + treat "nand erase N" (no offset/length) as "erase whole chip N" + catch a few more bogus parameter cases, like length == 0 (sigh) - nand_erase() should be static - on error + say which block failed, and if it was a bad block + don't give up after the first error; try to erase the rest - on success, say which nand device was erased (name isn't unique) Device list ("nand list"): - say how many blocks there are - split summary into two lines - give example in the docs Doc tweaks: - Use @option{...} for DaVinci's supported hardware ECC options For the record, I've observed that _sometimes_ erasing bad blocks causes failure reports, and that manufacturer bad block markers aren't always erasable (even when erasing their blocks doesn't trigger an error report). git-svn-id: svn://svn.berlios.de/openocd/trunk@2724 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-17 oharboe * : michal smulski fix regression in jtag_add_pathmove() which broke arm11 in r1825. Other uses of jtag_add_pathmove are svn + xsvf + xscale... git-svn-id: svn://svn.berlios.de/openocd/trunk@2722 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-17 oharboe * : srst_gates_jtag option. at91sam9260 needs retesting, and possibly srst_gates_jtag added to reset_config. Could i.MX27 be a case where srst does not pull trst, but really srst gates jtag clock? git-svn-id: svn://svn.berlios.de/openocd/trunk@2720 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-17 dbrownell * : Doc update: mention how ARM's WFI instruction affects JTAG clocking by gating the core clock, and workarounds. Most details are with the "halt" command, which is one of the first places this issue will be noticed. git-svn-id: svn://svn.berlios.de/openocd/trunk@2718 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-16 mlu * : Use a variable armv7a->debug_base instead of hardedcoded OMAP3530_DEBUG_BASE git-svn-id: svn://svn.berlios.de/openocd/trunk@2716 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-15 mlu * : Define debug_base, debug_ap, memory_ap in armv7a_common_t git-svn-id: svn://svn.berlios.de/openocd/trunk@2714 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-15 mlu * : Definy symbolic values for VA to PA address translation operations git-svn-id: svn://svn.berlios.de/openocd/trunk@2712 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-15 oharboe * : added embedded ice programming while srst is asserted todo item git-svn-id: svn://svn.berlios.de/openocd/trunk@2710 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-14 mlu * : Cache invalidation when writing to memory git-svn-id: svn://svn.berlios.de/openocd/trunk@2708 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-14 oharboe * : fix email address git-svn-id: svn://svn.berlios.de/openocd/trunk@2706 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-14 oharboe * : fix warning git-svn-id: svn://svn.berlios.de/openocd/trunk@2704 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-13 mlu * : More CortexA8 debug register definitions. git-svn-id: svn://svn.berlios.de/openocd/trunk@2702 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-12 oharboe * : Dirk Behme document post TAP reset event git-svn-id: svn://svn.berlios.de/openocd/trunk@2700 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-12 oharboe * : David Brownell Cleanup some the downloaded ARM target algorithm code: - Provide more complete disassembly of the DCC bulk write code - Make code blocks "static const", in case GCC doesn't - Fix some tabbing/layout issues - Make some arm7_9_common.h flags be "bool" not "int"; and compact the layout a bit (group most bools together) git-svn-id: svn://svn.berlios.de/openocd/trunk@2698 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-11 oharboe * : tap post reset event added. Allows omap3530 to send 100 runtest idle tickle's after a TAP_RESET. git-svn-id: svn://svn.berlios.de/openocd/trunk@2696 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-11 oharboe * : Nicolas Pitre put feroceon target definition at the end so to avoid a bunch of useless forward declarations. git-svn-id: svn://svn.berlios.de/openocd/trunk@2694 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-11 oharboe * : spelling mistake git-svn-id: svn://svn.berlios.de/openocd/trunk@2692 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-11 oharboe * : registering a target event twice caused infinite loop. Same bug as in jtag/core.c copy & pasted. git-svn-id: svn://svn.berlios.de/openocd/trunk@2690 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-11 oharboe * : Alexei Babich cleanup git-svn-id: svn://svn.berlios.de/openocd/trunk@2688 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-10 oharboe * : eol-style:native git-svn-id: svn://svn.berlios.de/openocd/trunk@2686 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-10 oharboe * : Alexei Babich fix problems with unecessary tailend byte accesses. Use 16 bit access on tailend of a memory read if possible. git-svn-id: svn://svn.berlios.de/openocd/trunk@2684 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-09 oharboe * : Rolf Meeser This patch adds target algorithm support for those flash devices that do not support DQ5 polling. So far they could only be programmed with host algorithm, but this was way too slow. git-svn-id: svn://svn.berlios.de/openocd/trunk@2682 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-09 oharboe * : David Brownell Optionally shave time off the armv4_5 run_algorithm() code: let them terminate using software breakpoints, avoiding roundtrips to manage hardware ones. Enable this by using BKPT to terminate execution instead of "branch to here" loops. Then pass zero as the exit address, except when running on an ARMv4 core. ARM7TDMI, ARM9TDMI, and derived cores now set a flag saying they're ARMv4. Use that mechanism in arm_nandwrite(), for about 3% speedup on a DaVinci ARM926 core; not huge, but it helps. Some other algorithms could use this too (mostly flavors of flash operation). git-svn-id: svn://svn.berlios.de/openocd/trunk@2680 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-08 mlu * : Report correct core instruction state for ARMv/A targets git-svn-id: svn://svn.berlios.de/openocd/trunk@2678 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-08 oharboe * : David Brownell Provide an "armv7a disassemble" command. Current omissions include VFP (except as coprocessor instructions), Neon, and various Thumb2 opcodes that are not available in ARMv7-M processors. git-svn-id: svn://svn.berlios.de/openocd/trunk@2676 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-07 mlu * : Improved handling of instruction set state, helps for debugging Thumb state. git-svn-id: svn://svn.berlios.de/openocd/trunk@2674 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-04 oharboe * : use "armv4_5 core_state arm" instead of soft_reset_halt, fewer side effects git-svn-id: svn://svn.berlios.de/openocd/trunk@2672 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-04 oharboe * : Dirk Behme Add default fall back freqency. git-svn-id: svn://svn.berlios.de/openocd/trunk@2670 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-04 oharboe * : Matt Hsu This patch simply enables the halting debug mode. By enabling this bit, the processor halts when a debug event such as breakpoint occurs. git-svn-id: svn://svn.berlios.de/openocd/trunk@2668 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-04 oharboe * : Matt Hsu Tidy up the bit-offset operation for DSCR register git-svn-id: svn://svn.berlios.de/openocd/trunk@2666 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-04 oharboe * : David Claffey get rid of reset recursion git-svn-id: svn://svn.berlios.de/openocd/trunk@2664 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-02 oharboe * : David Claffey tested with the Atheros reference design "PB44" git-svn-id: svn://svn.berlios.de/openocd/trunk@2662 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-09-01 ntfreak * : - fixes the incorrect info msg displayed during stellaris flash programming. git-svn-id: svn://svn.berlios.de/openocd/trunk@2660 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-31 duane * : Warning fix git-svn-id: svn://svn.berlios.de/openocd/trunk@2658 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-31 oharboe * : Ferdinand Postema config script for the MMnet1001 module from Propox. git-svn-id: svn://svn.berlios.de/openocd/trunk@2656 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-30 oharboe * : Dirk Behme Fix typo in help text. It has to be 'production_test' instead of 'production' here. git-svn-id: svn://svn.berlios.de/openocd/trunk@2654 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-30 oharboe * : David Brownell Remove duplicate check for flash write status. Via code review by Steve Grubb   Also minor fixes for the message from "fill": the byte count is unsigned, not signed; and more importantly, print the real number of bytes written git-svn-id: svn://svn.berlios.de/openocd/trunk@2652 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-30 oharboe * : David Brownell start phasing out integers as target IDs git-svn-id: svn://svn.berlios.de/openocd/trunk@2650 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-28 oharboe * : David Brownell fix warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@2648 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-28 oharboe * : restore ICE watchpoint registers when the *last* software breakpoint is removed git-svn-id: svn://svn.berlios.de/openocd/trunk@2646 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-28 oharboe * : David Brownell ARM disassembly support for about five dozen non-Thumb instructions that were added after ARMv5TE was defined: - ARMv5J "BXJ" (for Java/Jazelle) - ARMv6 "media" instructions (for OMAP2420, i.MX31, etc) Compile-tested. This might not set up the simulator right for the ARMv6 single step support; only BXJ branches though, and docs to support Jazelle branching are non-public (still, sigh). ARMv6 instructions known to be mis-handled by this disassembler include: UMAAL, LDREX, STREX, CPS, SETEND, RFE, SRS, MCRR2, MRRC2 git-svn-id: svn://svn.berlios.de/openocd/trunk@2644 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-27 oharboe * : arm11 single stepping wip - at least we know the next PC now git-svn-id: svn://svn.berlios.de/openocd/trunk@2642 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-27 oharboe * : refactor arm simulator to allow arm11 code to use it as well - no observable changes otherwise. git-svn-id: svn://svn.berlios.de/openocd/trunk@2640 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : Matt Hsu and Holger Hans Peter Freyther cortex-a8: Wait for the CPU to be halted/started With DCCR we are asking the CPU to halt, we should wait until the CPU has halted before proceeding with the operation. git-svn-id: svn://svn.berlios.de/openocd/trunk@2638 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : Matt Hsu and Holger Hans Peter Freyther Only dap_ap_select when we are going to do a memory access in the fast reg case. git-svn-id: svn://svn.berlios.de/openocd/trunk@2636 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : Matt Hsu cortex_a8_exec_opcode is writing the ARM instruction into the ITR register but it will only be executed when the DSCR[13] bit is set. The documentation is a bit weird as it classifies the DSCR as read-only but the pseudo code is writing to it as well. This is working on a beagleboard. git-svn-id: svn://svn.berlios.de/openocd/trunk@2634 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : Matt Hsu and Holger Hans Peter Freyther Before executing a new instruction wait for the previous instruction to be finished. This comes from the pseudo code of the cortex a8 trm. git-svn-id: svn://svn.berlios.de/openocd/trunk@2632 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : added missing check on jtag_execute git-svn-id: svn://svn.berlios.de/openocd/trunk@2630 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : reduce arm11 output noise git-svn-id: svn://svn.berlios.de/openocd/trunk@2628 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-26 oharboe * : David Brownell Clock updates/fixes for the Stellaris flash driver: - Bugfixes: * internal osc: it's *12* MHz (not 15 MHz) on _current_ chips + except new Tempest parts where it's 16 MHz (and calibrated!) + or some old Sandstorm ones, where 15 MHz was valid * crystal config: + read and use the crystal config, don't assume 6 MHz + know when that field is 4 bits vs 5 * an RCC2 register may be overriding the original RCC + more clock source options + bigger dividers + fractional dividers on Tempest (NYET handled) * there's a 30 KHz osc on newer chips (for deep sleep) * there's a 32768 Hz osc on newer chips (for hibernation) - Cosmetic * say "rev A0" not "vA.0", to match vendor docs * don't always report master clock as an "estimate": + give the error bound if it's approximate, like "±30%" + else don't say anything * fix whitespace and caps in some messages * these are not AT91SAM chips!! Those clock issues might explain problems sometimes reported when writing to Stellaris flash banks; they affect write timings. That 12-vs-15 MHz issue is problematic; there's no consolidated doc showing which chips (and revs!) have which internal oscillator speed. It's clear that only older silicon had the faster-and-less-accurate flavor. What's less clear is which chips are "old" like that. Lightly tested, on a DustDevil part. git-svn-id: svn://svn.berlios.de/openocd/trunk@2626 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : David Brownell Tweak disassembly commands: For ARMv4/ARMv5: - better command parameter error checking - don't require an instruction count; default to one - recognize thumb function addresses - make function static - shorten some too-long lines For Cortex-M3: - don't require an instruction count; default to one With the relevant doc updates. --- Nyet done: invoke the thumb2 disassembler on v4/v5, to better handle branch instructions. git-svn-id: svn://svn.berlios.de/openocd/trunk@2624 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : David Brownell More jtag_add_reset() cleanup: Unify the handling of the req_tlr_or_trst parameter. Basically, JTAG TMS+TCK ops ("TLR") is always used ... unless TRST is a safe option in this system configuration. git-svn-id: svn://svn.berlios.de/openocd/trunk@2622 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : David Brownell Accomodate targets which don't support various target-specific reset operations. Maybe they can't; or it's a "not yet" thing. Note that the assert/deassert operations can't yet trigger for OMAP3 because resets currently include JTAG reset in all cases, resetting the ICEpick and thus disabling the TAP for Cortex-A8. git-svn-id: svn://svn.berlios.de/openocd/trunk@2620 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 ntfreak * : - fix build warnings - add svn props to recently added files armv7a.[ch] git-svn-id: svn://svn.berlios.de/openocd/trunk@2618 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : strange.... the code build and links w/Linux GCC target but fails w/arm-elf. The code was clearly broken as it was missing two extern's in the .h file... git-svn-id: svn://svn.berlios.de/openocd/trunk@2616 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : Ferdinand Postema increase reset delay to fix regression from 2600 to 2604 git-svn-id: svn://svn.berlios.de/openocd/trunk@2614 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : Audrius Urmanavičius Latest source (R2606) does not compile under Windows+Cygwin - fails with error about possibly uninitialized use of variable 'ch'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2612 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : use cortex_a8 instead of cortex_m3 git-svn-id: svn://svn.berlios.de/openocd/trunk@2610 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-25 oharboe * : David Brownell Subset of Cortex-A8 support from Magnus: create an armv7a file and seed it with DAP access support using the current ADIv5 code. (With tweaks and cleanup from Øyvind and Dave.) The ARMv7-AR architecture manual is not publicly available (even in subset form like the ARMv7-M spec), so it's hard to distinguish between the Cortex-A8 implementation and the ARMv7-A architecture. The register set presumably is architectural, and so it's stored here; it's like earlier ARMs, with small additions. Ditto the instruction set, though Thumb2 support is used (extending Thumb support from ARMv6 with more 32-bit instructions) and there's this ThumbEE thing too. There is a new "debug monitor" mode, not yet fully addressed here, to support debugging in environments (like motor control) where halting debug mode is inadvisable. git-svn-id: svn://svn.berlios.de/openocd/trunk@2608 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-24 oharboe * : Steve Grubb fix various and sundry leaks git-svn-id: svn://svn.berlios.de/openocd/trunk@2606 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-21 oharboe * : Pieter Conradie shuffle things around to the right spots. Should have been done in previous commit. git-svn-id: svn://svn.berlios.de/openocd/trunk@2604 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-21 oharboe * : Pieter Conradie Scripts for Atmel AT91SAM7S256 and AT91SAM9260 git-svn-id: svn://svn.berlios.de/openocd/trunk@2602 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-20 oharboe * : Piotr Ziecik This patch adds handling blank characters between hex digits in SVF file, making OpenOCD compatible with files generated by Altera Quatrus II 9.0. git-svn-id: svn://svn.berlios.de/openocd/trunk@2600 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-20 oharboe * : David Brownell More Thumb2 disassembly: ARMv7-M: A5.3.6 Load/store dual or exclusive, table branch GCC will generate the table branch instructions, usually with inlined tables that will confuse this disassembler. LDREX and STREX are not issued by GCC without inline assembly. This means all Thumb2 instructions implemented by Cortex-M3 can now be disassembled. Cortex-A8 cores support more Thumb2 instructions, but most of those aren't yet publicly documented. git-svn-id: svn://svn.berlios.de/openocd/trunk@2598 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-19 oharboe * : David Brownell Fix some command helptext: - spell "address" right - list bp/wp params as optional And make those source lines wrap at sane margins. git-svn-id: svn://svn.berlios.de/openocd/trunk@2596 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-18 ntfreak * : David Brownell [david-b@pacbell.net]: Simplify dumping of register lists by only printing cached values if they are marked as valid. Most of the time, they are invalid; so printing *any* value is just misleading. Note that for ARM7 and ARM9 most EmbeddedICE registers (except for debug status) could be cached most of the time; and their register cache isn't maintained properly (many accesses seem to bypass that cache code). git-svn-id: svn://svn.berlios.de/openocd/trunk@2594 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-18 ntfreak * : - add cfg file for Amontec JTAGKey2 jtag interface git-svn-id: svn://svn.berlios.de/openocd/trunk@2592 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-18 ntfreak * : Jonas Horberg [jhorberg@sauer-danfoss.com] Change jtag_rclk behaviour so it can be called before the interface init function git-svn-id: svn://svn.berlios.de/openocd/trunk@2590 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-18 oharboe * : David Brownell Add "cortex_m3 vector_catch" command and docs. One minor issue with this is that the core debug support uses this mechanism, then trashes its state over reset. Users can Work around that (for now) by re-assigning the desired config after reset. Also fixes "target halted due to target-not-halted" goof. When we can't describe the reason using OpenOCD's limited vocabulary, say "reason undefined" instead of saying it's not halted. git-svn-id: svn://svn.berlios.de/openocd/trunk@2588 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-18 oharboe * : David Brownell Several of the ARMv7M registers are 8 bits or less; don't display them as 32 bits unless that's their true size. (Removes some confusion. git-svn-id: svn://svn.berlios.de/openocd/trunk@2586 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-16 oharboe * : Xiaofan Chen Split LM3S811 config file into target file and board file git-svn-id: svn://svn.berlios.de/openocd/trunk@2584 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-16 oharboe * : Xiaofan Chen Add config file for TI-Luminary LM3S1968 chip and EK-LM3S1968 board git-svn-id: svn://svn.berlios.de/openocd/trunk@2582 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-16 oharboe * : added note w/reference to discussion on whether or not arm11 code is broken or not. git-svn-id: svn://svn.berlios.de/openocd/trunk@2580 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-07 ntfreak * : David Brownell : Warn about anyone using "jtag_speed" commands; that command is obsolete, and will someday be removed. git-svn-id: svn://svn.berlios.de/openocd/trunk@2578 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-07 ntfreak * : Ferdinand Postema [ferdinand@postema.eu] - fix vector catch issues with certain ARM9 cores - AT91SAM9260 and STR9 git-svn-id: svn://svn.berlios.de/openocd/trunk@2576 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-06 ntfreak * : Gary Carlson [gcarlson@carlson-minot.com]: - revert patch from rev1507 as it was causing reset issues with arm9 cores git-svn-id: svn://svn.berlios.de/openocd/trunk@2574 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-08-06 zwelch * : michal smulski : Fix ARM11 half-word bulk memory read and write. git-svn-id: svn://svn.berlios.de/openocd/trunk@2572 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-27 oharboe * : Fix NPE in GDB_EVENT_END as logforwarding was not disabled early enough git-svn-id: svn://svn.berlios.de/openocd/trunk@2570 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-26 oharboe * : David Brownell More testcase work: A5.3.11 Data processing (shifted register) The usual kinds of problems; the most noteworthy were that the "S"et flags bit was mis-handled in these instructions. --- This is the last patch from a quickie set of tests covering all encodings of the instructions with 32-bit opcodes. There may be some corner cases left, plus the instructions that aren't yet handled, but the Thumb2 disassembler is no longer just "lightly" tested with GCC output ... the new code paths have mostly been verified. git-svn-id: svn://svn.berlios.de/openocd/trunk@2568 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-26 oharboe * : David Brownell More fixes from test cases: A5.3.8 Load halfword, unallocated memory hints It's mostly the usual sort of bitmasking goofage and getting the width specs right. In one case an older x86 GCC generated bad code unless I structred a conditional differently (sigh). git-svn-id: svn://svn.berlios.de/openocd/trunk@2566 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-24 oharboe * : David Brownell More instruction decoding fixes based on test cases, covering ARMv7-M arch manual: A5.3.1 Data processing (modified immediate) A5.3.3 Data processing (plain binary immediate) A5.3.4 Branches and miscellaneous control and other (immediate) encodings referenced there. Several of these just tweak the new syntax ("Unified" ARM/Thumb: UAL) but there were a few bugs too. git-svn-id: svn://svn.berlios.de/openocd/trunk@2564 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-24 oharboe * : Andreas Fritiofson I noticed there are a few checks for (rt == 0xf) even though that case is handled with an early return at the top of the function. git-svn-id: svn://svn.berlios.de/openocd/trunk@2562 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-23 oharboe * : David Brownell thumb2 disassembly for Load byte, memory hints git-svn-id: svn://svn.berlios.de/openocd/trunk@2560 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-23 oharboe * : David Brownell fix warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@2558 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-22 oharboe * : Stefano Voulaz first cut samsung_s3c2450 git-svn-id: svn://svn.berlios.de/openocd/trunk@2556 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-21 ntfreak * : David Brownell : Clean up treatment of registers in ARMv7-M and Cortex-M3. - At the arch level: * Just list registers and names; don't impose core-specific policy about how they are accessed. * Each register has a symbol. * Remove the register mode field (irrelevant to debugger) - At the core/implementation level: * Just map the registers to their relevant access methods; don't require the arch level to say how that should work (cores other than Cortex-M3 could do it differently). * Don't use undefined bits from register 20. * Use register IDs that are part of the ARMv7-M interface. In short, there's now a real distinction between the arch and core layers. git-svn-id: svn://svn.berlios.de/openocd/trunk@2554 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-21 ntfreak * : David Brownell : Revert parts of the previous ARMv7-M register patch. It turns out that part of the issue is a documentation problem for the Cortex-M3 r1 parts. So for the rest, simpler fixes are possible (in followup patch). git-svn-id: svn://svn.berlios.de/openocd/trunk@2552 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-19 oharboe * : aduc flash problems have been resolved git-svn-id: svn://svn.berlios.de/openocd/trunk@2550 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-16 oharboe * : added item to come up with slick new 32 bit jtag_add_xxx() API git-svn-id: svn://svn.berlios.de/openocd/trunk@2548 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-16 oharboe * : microscopic white space fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2546 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-16 zwelch * : Magnus Lundin , Oyvind Harboe , David Brownell : Move the dap command handler implementations to arm_adi_v5.c, leaving just thin wrappers in armv7m.c. There should be no change in functionality here. (From Magnus.) Minor style cleanup: whitespace, line length, etc. Update spec references to use docs which are currently available. (From Dave.) git-svn-id: svn://svn.berlios.de/openocd/trunk@2544 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : More 32-bit Thumb2 instruction decoding: A5.3.7 Load word git-svn-id: svn://svn.berlios.de/openocd/trunk@2542 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : More 32-bit instruction decoding: A5.3.11 Data processing (shifted register) git-svn-id: svn://svn.berlios.de/openocd/trunk@2540 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : More instructions decoded: A5.3.14 Multiply, and multiply accumulate A5.3.15 Long multiply, long multiply accumulate, divide The EABI requires *adjacent* register pairs, but the long multiply ops can use any pair of registers; interesting. git-svn-id: svn://svn.berlios.de/openocd/trunk@2538 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : Print old-style Thumb NOP instructions as such. (GCC uses "mov r8, r8" instead of the architected NOP which is new in Thumb2.) git-svn-id: svn://svn.berlios.de/openocd/trunk@2536 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : Make the Thumb2 disassembler handle more 32-bit instructions: A5.3.3 Data processing (plain binary immediate) These use mostly twelve bit literals, but there are also bitfield and saturated add primitives. git-svn-id: svn://svn.berlios.de/openocd/trunk@2534 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : Make the Thumb2 disassembler handle a bunch of 32-bit instructions: A5.3.4 Branches and miscellaneous control Note that this shifts some responsabililty out of helper functions, making the code and layout simpler for 32-bit decoders: they only need to know how to format the instruction and its parameters. Also, technical note: with this patch, Thumb1 decoders could now call the Thumb2 decoder if they wanted to get nicer treatment of the exiting 32-bit B/BLX instructions. git-svn-id: svn://svn.berlios.de/openocd/trunk@2532 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 zwelch * : David Brownell : Initial support for disassembling Thumb2 code. This works only for Cortex-M3 cores so far. Eventually other cores will also need Thumb2 support ... but they don't yet support any kind of disassembly. - Update the 16-bit Thumb decoder: * Understand CPS, REV*, SETEND, {U,S}XT{B,H} opcodes added by ARMv6. (It already seems to treat CPY as MOV.) * Understand CB, CBNZ, WFI, IT, and other opcodes added by in Thumb2. - A new Thumb2 instruction decode routine is provided. * This has a different signature: pass the target, not the instruction, so it can fetch a second halfword when needed. The instruction size is likewise returned to the caller. * 32-bit instructions are recognized but not yet decoded. - Start using the current "UAL" syntax in some cases. "SWI" is renamed as "SVC"; "LDMIA" as "LDM"; "STMIA" as "STM". - Define a new "cortex_m3 disassemble addr count" command to give access to this disassembly. Sanity checked against "objdump -d" output; a bunch of the new instructions checked out fine. git-svn-id: svn://svn.berlios.de/openocd/trunk@2530 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-15 oharboe * : retire Eclipse settings, charset will be set elsewhere. git-svn-id: svn://svn.berlios.de/openocd/trunk@2528 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-14 oharboe * : David Brownell mention udev, and correct D2XX speed mentions git-svn-id: svn://svn.berlios.de/openocd/trunk@2526 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-14 oharboe * : 1.54 snapshot git-svn-id: svn://svn.berlios.de/openocd/trunk@2523 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-14 zwelch * : Bump minor version and add tag: Bump minor package version number: 0.2.0 -> 0.3.0 Add '-in-development' version tag: 0.3.0 -> 0.3.0-in-development git-svn-id: svn://svn.berlios.de/openocd/trunk@2521 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-14 zwelch * : Improve the release script before 0.2.0: 1) Only archive NEWS file on major and minor relesae, not bug-fixes. 2) Switch back to correct development branch during final release step. 3) Add do_svn_switch helper to ensure package variables are reloaded. git-svn-id: svn://svn.berlios.de/openocd/trunk@2516 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-14 zwelch * : Make the parport-ppdev option enabled by default. This may require giving --disable-parport-ppdev to configure on some platform(s). git-svn-id: svn://svn.berlios.de/openocd/trunk@2514 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-12 oharboe * : Xiaofan Chen document my experiment with MinGW cross build. git-svn-id: svn://svn.berlios.de/openocd/trunk@2512 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-12 oharboe * : Magnus Lundin Thc cortex_m3_poll function does not identify that a target is running unless we transition from RESET. This patch correctly identifies a running target. Patch made a tad more palatable by David Brownell git-svn-id: svn://svn.berlios.de/openocd/trunk@2510 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-12 oharboe * : David Brownell Mention how parallel clock voting implementations of RTCK work, and reference TI's free VHDL code. git-svn-id: svn://svn.berlios.de/openocd/trunk@2508 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-10 oharboe * : wrote up workaround for xscale/debug_handler.bin bug git-svn-id: svn://svn.berlios.de/openocd/trunk@2506 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-10 oharboe * : David Brownell split EK board support out from the target CPU support . git-svn-id: svn://svn.berlios.de/openocd/trunk@2504 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-08 zwelch * : Add section to provide some documentation for cross-compiling. git-svn-id: svn://svn.berlios.de/openocd/trunk@2502 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-08 zwelch * : Add comments to top-level files to "excuse" their Doxygen markup. git-svn-id: svn://svn.berlios.de/openocd/trunk@2500 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-08 oharboe * : fix formatting of xscale bug entry(learning every day) git-svn-id: svn://svn.berlios.de/openocd/trunk@2498 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-08 oharboe * : typo in comment git-svn-id: svn://svn.berlios.de/openocd/trunk@2496 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-08 oharboe * : i.MX27 reset problems fixed & update remaining reset problems notes git-svn-id: svn://svn.berlios.de/openocd/trunk@2494 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-07 oharboe * : srst pulls trst according to Freescale docs for i.mx27 git-svn-id: svn://svn.berlios.de/openocd/trunk@2492 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-07 oharboe * : Use reference to mailing list for known arm926ejs bugs rather fill The List with lots of details git-svn-id: svn://svn.berlios.de/openocd/trunk@2490 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-07 oharboe * : fix return value for "reset" and "runtest" command. Found by code inspection. git-svn-id: svn://svn.berlios.de/openocd/trunk@2488 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-07 oharboe * : more arm926ejs bugs git-svn-id: svn://svn.berlios.de/openocd/trunk@2486 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 oharboe * : David Brownell Update docs to say that "arm7_9 dbgrq enable" is the default on ARM9 cores, and update the DaVinci config files so they no longer explicitly specify it. git-svn-id: svn://svn.berlios.de/openocd/trunk@2484 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 ntfreak * : - fix build when using a cross compiler - do not try and run any host tools - add missing types.h when platform does not contain elf.h git-svn-id: svn://svn.berlios.de/openocd/trunk@2482 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 oharboe * : a bit more debug output for translation of invalid mode numbers git-svn-id: svn://svn.berlios.de/openocd/trunk@2480 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 oharboe * : Fix regression in "step" command introduced in 2190 git-svn-id: svn://svn.berlios.de/openocd/trunk@2478 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 zwelch * : Update Release Script documentation to reflect current implementation. git-svn-id: svn://svn.berlios.de/openocd/trunk@2476 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 zwelch * : Add NEWS file for the 0.2.0 release. git-svn-id: svn://svn.berlios.de/openocd/trunk@2474 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 zwelch * : Ferdinand Postema : Updates to private TAP state tables in amtjtagaccel interface driver. The first change is the neccesary one to correct a long-standing bug that caused the IDCODE to be shifted by one bit too many. This was caused by an incorrect path from state RESET to state DRSHIFT. The value of those 2 bytes were 0x8a and 0x04. This means that the bitstream to do this transition is 0b 00100 01010 (send LSB first). This will bring you from the reset state to the shift state; however, you enter the shift-state twice, which explains why the ID-CODE that will be read next will be shifted 1 bit. The fix changes these to 0x05 and 0x00. This will send the bitstream 0b 00101 (send LSB first). This will bring the TAP controller from the RESET state to the DRSHIFT state directly, without entering the DRSHIFT state twice. After checking the whole table, two other transitions were found that could be optimized (5 bits in stead of 10 bits). Summary off all changes: From To Old values Old Bitstream New values New Bitstream Remarks ---- ------- ---------- ------------- ---------- ------------- ------- RESET DRSHIFT 0x8a 0x04 0b00100 01010 0x05 0x00 0b00101 1,2 IDLE DRSHIFT 0x85 0x08 0b01000 00101 0x04 0x00 0b00100 2 IDLE IRSHIFT 0x8b 0x08 0b01000 01011 0x06 0x00 0b00110 2 [1] Fixes the IDCODE bug [2] Optimization git-svn-id: svn://svn.berlios.de/openocd/trunk@2472 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 oharboe * : 10ms timeout check on cp15 read/write git-svn-id: svn://svn.berlios.de/openocd/trunk@2470 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 zwelch * : Fix maintainer-clean target in doc directory. git-svn-id: svn://svn.berlios.de/openocd/trunk@2468 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 oharboe * : added known problem w/line number's being off in syntax errors for target reset events git-svn-id: svn://svn.berlios.de/openocd/trunk@2466 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-06 oharboe * : human readable error message upon invalid arguments git-svn-id: svn://svn.berlios.de/openocd/trunk@2464 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-04 zwelch * : Major update to release process documentation: - Provide overview of OpenOCD versioning schema. - Outline responsibilities and authority of the release manager. - Explain the need for flexibility in the release schedule. - Add and refine the release process steps. - Include tutorials for using new release script. - Many more improvements, too numerous to list. git-svn-id: svn://svn.berlios.de/openocd/trunk@2462 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 oharboe * : Xiaofan Chen With this patch, OpenOCD can talk to my Analog Device Eval-ADuC7060 eval board. git-svn-id: svn://svn.berlios.de/openocd/trunk@2459 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 zwelch * : Add AUTHORS for 0.2.0 release. git-svn-id: svn://svn.berlios.de/openocd/trunk@2457 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 zwelch * : Remove vim editor commands from TCL files. git-svn-id: svn://svn.berlios.de/openocd/trunk@2455 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 zwelch * : Commit first draft of release process documentation. git-svn-id: svn://svn.berlios.de/openocd/trunk@2453 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 oharboe * : zy1000 1.53 snapshot git-svn-id: svn://svn.berlios.de/openocd/trunk@2451 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 zwelch * : David Brownell : More minor improvements to README to help polish the 0.2.0 release: - Add note about Ubuntu 8.04 (in lieu of starting a README.Linux file). - Fix introductory paragraph to Bulding OpenOCD - Remove some vestigial texinfo markup. git-svn-id: svn://svn.berlios.de/openocd/trunk@2448 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-02 zwelch * : David Brownell : Restore some whitespace that got clobbered by over-aggressive whitepace eradication patches a while back. git-svn-id: svn://svn.berlios.de/openocd/trunk@2446 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-01 zwelch * : Add missing copyright header to target_type.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@2444 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-01 zwelch * : Update TODO list to relect 0.2.0 release. git-svn-id: svn://svn.berlios.de/openocd/trunk@2442 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-07-01 ntfreak * : - add stm32 connectivity line tapid to stm32.cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@2440 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Remove at91sam3.h from flash.c; use extern like other drivers. git-svn-id: svn://svn.berlios.de/openocd/trunk@2438 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Provide some useful information in README file, rather than punting. Add some text to introduce the project to new users. Move packaging, configuration, and compilation of OpenOCD out of the User's Guide and into README, where it can be used by users before configuring and compiling the documentation. Improve notes about required Subversion repository build steps. Add reference to the standard GNU INSTALL file. git-svn-id: svn://svn.berlios.de/openocd/trunk@2436 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 ntfreak * : - remove cygwin build warnings in at91sam3.c git-svn-id: svn://svn.berlios.de/openocd/trunk@2434 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Remove executable bits from at91sam3 configuration files. git-svn-id: svn://svn.berlios.de/openocd/trunk@2432 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Add svn:eol-style properties missed in last commit. git-svn-id: svn://svn.berlios.de/openocd/trunk@2430 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : David Brownell : Add "jtag names" command, mirroring "target names" but returning TAP names instead of target names. This starts letting TAPs be manipulated in scripts ... much like what works now for targets. It's a bit limited just yet, since "jtag cget $TAPNAME" doesn't expose all TAP attributes. "$TARGETNAME cget" is more functional. git-svn-id: svn://svn.berlios.de/openocd/trunk@2428 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Fix doxygen 'undocumented parameter' warnings in membuf.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@2426 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Fix doxygen warning in jtag.h caused by a changed parameter name. git-svn-id: svn://svn.berlios.de/openocd/trunk@2424 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Fix @file documentation blocks in new interfaces source files. git-svn-id: svn://svn.berlios.de/openocd/trunk@2422 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-30 zwelch * : Fix logger.pl script to avoid spurious empty line in some cases. git-svn-id: svn://svn.berlios.de/openocd/trunk@2420 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-29 zwelch * : David Brownell : Minor bugfix ... previous version was tested *with* ICEpick active. The "-disable" can swap with "-enable"; but not with an empty string. git-svn-id: svn://svn.berlios.de/openocd/trunk@2418 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-29 zwelch * : David Brownell : Improve the PXA255 target config: move all that board-specific setup to the pxa255_sst board.cfg, to which it evidently belongs (it's the only PXA255 board now included). Provide the PXA255 JTAG id from Intel docs, and add a comment about how this chip is now EOL'd (last orders taken). Note that I still can't get my old PXA255 board to work. There's something broken in the reset sequence, which is preventing the TAP from coming up at all. Old mailing list posts suggest this is a longstanding bug... git-svn-id: svn://svn.berlios.de/openocd/trunk@2416 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-29 zwelch * : David Brownell : Minor fixup to the User's Guide, primarily related to the handful of commands defined in "startup.tcl"; "help" was not previously documented. Also, be more consistent about "Config Command" definitions (and to be explicit about that doc convention). git-svn-id: svn://svn.berlios.de/openocd/trunk@2414 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-28 oharboe * : David Brownell various missing commands git-svn-id: svn://svn.berlios.de/openocd/trunk@2412 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-28 duane * : A bit more log detail about connections comming and going git-svn-id: svn://svn.berlios.de/openocd/trunk@2410 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-27 duane * : Add Breakpoint/Watchpoint unique ID to help debug hardware debug register leakage git-svn-id: svn://svn.berlios.de/openocd/trunk@2408 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-27 duane * : Switch to strotk() grr.... git-svn-id: svn://svn.berlios.de/openocd/trunk@2406 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-26 oharboe * : David Brownell Add a short chapter on boundary scan support, which currently just documents the SVF and XSVF commands. git-svn-id: svn://svn.berlios.de/openocd/trunk@2404 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-25 oharboe * : Oleksandr Tymoshenko simple watchpoint support for MIPS32/EJTAG (no value comparation yet). git-svn-id: svn://svn.berlios.de/openocd/trunk@2402 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 oharboe * : David Brownell Fix formatting bug in at91sam7 doc added with the at91sam3 support; and some formatting issues with sam7 and stm32 keyword params. Tweak at91sam3 docs. Remove ninth nibble from flash bank addresses, clarify "at91sam3 show" variants and that the flash bank layout is not needed as a parameter (unlike with sam7); formatting fixes. git-svn-id: svn://svn.berlios.de/openocd/trunk@2400 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : Remove whitespace at end of lines, step 2. - Replace '\s*$' with ''. git-svn-id: svn://svn.berlios.de/openocd/trunk@2398 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : Remove whitespace that occurs before ')'. - Replace '[ \t]*[)]' with ')'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2396 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : - Fixes '[<>]' whitespace - Replace '\(\w\)\([<>]\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2394 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : - Fixes '+' whitespace - Replace '\(\w\)\(+\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2392 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : - Fixes '==' whitespace - Replace '\(\w\)\(==\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2390 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : - Replace 'switch(' with 'switch ('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2388 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : - Replace 'if(' with 'if ('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2386 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 zwelch * : Fix end-of-line style properties on newly added files. git-svn-id: svn://svn.berlios.de/openocd/trunk@2384 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-24 duane * : Add quick target - full cygwin builds take a long long long time, this shortens the edit/build/debug cycle git-svn-id: svn://svn.berlios.de/openocd/trunk@2382 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : Remove whitespace at end of lines, step 2. - Replace '\s*$' with ''. git-svn-id: svn://svn.berlios.de/openocd/trunk@2380 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Replace '){' with ') {'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2378 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : Remove whitespace that occurs after '('. - Replace '([ \t]*' with '('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2376 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '[|]' whitespace - Replace ')\([|]\)(' with ') \1 ('. - Replace ')\([|]\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\([|]\)(' with '\1 \2 ('. - Replace '\(\w\)\([|]\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2374 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '=' whitespace - Replace ')\(=\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\(=\)(' with '\1 \2 ('. - Replace '\(\w\)\(=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2372 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '<<' whitespace - Replace ')\(<<\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\(<<\)(' with '\1 \2 ('. - Replace '\(\w\)\(<<\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2370 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '<=' whitespace - Replace '\(\w\)\(<=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2368 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '&&' whitespace - Replace ')\(&&\)(' with ') \1 ('. - Replace '\(\w\)\(&&\)(' with '\1 \2 ('. - Replace '\(\w\)\(&&\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2366 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '[+]=' whitespace - Replace '\(\w\)\([+]=\)(' with '\1 \2 ('. - Replace '\(\w\)\([+]=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2364 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Fixes '-=' whitespace - Replace '\(\w\)\(-=\)(' with '\1 \2 ('. - Replace '\(\w\)\(-=\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2362 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Replace 'for(' with 'for ('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2360 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 zwelch * : - Replace 'while(' with 'while ('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2358 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-23 oharboe * : update w/missing eCos definitions after latest round of compiler formatting warnings fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2356 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-22 zwelch * : David Brownell : This should be my last significant update of the User's Guide for this release. Mostly it's a rework of the config file chapter's presentation of board and target config files. - Give the new path for scripts! - Move board-config material out of the target-config section - Add more board-config info, notably for reset-init events - Link out of the board-config section to NAND, NOR, and Reset chapters - Emphasize target input vs. output naming conventions - Other textual improvements Plus some other updates, like adding my copyright (now that I've basically rewritten much of this). git-svn-id: svn://svn.berlios.de/openocd/trunk@2354 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-22 oharboe * : David Brownell Make the Hitex STM32-PerformanceStick board config behave better: source the STM32 target config instead of using a private clone git-svn-id: svn://svn.berlios.de/openocd/trunk@2352 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 ntfreak * : - fix break caused by r2208 when using --pipe option - issue is gdb stdin buffer gets full before we redirect openocd output git-svn-id: svn://svn.berlios.de/openocd/trunk@2350 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 zwelch * : Oleksandr Tymoshenko : Resume command works only if resume address is provided. git-svn-id: svn://svn.berlios.de/openocd/trunk@2348 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2346 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2344 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2342 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2340 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2338 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2336 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2334 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2332 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2330 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2328 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2326 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2324 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2322 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2320 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2318 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2316 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2314 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2312 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2310 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2308 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2306 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2304 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2302 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2300 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 printf() -Werror fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@2298 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-21 duane * : C99 Type updates, include inttypes.h - it is catagorically required git-svn-id: svn://svn.berlios.de/openocd/trunk@2296 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-19 zwelch * : Remove editor preferences from source files. git-svn-id: svn://svn.berlios.de/openocd/trunk@2294 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-19 zwelch * : Paulius Zaleckas : This is minimal patch to support FA526 ARMv4 compatible core. Since it is very similar to ARM920T I tried to reuse as much code as possible. CPU and board configs will follow soon. git-svn-id: svn://svn.berlios.de/openocd/trunk@2292 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-19 oharboe * : fix jtag_add_callback() args. The first argument is nothing special, it's just another generic argument. git-svn-id: svn://svn.berlios.de/openocd/trunk@2290 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 oharboe * : less warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@2288 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Oyvind Harboe : Ecos uses sys/types.h not stdint.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@2286 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Update Style Guide documentation to explain basic type rules. git-svn-id: svn://svn.berlios.de/openocd/trunk@2284 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Transform 'u64' to 'uint64_t' - Replace '\([^_]\)u64' with '\1uint64_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2282 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Transform 'u32' to 'uint32_t' in src/flash. - Replace '\([^_]\)u32' with '\1uint32_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2280 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Transform 'u32' to 'uint32_t' in src/target/arm* - Replace '\([^_]\)u32' with '\1uint32_t'. - Replace '^u32' with 'uint32_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2278 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Transform 'u8' to 'uint8_t' - Replace '\([^_]\)u8' with '\1uint8_t'. - Replace '^u8' with 'uint8_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2276 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : Transform 'u8' to 'uint8_t' in src/target - Replace '\([^_]\)u8' with '\1uint8_t'. - Replace '^u8' with 'uint8_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2274 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : David Brownell : Clean up the PLD files: - Get rid of some extraneous whitespace - Make various functions static - Wrap overlong lines git-svn-id: svn://svn.berlios.de/openocd/trunk@2272 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-18 zwelch * : David Brownell : Take a whack at providing some texinfo style docs. Mostly it's just basic "how 2 write sane dox" stuff. git-svn-id: svn://svn.berlios.de/openocd/trunk@2270 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 oharboe * : dummy driver now works under eCos git-svn-id: svn://svn.berlios.de/openocd/trunk@2268 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : David Brownell : Fix for a goofy "board" config ... reuse target/pxa270.cfg instead of using a private copy. git-svn-id: svn://svn.berlios.de/openocd/trunk@2266 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : David Brownell : Let jtag_call_event_callbacks() behave when the callback removes itself. Oddly, this crashed on x86_32 but not x86_64. git-svn-id: svn://svn.berlios.de/openocd/trunk@2264 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : Fix compilation for Ubuntu 9.04 on x86-64 when using --enable-httpd. git-svn-id: svn://svn.berlios.de/openocd/trunk@2262 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : Ensure range errors are reported only when errno indicates one occurred. git-svn-id: svn://svn.berlios.de/openocd/trunk@2260 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : Add argument parsing errors in command.h, use in parse_type routines. git-svn-id: svn://svn.berlios.de/openocd/trunk@2258 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : Convert core parse_type implementations to check for underflow errors. git-svn-id: svn://svn.berlios.de/openocd/trunk@2256 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-17 zwelch * : Update parse_type macro definitions to allow re-use with signed types. git-svn-id: svn://svn.berlios.de/openocd/trunk@2254 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-16 zwelch * : David Brownell : Fix a bug preventing ICEpick "enable that TAP" code from working: the "runtest" command wrongly finished with a JTAG reset, discarding the work the TAP enable handler just finished! Instead, JTAG should stay in RUN/IDLE state. git-svn-id: svn://svn.berlios.de/openocd/trunk@2252 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-16 zwelch * : David Brownell : Tighten error handling on TAP enable/disable paths a bit: - Don't enable/disable unless it's necessary. Those event handlers could have nasty side effects... - Don't *succeed* enables/disables if there was no code which could have implemented that action. This prevents bugs like wrongly acting as if the scan chain changed. - Minor whitespace cleanup in enable/disable command code. The big problem is still the lack of code to verify scan chains were actually updated as requested; this adds a comment on that. I suspect the best we can do near term will be to verify IDCODE. git-svn-id: svn://svn.berlios.de/openocd/trunk@2250 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-16 zwelch * : David Brownell : Distributing FTDI's "ftd2xx" library with OpenOCD violates the OpenOCD license (GNU GPLv2 with no exceptions). Make that clear where that build option is presented, and don't describe the FTDI libraries as an option for any packager. (It's fine for personal use, of course.) Plus some related clarifications: libftdi version 0.16 for the new FT2232H chips (for RTCK and high speed USB); the Amontec drivers are just ftd2xx variants. git-svn-id: svn://svn.berlios.de/openocd/trunk@2248 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-16 zwelch * : David Brownell : Doc update: say "jtag newtap ... -disable" records the state after exiting the RESET state, matching the only implementation we're working with so far (TI ICEpick-C). Matching code updates. Now we can be sure that the "enabled" flag value is correct after JTAG resets. git-svn-id: svn://svn.berlios.de/openocd/trunk@2246 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-16 zwelch * : David Brownell : Minor jtag cleanup: - remove hidden assumption about JTAG event numbering - move function declarations to a header - some end'o'line whitespace - use "calloc" not "malloc + memset" git-svn-id: svn://svn.berlios.de/openocd/trunk@2244 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-15 zwelch * : David Brownell : Add another board ... OMAP2420 "H4" board. This won't be very widely used with OpenOCD, but with mainline support in both U-Boot and Linux it at least makes for a more complete set (and another testcase). This is incomplete support in several respects. The ARM11 support is not very deep yet; most registers aren't available, and the ETM can't be hooked up. Plus, there's no script for OMAP-specific stuff like setting up the SDRAM controller. Eventually the same NAND controller driver should work with OMAP2 and OMAP3. git-svn-id: svn://svn.berlios.de/openocd/trunk@2242 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : David Brownell : OpenOCD doesn't actually *need* to be keeping all TCP ports active ... creating security issues in some network configs. Instead, let config file specify e.g. "tcl_port 0" (or gdb_port, telnet_port) to disable that particular remote access method. git-svn-id: svn://svn.berlios.de/openocd/trunk@2240 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Improve handle_profile_command argument parsing: - Use parse_uint to ensure timeout value parses properly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2238 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Cleanup and improve handle_wp_command and handle_rwp_command: - Simplify argument parsing logic using switch statement. - Use parse_u32 to ensure all values parse properly. - Return syntax error when mode argument fails to parse. git-svn-id: svn://svn.berlios.de/openocd/trunk@2236 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Improve handle_verify_image_command_internal command argument handling: - Use parse_u32 to ensure address parses properly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2234 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Improve handle_load_image_command argument parsing: - Use parse_u32 to ensure base/min/max addresses parse properly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2232 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Improve handle_md_command argument handling: - Use parse_u32 and parse_uint for address and count, respectively. git-svn-id: svn://svn.berlios.de/openocd/trunk@2230 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Cleanup and improve handle_halt_command: - Make argument check use parse_uint to ensure value parses properly. - Move variable declarations to location of first use. git-svn-id: svn://svn.berlios.de/openocd/trunk@2228 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-13 zwelch * : Use parse_uint in handle_reg_command to ensure reg number parses properly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2226 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : David Brownell : Currently the "debug_level 3" command tracing ignores commands that could return values to TCL scripts (by plugging in to a slightly lower level of the interpreter stack). Fix that by abstracting the tracing command and starting to make some of those previously-untraced commands use this new mechanism. git-svn-id: svn://svn.berlios.de/openocd/trunk@2224 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : David Brownell : Partial fix to the "long IR length" problems. - Current code could handle up to 32 bit IR lengths with full functionality, if it didn't just reject may of them out of hand. So only reject clear errors, where the IR mask (or capture instruction) needs more than IrLen bits. - Longer IR lengths can only be handled in BYPASS mode for now. Example: TI's DSPs use 38-bit IR lengths. So we can't issue their IDCODE instructions... A more complete fix would be able to issue longer instructions; or minimally, would fail cleanly for the non-BYPASS case. Note that this *could* make some currently broken scripts fail, since the previous code accepted garbage values so long as they didn't use more than 16 bits. git-svn-id: svn://svn.berlios.de/openocd/trunk@2222 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Further cleanup to MIPS target read/write memory function: - Move the mips32_..._read_mem calls to top-level of read_mem function. - Change: Only perform mips_m4k_read_mem conversion when retval == ERROR_OK. - Prevents pointless conversions of bogus read values after failures. - Eliminate retval variable from mips_m4k_write_mem; return directly. - Move declaration of retval variable to point of first use. - Remove the now redundant switch statements testing size: - argument sanitizing already covers these cases. git-svn-id: svn://svn.berlios.de/openocd/trunk@2220 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Fix unitialized use of cur_speed in handle_jtag_khz_command: - Use the default KHz speed setting, in case interface is not initialized. git-svn-id: svn://svn.berlios.de/openocd/trunk@2218 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Improve handle_runtest_command: - Use parse_uint helper to ensure argument is parsed properly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2216 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Improve handle_irscan_command: - Use parse_u32 helper to ensure scan values are parsed properly. - Clear the fields buffer to ensure partial cleanup occur correctly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2214 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Use parse_uint helper to replace strtoul call in jtag_tap_by_string. git-svn-id: svn://svn.berlios.de/openocd/trunk@2212 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Simplify and improve amt_jtagaccel_handle_parport_port_command: - Show the port number to the user when asking for it or setting it. - Print an error if the amt_jtagaccel_port has already been set. - Use parse_u16 helper to ensure amt_jtagaccel_port string parses correctly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2210 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Simplify and improve handle_debug_level_comamnd: - Bug fix: Return a syntax error if more than one argument is given. - Bug fix: Use new parse_uint helper ensure debug_level parses correctly. - Change: Display the debug_level after it has been set. - Simplify bounds checking of debug_level. git-svn-id: svn://svn.berlios.de/openocd/trunk@2208 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-12 zwelch * : Add new parse_uinttype wrappers for strtoul in src/helper/command.[ch]. - Used to improve command argument parsing of unsigned integers values. git-svn-id: svn://svn.berlios.de/openocd/trunk@2206 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : David Brownell : Rework the "Simple Configuration Files" chapter so it's more of a quick-start "how to set up your project" tutorial: - Say how to hook up the JTAG adapter. This will help new users, and in any case is worth spelling out somewhere. - Streamline the previous rather haphazard presentation, filling in some missing holes along the way: * Suggest "project directory" structure * Introduce new term, "user config" file (openocd.cfg) * Talk about more options for openocd.cfg contents * ... and about creating new config files * Add new topic, project-specific utilities (+examples) - Remove too-short, yet duplicative, chapter 19 Nudge packagers a bit more strongly to send patches (including config files) upstream. git-svn-id: svn://svn.berlios.de/openocd/trunk@2204 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 ntfreak * : - fix bug introduced during r1962 - Original patch submitted by David Claffey [dnclaffey@gmail.com]. git-svn-id: svn://svn.berlios.de/openocd/trunk@2202 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 oharboe * : fix ordering of arguments to fwrite() git-svn-id: svn://svn.berlios.de/openocd/trunk@2197 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : Factor target_timer_callbacks_check_time into pieces: - Add target_timer_callback_periodic_restart and target_call_timer_callback. - Clean up and simplify logic that determines whether to call each callback. - Move variable declarations to location of first use. git-svn-id: svn://svn.berlios.de/openocd/trunk@2195 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : Simplify and fix target handle_rwp_command routine: - Return syntax error unless exactly one argument is passed. - Move variable declaration to point of first use. git-svn-id: svn://svn.berlios.de/openocd/trunk@2193 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : Simplify handle_resume_command: - Eliminate redundant calls to target_resume with addr temp variable. - Place variables at location of first use. - Fix minor whitespace issues. git-svn-id: svn://svn.berlios.de/openocd/trunk@2191 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : Move jtag_get_flush_queue_count near jtag_execute_queue (fix its docs). git-svn-id: svn://svn.berlios.de/openocd/trunk@2189 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : Group JTAG reset configuration and accessor APIs together in header file. Remove unused reset_line_mode enumerated type. git-svn-id: svn://svn.berlios.de/openocd/trunk@2187 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 zwelch * : Out-of-line jtag_tap_next_enabled and simplify its logic. git-svn-id: svn://svn.berlios.de/openocd/trunk@2185 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-11 oharboe * : disable polling continuous polling during reset git-svn-id: svn://svn.berlios.de/openocd/trunk@2183 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-10 ntfreak * : - fix texi/pdf issue created in svn r2039 git-svn-id: svn://svn.berlios.de/openocd/trunk@2181 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-10 zwelch * : David Brownell : Tweak the csb337 code so that it doesn't enable alignment traps when it completes the "reset init" sequence. It turns out that the current CFI code reliably triggers such traps. git-svn-id: svn://svn.berlios.de/openocd/trunk@2179 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Improve use of automake conditionals for FTDI-based JTAG drivers: - Remove once-used XXX_FTD2XX symbols; replace with XXX_DRIVER symbols. - Enabled when either libftdi or FTD2xx driver should be built. - Eliminates redundant DRIVERSFILE assignment in JTAG automake input. git-svn-id: svn://svn.berlios.de/openocd/trunk@2177 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Rename jtag_driver.c as driver.c to remove duplicate name component. git-svn-id: svn://svn.berlios.de/openocd/trunk@2175 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 oharboe * : reset to eol native for now. guess-rev.sh was broken by eol native, but it was a red herring that these two files were affected. git-svn-id: svn://svn.berlios.de/openocd/trunk@2173 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Encapsulate the core jtag interface pointer: - Add new jtag_config_khz to increase encapsulation of jtag->khz call. - Add new jtag_get_speed_readable to encapsulate of jtag->speed_div call. - Make definition of jtag static in core.c, remove extern from tcl.c. git-svn-id: svn://svn.berlios.de/openocd/trunk@2171 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Continue encapsulation of JTAG event callback sub-API: - Move jtag_event_callbacks struct to core.c; it's an implementation detail. - Move jtag_*_event_callbacks next to the definition of the new function type. git-svn-id: svn://svn.berlios.de/openocd/trunk@2169 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Expose jtag_unregister_event_callback with related API declarations. git-svn-id: svn://svn.berlios.de/openocd/trunk@2167 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Properly encapsulate core hasKHZ variable. git-svn-id: svn://svn.berlios.de/openocd/trunk@2165 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Add missing static keywords to a few variables in JTAG core module. git-svn-id: svn://svn.berlios.de/openocd/trunk@2163 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Encapsulate jtag_reset_config using accessors: - Update handle_reset_config_command in tcl.c to use new helpers. - Replace direct accesses in JTAG interface and target drivers. git-svn-id: svn://svn.berlios.de/openocd/trunk@2161 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Add get and set accessors for jtag_speed: - Setter calls the interface driver callback to improve core encapsulation. - Use getter in standard JTAG interface drivers and ZY1000 minidriver. git-svn-id: svn://svn.berlios.de/openocd/trunk@2159 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Encapsulate the jtag_trst and jtag_srst variables: - Add accessor functions to return their value. - Use new SRST accessor in cortex_m3.c and mips_m4k.c git-svn-id: svn://svn.berlios.de/openocd/trunk@2157 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Remove superfluous extern of jtag_event_strings from jtag.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@2155 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 oharboe * : removed native line end style - breaks cygwin git-svn-id: svn://svn.berlios.de/openocd/trunk@2153 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Remove accidental duplicate of hasKHz; fixes pre-init speed setup. git-svn-id: svn://svn.berlios.de/openocd/trunk@2151 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Split main jtag.c file into two layers: - src/jtag/core.c: contains the low-level JTAG TAP and scanning routines. - src/jtag/tcl.c: contains high-level JTAG TCL commands that use the core. - Remove static keywords from routines in core.c, extern from tcl.c: - jtag, jtag_interface global variables - jtag_{examine,validate}_chain and jtag_tap_{init,free} functions - Added myself to the copyright header in both of these files. - Used 'svn cp' to add files, so versioning was preserved for both. git-svn-id: svn://svn.berlios.de/openocd/trunk@2149 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Move Doxygen documentation for IR/DR scan routines to header file. - Move plain IR scan declaration closer to the other IR scan declarations. git-svn-id: svn://svn.berlios.de/openocd/trunk@2147 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Remove non-existant jtag_tap_by_position API declaration. git-svn-id: svn://svn.berlios.de/openocd/trunk@2145 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Cleanup jtag_tap_by_abs_position: - Remove unused orig_n local variable. - Merge variable declaration with first use. - Update code to use current style guidelines. git-svn-id: svn://svn.berlios.de/openocd/trunk@2143 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Simplify and fix bug in jtag_tap_by_string: - Bug fix: Use unsigned type and strtoul when parsing for position number. - Simplify logic by returning directly when a tap is found by name. - Reduce scope: declare temporary variables with first use. - Bring code up to current style guidelines. git-svn-id: svn://svn.berlios.de/openocd/trunk@2141 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Cleanup jtag_tap_count_enabled. git-svn-id: svn://svn.berlios.de/openocd/trunk@2139 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Reduce scope or eliminate temporary variables in jtag_add_statemove: - Change types of tms_bits and tms_count to unsigned, eliminates a cast. - Use moves[] only if needed; a single move can use goal_state directly. - Declare loop induction variable inside its control statement. - Remove retval in favor of direct returns. git-svn-id: svn://svn.berlios.de/openocd/trunk@2137 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-09 zwelch * : Revert changes from r2134 that snuck into the commit. Mea culpa. git-svn-id: svn://svn.berlios.de/openocd/trunk@2135 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 kc8apf * : Fix eol-style on guess-rev.sh git-svn-id: svn://svn.berlios.de/openocd/trunk@2133 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 oharboe * : Zach Welch wrote a fix for configure problems under Cygwin. ltmain.sh is added to svn ignore git-svn-id: svn://svn.berlios.de/openocd/trunk@2131 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Factor interface list to its own command: - Add handle_interface_list_command, used by handle_interface_command. - Display output of new list to command console. - Change first index of displayed drivers to 1; it's only cosmetic. git-svn-id: svn://svn.berlios.de/openocd/trunk@2129 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify jtag_add_sleep: - Add todo for removing keep_alive: is this a layering violation? - Use jtag_set_error instead of accessing jtag_error directly. - Remove superfluous retval temporary variable and empty return. git-svn-id: svn://svn.berlios.de/openocd/trunk@2127 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify jtag_add_clocks: - Use jtag_set_error instead of accessing jtag_error directly. - Improve error language and whitespace. git-svn-id: svn://svn.berlios.de/openocd/trunk@2125 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify jtag_add_pathmove: - Use jtag_set_error instead of accessing jtag_error directly. - Eliminate superfluous retval temporary variable. - Reduce scope of loop induction variable. - Wrap to fit within 80 columns. git-svn-id: svn://svn.berlios.de/openocd/trunk@2123 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify jtag_add_plain_dr_scan: - Use jtag_set_error instead of accessing jtag_error directly. - Wrap function arguments to fit everything in 80 columns. - Move retval variable to location of first use. git-svn-id: svn://svn.berlios.de/openocd/trunk@2121 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify jtag_add_plain_ir_scan: - Use jtag_set_error instead of accessing jtag_error directly. - Wrap function arguments to fit everything in 80 columns. git-svn-id: svn://svn.berlios.de/openocd/trunk@2119 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify jtag_execute_queue: - Add static inline jtag_error_clear helper to return and clear jtag_error. - Use new helper to shrink body of function to two lines. git-svn-id: svn://svn.berlios.de/openocd/trunk@2117 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Cleanup handle_runtest_command: - Make command argument require exactly one argument; do not allow extras. - Remove superfluous whitespace at end of function. - Wrap function arguments to fit in 80 columns. git-svn-id: svn://svn.berlios.de/openocd/trunk@2115 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Extend handle_jtag_n{s,t}rst_delay_command routines: - Add support to display the reset delays too, like the other commands. - Always show the values, so users can see if they are being redundant. git-svn-id: svn://svn.berlios.de/openocd/trunk@2113 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Update JTAG reset delay command handlers: - Fixes for error handling: - Return a syntax error instead of calling exit(-1). - Return error when more than one argument is provided too. - Remove useless braces and indent after the if/return statements. - Wrap function arguments to fit in 80 columns. git-svn-id: svn://svn.berlios.de/openocd/trunk@2111 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Simplify logic in handle_jtag_speed_command. git-svn-id: svn://svn.berlios.de/openocd/trunk@2109 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 oharboe * : David Brownell - Don't let disabled TAPs be set as the current target - Improve "targets" output: * Remove undesirable "chain position" number; we discourage using them * TAP and Target column updates: + make them long enough for current usage + improve labels, removing guesswork + "TapName" label patches scan_chain output * Highlight the "current" target * Display "tap disabled" as a new pseudo-state * Update docs accordingly git-svn-id: svn://svn.berlios.de/openocd/trunk@2107 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Reorder configure script macros: - Check for a compiler before looking for libraries or header files. - Initialize automake before calling other AM_ macros. - Disable libtool shared libraries by default. - Remove checks for unused C++, Fortran, and Java compilers. - Remove redundant AC_CANONICAL_HOST; called by AC_PROG_LIBTOOL. git-svn-id: svn://svn.berlios.de/openocd/trunk@2105 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-08 zwelch * : Move minidummy source file, as was supposed to happen in last commit. git-svn-id: svn://svn.berlios.de/openocd/trunk@2103 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Fix reference warning in JTAG primer, add another external reference. git-svn-id: svn://svn.berlios.de/openocd/trunk@2101 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : David Brownell : Clarify docs for the evb_lm3s811 layout: works in two modes, not just one. git-svn-id: svn://svn.berlios.de/openocd/trunk@2099 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : David Brownell : Rework chapter 12 (CPU configuration) to use @deffn, match the code more closely, and present things more clearly. Includes the *current* list of targets. git-svn-id: svn://svn.berlios.de/openocd/trunk@2097 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 oharboe * : retire endstate command git-svn-id: svn://svn.berlios.de/openocd/trunk@2095 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Fix regressions in previous series of cleanp, caused by r2092. git-svn-id: svn://svn.berlios.de/openocd/trunk@2093 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Improve variable type: change device_count to unsigned. - Improves jtag_tap_count_enabled() API too (now returns unsigned). git-svn-id: svn://svn.berlios.de/openocd/trunk@2091 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Factor TAP ID matching into new helper function. - Simplifies the main jtag_examine_chain loop logic considerably. git-svn-id: svn://svn.berlios.de/openocd/trunk@2089 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Add helper to check for the terminating ID during jtag_examine_chain. git-svn-id: svn://svn.berlios.de/openocd/trunk@2087 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Factor output of accepted/incorrect/expected TAP IDs into static helper. git-svn-id: svn://svn.berlios.de/openocd/trunk@2085 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Factor JTAG chain examination into static helper function. git-svn-id: svn://svn.berlios.de/openocd/trunk@2083 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Reduce indent: invert logic test for unexpected TAP (no IDs). git-svn-id: svn://svn.berlios.de/openocd/trunk@2081 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Factoring of jtag_examine_chain for maintainability: - Move definition of maximum JTAG chain size closer to its only uses. git-svn-id: svn://svn.berlios.de/openocd/trunk@2079 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-07 zwelch * : Clean up handle_endstate_command(): - Merge declaration of state with first use. - Unindent and remove unnecessary 'else' block. git-svn-id: svn://svn.berlios.de/openocd/trunk@2077 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 oharboe * : remove hacks no longer required to build OpenOCD w/eCos git-svn-id: svn://svn.berlios.de/openocd/trunk@2074 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 oharboe * : remove unused include file: inttypes.h git-svn-id: svn://svn.berlios.de/openocd/trunk@2072 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 zwelch * : Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_NextEnabledTap' as 'jtag_tap_next_enabled.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2069 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 zwelch * : Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_NumTotalTaps' as 'jtag_tap_count.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2067 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 zwelch * : Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByString' as 'jtag_tap_by_string.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2065 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 zwelch * : Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_TapByPosition' as 'jtag_tap_by_position.' git-svn-id: svn://svn.berlios.de/openocd/trunk@2063 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 zwelch * : Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_all_taps' as '__jtag_all_taps.' - Frees original symbol name to rename the accessor function. git-svn-id: svn://svn.berlios.de/openocd/trunk@2061 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-05 zwelch * : Add accessors for reset delays; use them in jim command handlers. git-svn-id: svn://svn.berlios.de/openocd/trunk@2059 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 zwelch * : Add jtag_get_flush_queue_count accessor to help future factoring. git-svn-id: svn://svn.berlios.de/openocd/trunk@2057 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 zwelch * : Clean up the core JTAG TAP APIs: - Move jtag_tap_name to same location as other TAP functions; export it. - Factor new jtag_tap_add() from jim_newtap_cmd(); appends TAP to global list. - Move static chain position counter to global; use in jtag_NumTotalTaps(). - Use jtag_AllTaps for reading tap list, instead of accessing global directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@2055 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 zwelch * : Add missing static keywords in JTAG source file. git-svn-id: svn://svn.berlios.de/openocd/trunk@2053 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 ntfreak * : - add support for different TAR autotincrement sizes as per ARM ADI spec. - set TAR size to 12 bits for Cortex-M3. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu]. git-svn-id: svn://svn.berlios.de/openocd/trunk@2051 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 oharboe * : Introduce jtag_get_end_state() fn to clarify code a bit. git-svn-id: svn://svn.berlios.de/openocd/trunk@2049 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 oharboe * : do not modify global end state from jtag_add_xxx() git-svn-id: svn://svn.berlios.de/openocd/trunk@2047 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 oharboe * : no longer use jtag_add_xxx() to set end state to TAP_DRPAUSE git-svn-id: svn://svn.berlios.de/openocd/trunk@2045 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 oharboe * : use assert() to catch TAP_INVALID passed to jtag_add_xxx() fn's. git-svn-id: svn://svn.berlios.de/openocd/trunk@2043 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 oharboe * : jtag_add_end_state() now returns the value of the global variable and does not modify the global variable if passed TAP_INVALID. This patch has no effect on the current code and is just to prepare upcoming patches. git-svn-id: svn://svn.berlios.de/openocd/trunk@2041 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 zwelch * : David Brownell : Update the "General Commands" (a.k.a. "random stuff") chapter, and associated chunks of other text: - Switch to @deffn and review everything that's documented - Improve descriptions of reset events, with reference to the setup.tcl code which issues them. - Move one zy1000-specific command to that driver's doc. - There is no "script" command; remove its doc. NOTE: Some things missing from this bit of work are: 1- Reviewing the code to catch various *missing* functions, mostly from "target.c" 2- Alphabetizing and organizing. This chapter is a real grab-bag with no evident focus or structural principle. 3- Hole-filling and bugfixing with respect to messaging/logging. Example, what principle could possibly justify the tcl command output going into the server output/log instead of just the telnet session? 4- Not just for this chapter ... but there should be a section with descriptions of all the supported image file formats, so every image command can just reference that section. git-svn-id: svn://svn.berlios.de/openocd/trunk@2039 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 zwelch * : David Brownell : Minor cleanup of FT2232: - make Olimex glue warn about Olimex issues instead of JTAGkey issues; - make some data static+const; - don't export some internal symbols. git-svn-id: svn://svn.berlios.de/openocd/trunk@2037 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-04 zwelch * : David Brownell : Convert the Interface/Dongle Config chapter's section on drivers to use the @deffn syntax, and integrate the presentation of the driver-specific commands with the relevant driver. Alphabetize. Cross-checked against the code ... several adapters were not listed, and a few commands weren't. (Maintainers for the versaloon and zy1000 drivers would be good candidates to add the commands missing from those sections...) git-svn-id: svn://svn.berlios.de/openocd/trunk@2035 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 oharboe * : use assert() for obscure check on illegal arguments upon trst being asserted while commands are queued git-svn-id: svn://svn.berlios.de/openocd/trunk@2033 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 oharboe * : catchup with jtag refactoring. git-svn-id: svn://svn.berlios.de/openocd/trunk@2031 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Finish JTAG header file modularization; command factoring follows. git-svn-id: svn://svn.berlios.de/openocd/trunk@2029 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Move JTAG command APIs into new jtag/commands.h header file. git-svn-id: svn://svn.berlios.de/openocd/trunk@2027 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Improve in-source documentation that was causing Doxygen warnings. git-svn-id: svn://svn.berlios.de/openocd/trunk@2025 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Improve logger script to expose warnings and errors in the output. git-svn-id: svn://svn.berlios.de/openocd/trunk@2023 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Add draft of Patching Primer in The Manual; update primer page. git-svn-id: svn://svn.berlios.de/openocd/trunk@2021 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Enable or add doxygen comments to the public JTAG API. git-svn-id: svn://svn.berlios.de/openocd/trunk@2019 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Remove vestigal tap_transition type from public jtag API. git-svn-id: svn://svn.berlios.de/openocd/trunk@2017 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Expose tap_state_by_name TAP helper available in public API. git-svn-id: svn://svn.berlios.de/openocd/trunk@2015 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : David Brownell : Rework the TAP creation documentation. - Try to use "TAP" not "tap" everywhere; it's an acronym. - Update the associated "target config files" section: * reference the "TAP Creation" chapter for details * simplify: reference interesting multi-tap config files * let's not forget CPU configuration (*before* workspace setup) * streamline it a bit * move that workspace-vs-mmu issue to a better location - Clean up TAP creation doc mess * switch to @deffn * (re)organize the remaining stuff * reference the "Config File Guidelines" chapter - Tweak the "Target Configuration" chapter * rename as "CPU configuration"; unconfuse vs. target/*.cfg * bring out that it's not just there for GDB * move TAP events to the TAP chapter, where they belong (bugfix) git-svn-id: svn://svn.berlios.de/openocd/trunk@2013 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Add missed accessor for checking the current TMS table. git-svn-id: svn://svn.berlios.de/openocd/trunk@2011 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-03 zwelch * : Make tap_state_by_name available in new JTAG interface API header. git-svn-id: svn://svn.berlios.de/openocd/trunk@2009 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 zwelch * : Finish removing '#ifdef HAVE_JTAG_MINIDRIVER_H' from jtag.h: - Wraps JTAG callback API functions: - Outlines jtag_add_callback() and jtag_add_callback4(). - Adds interface_ prefix to existing in-tree driver implementation. - Declare the driver interfaces routines in miniheader.h file. This patch requires renaming the equivalent macros in out-of-tree jtag_minidriver.h implementations. git-svn-id: svn://svn.berlios.de/openocd/trunk@2007 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 ntfreak * : - change signature for adi_jtag_dp_scan and adi_jtag_dp_scan_u32 to use swjdp_common_t *swjdp instead of arm_jtag_t *jtag_info - change SWJDP_IR/DR_APACC to DAP_IR/DR_APACC to conform with ARM_ADI docs. - add swjdp->memaccess_tck field and code for extra tck clocks before accessing memory bus - Set default memaccess value to 8 for Cortex-M3. - Add dap memaccess command. - document all armv7 dap cmds. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu]. git-svn-id: svn://svn.berlios.de/openocd/trunk@2005 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 oharboe * : remove unecessary #ifdef as file is only built when minidriver is enabled. git-svn-id: svn://svn.berlios.de/openocd/trunk@2003 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 oharboe * : more missing eCos types git-svn-id: svn://svn.berlios.de/openocd/trunk@2001 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 zwelch * : Move interface_jtag_add_scan_check_alloc implementations to their respective implementation files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1999 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 oharboe * : Remove unused code, TAP_INVALID is never passed to drivers. git-svn-id: svn://svn.berlios.de/openocd/trunk@1997 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 zwelch * : More JTAG interface driver cleanup: - Moves references to global jtag interface to default core implementation. - Missed this reference in the earlier "pointless" patch. Mea culpa. Important: this has a side-effect. Previously, the error return inside the interface routine short-circuited the remainder of that function when 'init' has not been called. With this patch, the command queue will be cleared in the case that 'init' has been called. Since that case indicates a buggy script, this does not seem to be a problem. git-svn-id: svn://svn.berlios.de/openocd/trunk@1995 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 zwelch * : More JTAG interface driver cleanup: - Make interface_jtag_execute_queue call new helper function. - Add default_interface_jtag_execute_queue to wrap jtag interface access. This patch may look useless on its own, but it helps to isolate the core JTAG variables from the interface_jtag_* routines, so the later can be moved into jtag_driver.c in a pending patch. git-svn-id: svn://svn.berlios.de/openocd/trunk@1993 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 zwelch * : Encapsulate JTAG command interfaces for moving to jtag_interface.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@1991 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-02 zwelch * : Start clean-up of JTAG driver interface: - Factor jtag_add_scan_check to call new jtag_add_scan_check_alloc helper. - Use conditional logic to define two versions of the helper. - These helpers will be moved to other files in future patches. git-svn-id: svn://svn.berlios.de/openocd/trunk@1989 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : David Brownell : Whitespace fixes in jtag.c ... mostly end-of-line crap. Flag "jtag_device" command as obsolete in its helptext. git-svn-id: svn://svn.berlios.de/openocd/trunk@1987 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : David Brownell : This is the missing half of the r1974 patch: OSK5912 board support, which was split out from the omap5912 target config. git-svn-id: svn://svn.berlios.de/openocd/trunk@1985 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : Encapsulate JTAG minidriver functions, plan for new header file. git-svn-id: svn://svn.berlios.de/openocd/trunk@1983 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : Scrub final vestiges of in_handler from mips target APIs. git-svn-id: svn://svn.berlios.de/openocd/trunk@1981 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 oharboe * : fix warning for a variable that GCC thought might be uninitialized(which it can't be). git-svn-id: svn://svn.berlios.de/openocd/trunk@1979 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : David Brownell : Uplevel the arch commands to be a chapter; they really don't fit in the "general commands" category. git-svn-id: svn://svn.berlios.de/openocd/trunk@1977 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : David Brownell : Various updates, mostly small/formatting changes: * Small content tweaks: - Re-title: "OpenOCD User's Guide". - For users, URLS for latest doc and SparkFun forum - Mention GIT-SVN * Fix some front-matter goofage, matching texinfo docs: - "paragraphintent" location matters - put release version/date description with the copyright * Fix some other stuff matching texinfo docs: - no tabs - tweak some refs and anchors * whitespace-at-end-o-line fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1975 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-06-01 zwelch * : David Brownell : Whitespace fixes. git-svn-id: svn://svn.berlios.de/openocd/trunk@1973 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Final step in isolating target_type_s structure: - Move definition of 'struct target_type_s' into new 'target_type.h' file. - Forward delclaration remains in target.h, with comment pointing to new file. - Replaces #define with #include in source files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1971 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : First step in hiding target_type_s from public interface: - Add DEFINE_TARGET_TYPE_S symbol in files that need it defined. - Forward declare 'struct target_type_s' only, unless that symbol is defined. git-svn-id: svn://svn.berlios.de/openocd/trunk@1969 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Add target breakpoint and watchpoint wrapper: - replaces all calls to target->type->{add,remove}_{break,watch}point. git-svn-id: svn://svn.berlios.de/openocd/trunk@1967 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Add target_step wrapper: - replaces all calls to target->type->step. git-svn-id: svn://svn.berlios.de/openocd/trunk@1965 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Add target_bulk_write_memory wrapper: - replaces all calls to target->type->bulk_write_memory. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1963 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Add target_run_algorithm wrapper: - replaces all calls to target->type->run_algorithm. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1961 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Add target_read_memory wrapper: - replaces all calls to target->type->read_memory. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1959 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Make nvp_target_event static; remove its external declaration. git-svn-id: svn://svn.berlios.de/openocd/trunk@1957 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-31 zwelch * : Peter Denison : The debugging code in jlink_tap_execute() called when _DEBUG_USB_COMMS_ is defined was using the entire cached scan length to print the results buffers, and not the correct length of each individual buffer. git-svn-id: svn://svn.berlios.de/openocd/trunk@1955 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-30 zwelch * : Eliminate duplicated code in the handle_mw_command memory write loop. - wordsize will always be 1, 2, or 4 due to preceeding switch statement. - move call to keep_alive after successful writes, not upon failures git-svn-id: svn://svn.berlios.de/openocd/trunk@1953 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-30 zwelch * : Remove unused jlink_execute_end_state (unreferenced after r1949). git-svn-id: svn://svn.berlios.de/openocd/trunk@1951 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-30 oharboe * : remove unused JTAG_END_STATE git-svn-id: svn://svn.berlios.de/openocd/trunk@1949 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-30 oharboe * : more reset_config texts git-svn-id: svn://svn.berlios.de/openocd/trunk@1947 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-30 zwelch * : David Brownell : Provide basic documentation on the ARM ETM and ETB trace commands. Fix minor goofs in registration of the ETM commands; and whitespace issues in the proof-of-concept oocd_trace code. (Plus include a ref to Dominic's email saying that it's just proof-of-concept code.) Note that I'm still not sure whether the ETM support works. But documenting how it's expected to work should help sort out which behaviors are bugs, which will help get bugs patched. ZW: whitespace changes were split out of this patch but will follow. git-svn-id: svn://svn.berlios.de/openocd/trunk@1945 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-29 zwelch * : Remove error_handler_t type definition; it was unused in the tree. git-svn-id: svn://svn.berlios.de/openocd/trunk@1943 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-29 zwelch * : David Brownell : Provide basic documentation for some of the other flash drivers. avr ... looks incomplete, may work with one AVR8 microcontroller ecosflash ... can't find docs lpc288x ... an NXP part, driver seems lpc2888-specific ocl ... some arm7/arm9 thing, can't find docs pic32mx ... looks incomplete, for PIC32MX (MIPS 4K) devices tms470 ... for TI TMS470 parts Still seems to be mostly arm7tdmi... several of these have no users in the current tree. git-svn-id: svn://svn.berlios.de/openocd/trunk@1941 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-28 zwelch * : David Brownell : Start converting the architecture-specific commands to @deffn format, reviewing against the code. * armv4_5 disassemble ... now documented; although Jazelle code is not handled * It's "armv4_5 core_state" not "core_mode"; although Jazelle state is not handled * arm7/9 "debug" commands ... now with other arm7_9 commands, no longer in a separate section * arm926ejs cp15 ... previous description was broken, it matched the code for arm920t instead * Have separate subsections for ARMv4/ARMv5, ARMv6, and ARMv7; the latter are new * Move core-specific descriptions into sub-subsections under those architectures; XScale and ARM11 descriptions are new The new XScale and ARM11 command descriptions surely need elaboration and review. ARM CP15 operation descriptions in general seem to be confused and incomplete. git-svn-id: svn://svn.berlios.de/openocd/trunk@1939 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-28 zwelch * : David Brownell : Start updating the NOR flash coverage to use @deffn syntax, so the commands have more consistent presentation and formatting. This reorganizes information and updates its presentation, except where the information didn't really match the code. This patch updates most of the driver specific support, creating one new (and alphabetized!) section just for driver-specific data, where previously that data was split over up to three sections. Of note: - The at91sam7 docs were a bit out of date with respect to the code. - The "str9xpec" stuff still deserves some work. For now, it sits in its own subsection; pretty messy. - Likewise the "mflash" stuff. That's a parallel infrastructure, and is now in a section of its own. - The "mass_erase" commands for the Cortex M3 chips got turned into footnotes. IMO, they should vanish sometime; they're superfluous. - There are still a bunch of undocumented NOR drivers. Examples: avr(8), tms470, pic32mx, more. Plus there are a handful of minor tweaks to the NAND docs (to help make the NOR and NAND presentations be parallel); the "Command Index" has been renamed as the "Command and Driver Index"; reference TI instead of Luminary Micro in several places. git-svn-id: svn://svn.berlios.de/openocd/trunk@1937 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : Fix potentialyl unaligned memory accesses in mflash driver. git-svn-id: svn://svn.berlios.de/openocd/trunk@1935 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 kc8apf * : Author: Nicolas Pitre - Silence errors about keep_alive() not being called frequently enough unless a gdb session is active or debugging is enabled git-svn-id: svn://svn.berlios.de/openocd/trunk@1933 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : unsik Kim : Add large bank write/dump support in mflash driver. git-svn-id: svn://svn.berlios.de/openocd/trunk@1931 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : unsik Kim : Remove unused mflash driver 'prove' field. git-svn-id: svn://svn.berlios.de/openocd/trunk@1929 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : unsik Kim : Change prefix of mflash driver routines to mg_. git-svn-id: svn://svn.berlios.de/openocd/trunk@1927 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 ntfreak * : - add support for cortino jtag interface git-svn-id: svn://svn.berlios.de/openocd/trunk@1925 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : Link new Primer pages into the main list of Primers. git-svn-id: svn://svn.berlios.de/openocd/trunk@1923 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : Add draft of Autotools Primer to The Manual. git-svn-id: svn://svn.berlios.de/openocd/trunk@1921 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : Move TCL script files -- Step 2 of 2: - Move src/tcl to tcl/. - Update top Makefile.am to use new path name. git-svn-id: svn://svn.berlios.de/openocd/trunk@1919 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-27 zwelch * : Add warning to generated Doxyfile to edit Doxyfile.in. git-svn-id: svn://svn.berlios.de/openocd/trunk@1917 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-26 zwelch * : SimonQian , reported by R.Doss: This patch fixes a segfault when TDO was not received in XXR command: - allocate space for the value and mask anyway - clear the mask to zero to effectively skip the output comparison step git-svn-id: svn://svn.berlios.de/openocd/trunk@1915 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-26 zwelch * : David Brownell : Update the "Reset Configuration" information in the User's guide: - Convert to @deffn syntax - Move tutorial text from command descriptions into new sections - Describe several different types of JTAG-visible reset - Expand descriptions of configuration tweaks for SRST and TRST - Link to the "reset" command, and vice versa - Bugfix the "reset_config" description (it didn't match the code) Plus, be more proscriptive: do it in board config files, except for the oddball cases where that won't work. (Current target.cfg files seem to have much goofage there; several seem board-specific.) git-svn-id: svn://svn.berlios.de/openocd/trunk@1913 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-25 kc8apf * : Author: Raúl Sánchez Siles - cfi flash_address coding style fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1911 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-24 zwelch * : David Brownell : Make startup for the various server ports be quiet, unless debugging is active: don't emit needless scarey messages. Update the relevant documentation and its references: - For these port commands ... cover the default values; convert to @deffn syntax; include their use outside of the configuration stage; and alphabetize. Similar updates to the rest of that small chapter: - Highlight that there even *IS* a configuration stage, after which some command functionality is no longer available. - For GDB commands ... convert to @deffn syntax; alphabetize; include a missing command (!); add missing helptext (!) for one non-missing command; update relevant cross-references and index entries. git-svn-id: svn://svn.berlios.de/openocd/trunk@1909 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-24 zwelch * : David Brownell : minor davinci_nand bugfix Fix a bug that joined us at the last minute, when an efficient alloca() call got swapped out for a more portable malloc(). Also log one error, to give a clue in case it appears "in the wild". git-svn-id: svn://svn.berlios.de/openocd/trunk@1907 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-24 zwelch * : Nicolas Pitre : Update sheevaplug interface script: When the CPU is in the WFI state, the JTAG interface simply doesn't respond at all and initial tap examination simply fails. Let's simply do it again when we come around to assert nSRST. git-svn-id: svn://svn.berlios.de/openocd/trunk@1905 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-24 zwelch * : David Brownell : NAND support for DaVinci-family drivers, with HW ECC support. Declare the NAND chip on the DM355 EVM board. Currently tested on DM355 for Linux interop using the standard large page (2KB) chip in the EVM socket; "hwecc1" and "hwecc4" work fine. (Using hwecc4 relies on patches that haven't quite made it through the Linux-MTD bottlenecks yet.) Not yet tested: 1-bit on small-page (although it's hard to see how that could fail); 4-bit on small page (picky layout issues); the "hwecc_infix" mode (primarily for older boot ROMs; testing there is blocked on having new bootloader code). git-svn-id: svn://svn.berlios.de/openocd/trunk@1903 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-24 zwelch * : Properly fix doxygen out-of-tree build process: - move Doxyfile to Doxyfile.in: type 'make Doxyfile' to recreate it - create Doxyfile from Doxyfile.in with make rule: - use sed substitution of $(srcdir) to location directories - delete all doxygen created files with 'make distclean' - include all required files (including logger.pl) in distribution git-svn-id: svn://svn.berlios.de/openocd/trunk@1901 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-24 zwelch * : Freddie Chopin : - add reset delay settings for LPC2103, LPC2124, and LPC2129. git-svn-id: svn://svn.berlios.de/openocd/trunk@1899 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-23 zwelch * : Update main page of doxygen developer documentation: - Rewrite copy to give a better introduction and overview. - Add subpages: The List, Style Guide, Patch Policies, and Bug Reporting. git-svn-id: svn://svn.berlios.de/openocd/trunk@1897 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-23 zwelch * : Update user guide documentation: - Remove style guide from user guide; moved to doxygen manual. - Replace with improved introduction for developers and packagers. - Move introductory paragraph about the project under the About page. git-svn-id: svn://svn.berlios.de/openocd/trunk@1895 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-23 zwelch * : Submitted by Magnus Lundin : - Remove FTDI driver tap_set_state call; performed by jtag_add_reset. git-svn-id: svn://svn.berlios.de/openocd/trunk@1893 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-23 zwelch * : Fix make docs rule to work with out-of-tree builds. git-svn-id: svn://svn.berlios.de/openocd/trunk@1891 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-23 zwelch * : Submitted by Magnus Lundin : Updates to the J-Link interface driver to support more device versions: - Add capability detection: - if capable, detect protocol version; otherwise, assume v2 protocol. - if capable, detect buffer size; otherwise, assume minimal. - Disable command result queries for devices using v2 protocol. - Defined and use JTAG2 command with v2 protocol; JTAG3 is v3 protocol. - Add TCL command to allow explicit setting of J-Link protocol version. With approval, I revised the patch to make the following changes: - add static keywords to new jlink-specific variables - factor calculation of major_version to be more readable - remove braces around simple one-line statements in if/else clauses - remove (rather than #if 0) duplicate reset code; it is in SVN - use &function to be clearer when passing function pointers - add symbols for EMU_CMD_GET_CAPS bits; do not hard-code constants! - almost renamed jlink_handle_jlink_hw_jtag_command (seriously?!?!) - rewrote that function using a switch statement. - made version request processing easier to understand and modify - improve alternate endpoint detection: - make code easier to read by using temporary variables - eliminate extra level of indentation and redundant logging - use ternary conditional to select JTAG2 or JTAG3 command - reverse version test in jlink_usb_message to reduce indentation - this had the biggest effect in cleaning up this patch - use C99's ability to declare new/changed variables with less scope - add spaces around binary operators in new/changed code - revert other superfluous whitespace/comment style changes git-svn-id: svn://svn.berlios.de/openocd/trunk@1889 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-23 zwelch * : Change doxygen configuration to show code comments in documentation. git-svn-id: svn://svn.berlios.de/openocd/trunk@1887 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-22 kc8apf * : Author: Raúl Sánchez Siles - Fix calculation of flash_address for x16 devices used as x8 git-svn-id: svn://svn.berlios.de/openocd/trunk@1885 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-22 kc8apf * : Author: David Brownell Remove un-implemented and dubious "nand copy" command. Doing this efficiently would mean doing the copying on the target CPU, instead of back and forth through JTAG. If anyone ever needs this functionality, that's what they should implement. Also, update on-line "help" for "nand dump" to display its two optional flags; and for "nand write" to display a recently added flag. git-svn-id: svn://svn.berlios.de/openocd/trunk@1883 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-22 zwelch * : Submitted by David Brownell : Improve support for the DM355 EVM board, and eventually other boards based on DaVinci chips: - Provide generic "davinci.cfg" to hold utilities that can be reused by different chips in this family. Start with PINMUX, PSC, and PLL setup. - DM355 chip support updates: provide a dictionary with chip-specific symbols, load those utilities. - Create a new dm355evm board file, with a reset-init event handler which uses those utilities to set up PLLs and clocks, configure the pins, and improve the JTAG speed limit. Also a minor tweak: provide a virtual address for the work area, matching what the very latest kernels do. It's probably unwise to use OpenOCD while the MMU is active though. The DRAM isn't yet accessible, but NAND access is mostly ready. git-svn-id: svn://svn.berlios.de/openocd/trunk@1881 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-22 zwelch * : Submitted by David Brownell : Add a "NAND Commands" section to to the TEXI docs, covering the basic commands except for those previously discussed as being due for removal ("nand copy") or switching to use byte offsets not block numbers. This uses the "@deffn..." syntax for defining commands, as somewhat suggested by the TEXI documentation, and adds a new "Command Index". We might prefer to merge those indexes for the near term, but I think the "@deffn" approch is probably worth switching to. Updates a few other bits to clarify that "flash" doesn't just mean NOR. And to fix one niggling falsity: the "reset-init" event *is* used, and in fact it's quite important. git-svn-id: svn://svn.berlios.de/openocd/trunk@1879 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 oharboe * : fix warning. Use %p for pointers git-svn-id: svn://svn.berlios.de/openocd/trunk@1877 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 oharboe * : Dirk Behme Minor updates for OMAP3 scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@1875 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 zwelch * : David Brownell : This patch adds annotations to the key command_*() helper functions, fixng the bugs that turned up. Several of these bugs were from misuse of PRIi64; that's for 64-bit integers, NOT for "long long" or "u64" (which work best with %lld). git-svn-id: svn://svn.berlios.de/openocd/trunk@1873 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Thomas Kindler - Increase DTC status retry count to avoid problems with STM Primer git-svn-id: svn://svn.berlios.de/openocd/trunk@1871 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Holger Schurig -Prevent freezing of target when doing a 'shutdown'. git-svn-id: svn://svn.berlios.de/openocd/trunk@1869 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Michael Bruck -jtag.c, interface_jtag_add_dr_out(): - use pointer 'field' instead of scan->fields[field_count] - restructure the main loop to clearly separate the two cases: TAP is not bypassed / TAP is bypassed (this is to keep the function similar to interface_jtag_add_dr_scan()) - fix bug where only the first output field has its tap field set - add asserts to verify that target_tap points to the one not bypassed TAP git-svn-id: svn://svn.berlios.de/openocd/trunk@1867 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Michael Bruck -jtag.c, interface_jtag_add_ir_scan(): - use pointer 'field' instead of scan->fields[nth_tap] - add assertion to ensure that input data has correct size for TAP's IR git-svn-id: svn://svn.berlios.de/openocd/trunk@1865 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Michael Bruck - jtag.c: remove unused variable 'nth_tap' from DR scan functions git-svn-id: svn://svn.berlios.de/openocd/trunk@1863 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Michael Bruck - jtag.c: consolidate all memory allocations in scan functions in one block, add out_fields pointer to set stage for further changes git-svn-id: svn://svn.berlios.de/openocd/trunk@1861 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-21 kc8apf * : Author: Michael Bruck - add doxygen comments to scan commands in jtag.c - move jtag_add_dr_scan next to interface_jtag_add_dr_scan to keep these function pairs together git-svn-id: svn://svn.berlios.de/openocd/trunk@1859 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 zwelch * : Add initial OpenOCD server documentation (Duane Ellis and myself). git-svn-id: svn://svn.berlios.de/openocd/trunk@1857 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 zwelch * : Move TCL overview from source tree to doxygen manual. git-svn-id: svn://svn.berlios.de/openocd/trunk@1855 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 zwelch * : Move non-arm target overview from source tree to doxygen manual. git-svn-id: svn://svn.berlios.de/openocd/trunk@1853 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 oharboe * : Spencer Oliver use 7 tms out of reset git-svn-id: svn://svn.berlios.de/openocd/trunk@1851 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 kc8apf * : Author: Michael Bruck - simplify code in interface_jtag_add_plain_dr_scan() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1849 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 kc8apf * : Author: Michael Bruck - simplify code in interface_jtag_add_dr_out() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1847 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 kc8apf * : Author: Michael Bruck - simplify code in interface_jtag_add_dr_scan() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1845 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 kc8apf * : Author: Michael Bruck - move scan_size in interface_jtag_add_ir_scan() into the scope of the inner loop and change it to unsigned git-svn-id: svn://svn.berlios.de/openocd/trunk@1843 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-20 kc8apf * : Author: Michael Bruck - rename local variable x to num_taps in interface_jtag_add_ir_scan git-svn-id: svn://svn.berlios.de/openocd/trunk@1841 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-19 zwelch * : Wookey : add user documentation for echo command. git-svn-id: svn://svn.berlios.de/openocd/trunk@1839 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-19 oharboe * : fix warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1837 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-19 oharboe * : David Brownell NAND: update ids, "nand list" bugfix git-svn-id: svn://svn.berlios.de/openocd/trunk@1835 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 oharboe * : use tap_get_tms_path_len() instead of fix # of 7. Not tested if this builds, but at least we're looking at a build error instead of a runtime error. git-svn-id: svn://svn.berlios.de/openocd/trunk@1833 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 oharboe * : use tap_get_tms_path_len() instead of fix # of 7. git-svn-id: svn://svn.berlios.de/openocd/trunk@1831 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 oharboe * : updated w/jtag_add_end_state() note. git-svn-id: svn://svn.berlios.de/openocd/trunk@1829 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Enable non-7-cycle state table for FT2232 and JLink git-svn-id: svn://svn.berlios.de/openocd/trunk@1827 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : FT2232 support for non-7-cycle state moves by Dick Hollenbeck git-svn-id: svn://svn.berlios.de/openocd/trunk@1825 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Change last_comand_pointer to last_command_pointer by Michael Bruck git-svn-id: svn://svn.berlios.de/openocd/trunk@1823 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Add jtag_queue_command() by Michael Bruck [7/8] git-svn-id: svn://svn.berlios.de/openocd/trunk@1821 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Add jtag_queue_command() by Michael Bruck [5/8] git-svn-id: svn://svn.berlios.de/openocd/trunk@1819 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Add jtag_queue_command() by Michael Bruck [3/8] git-svn-id: svn://svn.berlios.de/openocd/trunk@1817 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Add jtag_queue_command() by Michael Bruck git-svn-id: svn://svn.berlios.de/openocd/trunk@1815 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : PATCHES updates from David Brownell git-svn-id: svn://svn.berlios.de/openocd/trunk@1813 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 oharboe * : Remove unecessary(and poptentially harmful?) "" around arguments passed in to "eval" in command.c git-svn-id: svn://svn.berlios.de/openocd/trunk@1811 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 oharboe * : Dean Glazeski fixed bug in checking of clocked back data in arm7_9_execute_fast_sys_speed. Not reported. There is a chance that this bug hid a deeper problem since it only partially disabled the check(mask & value were equal). git-svn-id: svn://svn.berlios.de/openocd/trunk@1809 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 oharboe * : Michael Bruck ARM11 cleanup stale dependencies with generic arm code; added comments and whitespace fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1807 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : Fix logically inverted comment git-svn-id: svn://svn.berlios.de/openocd/trunk@1805 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-18 kc8apf * : ETM/ETB documentation from David Brownell git-svn-id: svn://svn.berlios.de/openocd/trunk@1803 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-17 oharboe * : fix array2mem/mem2array when used as a "method" on a target. git-svn-id: svn://svn.berlios.de/openocd/trunk@1801 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-16 oharboe * : fix naming of at91sam7 driver git-svn-id: svn://svn.berlios.de/openocd/trunk@1799 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-15 zwelch * : Initialize a more variables in jim.c to allow gcc-4.4 to build. Fix provided by Benjamin Schmidt . git-svn-id: svn://svn.berlios.de/openocd/trunk@1797 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-15 oharboe * : fix -fno-common/Mac build problems. git-svn-id: svn://svn.berlios.de/openocd/trunk@1795 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-15 oharboe * : revert to 1775. 1790 causes SEGFAULT w/Cygwin. git-svn-id: svn://svn.berlios.de/openocd/trunk@1793 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-15 zwelch * : Add current draft of The List of Pending and Open Tasks. git-svn-id: svn://svn.berlios.de/openocd/trunk@1791 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-14 zwelch * : Several minor fixes for the new doxygen manual. git-svn-id: svn://svn.berlios.de/openocd/trunk@1789 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-14 oharboe * : use TAP_INVALID enum instead of -1 git-svn-id: svn://svn.berlios.de/openocd/trunk@1787 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-14 oharboe * : dump_image now works for addresses not divisible by 4 git-svn-id: svn://svn.berlios.de/openocd/trunk@1785 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-14 oharboe * : selftest wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1783 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-13 zwelch * : Update configure script test for net/if.h to work on MacOS. git-svn-id: svn://svn.berlios.de/openocd/trunk@1781 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-13 zwelch * : Fix bootstrap script to support MacOS glibtoolize oddity. git-svn-id: svn://svn.berlios.de/openocd/trunk@1779 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-13 zwelch * : Add JTAG Primer to doxygen manual, contributed by Strontium. git-svn-id: svn://svn.berlios.de/openocd/trunk@1776 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-13 oharboe * : added verify_jtag command git-svn-id: svn://svn.berlios.de/openocd/trunk@1774 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-13 oharboe * : shuffled comments about for jtag_add_dr_out() fn. git-svn-id: svn://svn.berlios.de/openocd/trunk@1772 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 oharboe * : irscan now also works correctly in addition to not crashing :-) git-svn-id: svn://svn.berlios.de/openocd/trunk@1770 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 oharboe * : 4-bit ECC support for Marvell Kirkwood SOC git-svn-id: svn://svn.berlios.de/openocd/trunk@1768 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 oharboe * : move eCos type definition to types.h where it belongs. git-svn-id: svn://svn.berlios.de/openocd/trunk@1766 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 ntfreak * : - fix build issue when HAVE_ELF_H is not defined git-svn-id: svn://svn.berlios.de/openocd/trunk@1764 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 zwelch * : Include project doxygen configuration with distribution tarballs. git-svn-id: svn://svn.berlios.de/openocd/trunk@1762 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 zwelch * : Make replacements.h private by including it from config.h autoheader. git-svn-id: svn://svn.berlios.de/openocd/trunk@1760 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 zwelch * : Audit and reduce #include directives in jim source files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1758 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 zwelch * : Remove config.h from types.h; all .c files are required to include it. git-svn-id: svn://svn.berlios.de/openocd/trunk@1756 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 zwelch * : Update rlink_make_speed_table.pl script to add config.h to its output. git-svn-id: svn://svn.berlios.de/openocd/trunk@1754 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 oharboe * : added jtag_alloc_in_value32 - not used in this commit. git-svn-id: svn://svn.berlios.de/openocd/trunk@1752 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-12 zwelch * : Include assert.h in system.h to promote tree-wide use of assertions. git-svn-id: svn://svn.berlios.de/openocd/trunk@1750 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : now builds on 64 and 32 bit systems git-svn-id: svn://svn.berlios.de/openocd/trunk@1748 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Update jim helper files to use proper configure script support: - configure.in: Add AC_TYPE_LONG_LONG_INT to detect 'long long int' support. - configure.in: Add AC_C_CONST to provide equivalent support as jim.h. - jim*.c: include config.h when HAVE_CONFIG_H is defined. - jim*.{h,c}: use HAVE_LONG_LONG_INT definition from config.h. - jim.h: Remove hard-coded const and HAVE_LONG_LONG definitions. - jim.h: -DJIM_NO_CONST has been obsoleted; -Dconst is equivalent. git-svn-id: svn://svn.berlios.de/openocd/trunk@1744 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : USB performance regression fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1742 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_dr_scan() from the synchronous version - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1740 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_dr_scan_check() - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1738 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : change jtag_add_callback API to be able to support check_value/mask git-svn-id: svn://svn.berlios.de/openocd/trunk@1735 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_callback() - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1733 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_callback() - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1731 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_callback() - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1729 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_callback() - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1727 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : switch to jtag_add_callback() - USB performance fix git-svn-id: svn://svn.berlios.de/openocd/trunk@1725 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : leave eCos include file issues alone for now. git-svn-id: svn://svn.berlios.de/openocd/trunk@1723 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 oharboe * : used by upcoming commits git-svn-id: svn://svn.berlios.de/openocd/trunk@1721 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Update Doxyfile configuration for doxygen 1.5.8: - Enable doxygen's C language optimizations. - Use dot command (from graphviz package) to generate visual graphs. git-svn-id: svn://svn.berlios.de/openocd/trunk@1719 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Remove redundant config.h from replacements.h, obtained from types.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@1717 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Audit and eliminate redundant #include directives in other target files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1715 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Audit and eliminate redundant #include directives in core target files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1713 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Audit and eliminate redundant #include directives in src/flash headers. git-svn-id: svn://svn.berlios.de/openocd/trunk@1711 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Audit and eliminate redundant #include directives from src/server. git-svn-id: svn://svn.berlios.de/openocd/trunk@1709 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Audit and eliminate redundant #include directives from src/jtag. git-svn-id: svn://svn.berlios.de/openocd/trunk@1707 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Simplify #include directives in ioutil.c, use new header checks. git-svn-id: svn://svn.berlios.de/openocd/trunk@1705 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Add --enable-malloc-logging configure option and update log.c to match. git-svn-id: svn://svn.berlios.de/openocd/trunk@1703 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Finish portability support for AC_HEADER_STDBOOL configure macro. git-svn-id: svn://svn.berlios.de/openocd/trunk@1701 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Add configure check for sys/types.h; include in our types.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@1699 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-11 zwelch * : Use AC_HEADER_STDBOOL macro instead of AC_CHEACK_HEADERS(stdbool.h). git-svn-id: svn://svn.berlios.de/openocd/trunk@1697 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-10 zwelch * : Extend autotools build to create shared library libopenocd with libtool: - Add libtoolize step too bootstrap script; creates ltmain.sh script. - Add AC_PROG_LIBTOOL to configure.in to add libtool support to build. - Change Makefile.am library rules from static (_a) to libtool (_la). - Install libopenocd.{la,so,a} in $(libdir); update openocd link rules. - Extend MAINTAINERCLEANFILES in top-level Makefile.am to remove ltmain.sh. git-svn-id: svn://svn.berlios.de/openocd/trunk@1695 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-10 zwelch * : Extend configure script to check for environ declaration in stdlib.h. Patch contributed by Martin Thomas . git-svn-id: svn://svn.berlios.de/openocd/trunk@1693 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-10 zwelch * : Revive tclapi.c from r1650: * Remove superfluous #include directives. * Fix warnings and API usage to cure its bit rot. * Build into libhelper library (for now). Add tclapi.h to export tclapi_register_commands(). Register tclapi commands in openocd.c:setup_command_handler(). git-svn-id: svn://svn.berlios.de/openocd/trunk@1691 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-10 oharboe * : David Brownell whitespace fixes. Testing out on one file first... git-svn-id: svn://svn.berlios.de/openocd/trunk@1689 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-10 oharboe * : Michael Bruck use more const git-svn-id: svn://svn.berlios.de/openocd/trunk@1687 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-09 oharboe * : Michael Bruck ARM11 C99 updates git-svn-id: svn://svn.berlios.de/openocd/trunk@1685 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : plugged bug w/irlen > 32 introduce in 1672 git-svn-id: svn://svn.berlios.de/openocd/trunk@1683 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : David Brownell DaVinci dm6446 git-svn-id: svn://svn.berlios.de/openocd/trunk@1680 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : Michael Fischer fix compile problems on Mac git-svn-id: svn://svn.berlios.de/openocd/trunk@1678 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : stm32 profiling wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1676 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : add flush_count jtag queue profiling feature git-svn-id: svn://svn.berlios.de/openocd/trunk@1674 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : in_handler in_check_mask and in_check_value now removed from field. Last big patch in the series of JTAG API cleanup. git-svn-id: svn://svn.berlios.de/openocd/trunk@1672 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : use assert instead of adding code that always runs git-svn-id: svn://svn.berlios.de/openocd/trunk@1670 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : retire jtag_set_check_value git-svn-id: svn://svn.berlios.de/openocd/trunk@1668 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : retire jtag_set_check_value git-svn-id: svn://svn.berlios.de/openocd/trunk@1666 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 oharboe * : first jtag_check_value_mask usage. tested by using "arm7_9 fast_memory_access enable" & "mdw 0 0x10" git-svn-id: svn://svn.berlios.de/openocd/trunk@1664 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 zwelch * : Fix typo from hurrying the last commit. Nothing to see here. git-svn-id: svn://svn.berlios.de/openocd/trunk@1662 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 zwelch * : Re-order and extend header file tests in configure script. git-svn-id: svn://svn.berlios.de/openocd/trunk@1660 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-08 zwelch * : Fix warnings in ioutil.c; improves loadFile inteface. git-svn-id: svn://svn.berlios.de/openocd/trunk@1658 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : ouch - typo in last commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1656 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : in_handler removal typo fixed git-svn-id: svn://svn.berlios.de/openocd/trunk@1654 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : refactor to be able to remove more in_handler stuff git-svn-id: svn://svn.berlios.de/openocd/trunk@1652 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : fix c99 compile errors git-svn-id: svn://svn.berlios.de/openocd/trunk@1650 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : remove usage of in_handler git-svn-id: svn://svn.berlios.de/openocd/trunk@1648 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : remove in_handler usage git-svn-id: svn://svn.berlios.de/openocd/trunk@1646 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : remove in_handler usage git-svn-id: svn://svn.berlios.de/openocd/trunk@1644 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : remove in_handler usage git-svn-id: svn://svn.berlios.de/openocd/trunk@1642 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : remove in_handler usage git-svn-id: svn://svn.berlios.de/openocd/trunk@1640 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : jtag API error handling refactoring. git-svn-id: svn://svn.berlios.de/openocd/trunk@1638 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : remove in_handler usage git-svn-id: svn://svn.berlios.de/openocd/trunk@1636 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : fix line endings git-svn-id: svn://svn.berlios.de/openocd/trunk@1634 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : Deleted at9sam7_old driver. Nobody has complained about the new one yet. git-svn-id: svn://svn.berlios.de/openocd/trunk@1632 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 oharboe * : another example of removing in_handler usage git-svn-id: svn://svn.berlios.de/openocd/trunk@1630 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 zwelch * : Fix most pointer cast alignment warnings in arm11.c; fix u16 memory reads.. git-svn-id: svn://svn.berlios.de/openocd/trunk@1628 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-07 zwelch * : Fix stm32x and pic32mx flash pointer cast alignment warnings, simplify their last word handling. git-svn-id: svn://svn.berlios.de/openocd/trunk@1626 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 zwelch * : Fix pointer cast alignment warnings in target/image.c. git-svn-id: svn://svn.berlios.de/openocd/trunk@1624 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 zwelch * : Fix pointer cast alignment issues in svf.c git-svn-id: svn://svn.berlios.de/openocd/trunk@1622 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 zwelch * : Fix pointer cast alignment warnings in jim.c. git-svn-id: svn://svn.berlios.de/openocd/trunk@1620 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 oharboe * : Dick Hollenbeck comments & 7 clock TMS reset for good measure git-svn-id: svn://svn.berlios.de/openocd/trunk@1618 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 mlu * : Small changes that might improve stability. Implemented new jtag sequences tap_get_tms_path and tap_get_tms_path_len git-svn-id: svn://svn.berlios.de/openocd/trunk@1616 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 oharboe * : Dick Hollenbeck simplifies XSTATE handling, and protects against illegal state transitions that might be in an SVF file. git-svn-id: svn://svn.berlios.de/openocd/trunk@1614 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 zwelch * : Fix enviorn configure test failure message (thanks to Anders Montonen). git-svn-id: svn://svn.berlios.de/openocd/trunk@1612 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 zwelch * : Add autoconf check to determine where environ should be declared. git-svn-id: svn://svn.berlios.de/openocd/trunk@1610 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-06 oharboe * : retire out_mask - not used anywhere git-svn-id: svn://svn.berlios.de/openocd/trunk@1608 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-05 oharboe * : made warning about keep_alive() not being invoked more helpful git-svn-id: svn://svn.berlios.de/openocd/trunk@1606 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-05 oharboe * : Gabor Juhos juhosg at openwrt.org MIPS: fix a shift value in the MIPS32_R_INST macro git-svn-id: svn://svn.berlios.de/openocd/trunk@1604 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-04 oharboe * : Dirk Behme Add minimalist Cortex A8 file git-svn-id: svn://svn.berlios.de/openocd/trunk@1602 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-04 oharboe * : Mariano Alvira fixes warning as error about a signed vs. unsigned comparison by casting the local unsigned variable as (long long). git-svn-id: svn://svn.berlios.de/openocd/trunk@1600 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-03 oharboe * : fix embedded builds git-svn-id: svn://svn.berlios.de/openocd/trunk@1598 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-03 zwelch * : Fix compilation when HAVE_UNISTD_H is not defined. git-svn-id: svn://svn.berlios.de/openocd/trunk@1596 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-03 oharboe * : Piotr Esden-Tempski Mac OS X compile fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1594 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-02 zwelch * : Add configure check for usb.h; required by a USB drivers. git-svn-id: svn://svn.berlios.de/openocd/trunk@1592 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-02 oharboe * : Dick Hollenbeck moved stuff into openocd.c - should never have been in main.c in the first place. DLL will now build. git-svn-id: svn://svn.berlios.de/openocd/trunk@1590 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-01 zwelch * : Remove superflous spaces from new JTAG table to fix formatting. git-svn-id: svn://svn.berlios.de/openocd/trunk@1588 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-05-01 zwelch * : Dick Hollenbeck : move OPENOCD_VERSION to use config.h git-svn-id: svn://svn.berlios.de/openocd/trunk@1586 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-30 zwelch * : Uwe Hermann : Make ICEbear look like other targets git-svn-id: svn://svn.berlios.de/openocd/trunk@1584 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-30 oharboe * : list board's as well as target config files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1581 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-30 zwelch * : Add static keywords to core target source file data and functions. git-svn-id: svn://svn.berlios.de/openocd/trunk@1579 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-30 zwelch * : Fix signed/unsigned comparison. git-svn-id: svn://svn.berlios.de/openocd/trunk@1577 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-30 oharboe * : flash fillX now has a verify stage git-svn-id: svn://svn.berlios.de/openocd/trunk@1575 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-30 zwelch * : Michael Bruck : sys/select.h must preceed windows.h. git-svn-id: svn://svn.berlios.de/openocd/trunk@1573 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 mlu * : Clear FLASH_SR error flags after flash errors to avoid reset befor further flash operations. git-svn-id: svn://svn.berlios.de/openocd/trunk@1571 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 mlu * : More error logging for DAP errors git-svn-id: svn://svn.berlios.de/openocd/trunk@1569 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 oharboe * : comments and debug code git-svn-id: svn://svn.berlios.de/openocd/trunk@1567 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 zwelch * : Sten : add support for ICEbear FDTI-based interface. git-svn-id: svn://svn.berlios.de/openocd/trunk@1565 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 zwelch * : Remove vestigial last_tms variable from jlink driver. git-svn-id: svn://svn.berlios.de/openocd/trunk@1563 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 zwelch * : Fix jlink for Debian/Ubuntu (by Ben Dooks ). git-svn-id: svn://svn.berlios.de/openocd/trunk@1561 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-29 zwelch * : Add missing header files to fix C99 compatibility. git-svn-id: svn://svn.berlios.de/openocd/trunk@1559 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-28 oharboe * : Dick Hollenbeck and Jeff Williams tap_get_tms_path_len() git-svn-id: svn://svn.berlios.de/openocd/trunk@1557 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-28 ntfreak * : - fix win32 build git-svn-id: svn://svn.berlios.de/openocd/trunk@1555 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-28 oharboe * : Zach Welch fix gw16012 with --enable-parport_ppdev git-svn-id: svn://svn.berlios.de/openocd/trunk@1553 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-28 oharboe * : Michael Bruck macros for error handling git-svn-id: svn://svn.berlios.de/openocd/trunk@1551 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-28 oharboe * : eol-style native git-svn-id: svn://svn.berlios.de/openocd/trunk@1549 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 mlu * : Added dap baseaddr and dap apid commands git-svn-id: svn://svn.berlios.de/openocd/trunk@1547 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 oharboe * : SimonQian patch for error compiling vsllink if --enable-verbose-jtag-io is set git-svn-id: svn://svn.berlios.de/openocd/trunk@1545 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 oharboe * : more error handling git-svn-id: svn://svn.berlios.de/openocd/trunk@1543 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 oharboe * : SimonQian AVR wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1540 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 mlu * : Deleted depreciated files ( new versions are arm_adi_v5.c/h ) git-svn-id: svn://svn.berlios.de/openocd/trunk@1538 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 mlu * : Changed armv7m and cortexm3 to use nev arm_adi_v5 instead of cortex_swjdp. Added support for accessport ROM table identification, dap command. git-svn-id: svn://svn.berlios.de/openocd/trunk@1536 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 oharboe * : Philippe Vachon 64 bit host fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1534 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-27 oharboe * : Zach Welch wrap _GNU_SOURCE defines git-svn-id: svn://svn.berlios.de/openocd/trunk@1532 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-26 oharboe * : R.Doss AT91SAM9260 git-svn-id: svn://svn.berlios.de/openocd/trunk@1530 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-25 mlu * : Corrected statement order git-svn-id: svn://svn.berlios.de/openocd/trunk@1528 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-25 mlu * : Break ft2232_execute_quie into smaller functions, follows restructure of jlink.c git-svn-id: svn://svn.berlios.de/openocd/trunk@1526 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-24 oharboe * : Zach Welch add TAP_SCAN_BYTES macro (1 of 2) git-svn-id: svn://svn.berlios.de/openocd/trunk@1524 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-24 oharboe * : Uwe Hermann Update udev file git-svn-id: svn://svn.berlios.de/openocd/trunk@1522 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-24 oharboe * : Nicolas Pitre update SheevaPlug interface cfg file git-svn-id: svn://svn.berlios.de/openocd/trunk@1520 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-24 duane * : Remove warning git-svn-id: svn://svn.berlios.de/openocd/trunk@1518 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-23 oharboe * : stm32.cfg can expect one of 4 id's. git-svn-id: svn://svn.berlios.de/openocd/trunk@1516 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-23 oharboe * : Laurentiu Cocanu - fix typo git-svn-id: svn://svn.berlios.de/openocd/trunk@1514 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 oharboe * : Michael Bruck ARM11 various updates + fix formatting. git-svn-id: svn://svn.berlios.de/openocd/trunk@1512 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 oharboe * : Michael Bruck spotted a typo in help messages git-svn-id: svn://svn.berlios.de/openocd/trunk@1510 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 oharboe * : Zach Welch set speed in init git-svn-id: svn://svn.berlios.de/openocd/trunk@1508 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 oharboe * : Zach Welch reorder enum tap_state git-svn-id: svn://svn.berlios.de/openocd/trunk@1506 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 kc8apf * : Shrink JLink buffer sizes to specified 2KB courtesy of Jeff Williams and Zach Welch git-svn-id: svn://svn.berlios.de/openocd/trunk@1504 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 kc8apf * : Fix use of wrong format conversion for size_t (%zu instead of %u) git-svn-id: svn://svn.berlios.de/openocd/trunk@1502 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-22 kc8apf * : refactor jlink_execute_queue courtesy of Zach Welch git-svn-id: svn://svn.berlios.de/openocd/trunk@1500 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch refactor git-svn-id: svn://svn.berlios.de/openocd/trunk@1498 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch add --enable-verbose* options git-svn-id: svn://svn.berlios.de/openocd/trunk@1496 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Nico Coesel MIPS32 speedup patches git-svn-id: svn://svn.berlios.de/openocd/trunk@1494 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch factor jlink usb_bulk_*_ex functions git-svn-id: svn://svn.berlios.de/openocd/trunk@1492 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch improve Linux ftd2xx configure-time support git-svn-id: svn://svn.berlios.de/openocd/trunk@1490 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 ntfreak * : - remove environ warning under win32 build git-svn-id: svn://svn.berlios.de/openocd/trunk@1488 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch fix unused return value warnings (2 of 4) git-svn-id: svn://svn.berlios.de/openocd/trunk@1486 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch fix str9x type-punned pointer git-svn-id: svn://svn.berlios.de/openocd/trunk@1484 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Zach Welch fix unused return value warnings (3 of 4) git-svn-id: svn://svn.berlios.de/openocd/trunk@1482 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-21 oharboe * : Michael Schwingen add non-CFI SST flashs git-svn-id: svn://svn.berlios.de/openocd/trunk@1480 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-20 ntfreak * : - fix at91rm9200 warning. Thanks Zach Welch - add missing svn props from previous commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1478 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-20 oharboe * : Zach Welch fix ft2232/presto warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1476 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-19 oharboe * : Zach Welch use ARM4_5_MODE_ANY instead of -1 git-svn-id: svn://svn.berlios.de/openocd/trunk@1474 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-19 oharboe * : Zach Welch fix -Werror warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1472 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-19 mifi * : Added functionality to support jtag_khz for the jlink. git-svn-id: svn://svn.berlios.de/openocd/trunk@1470 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-19 oharboe * : Zach Welch add missing initializers in nand.c git-svn-id: svn://svn.berlios.de/openocd/trunk@1468 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-19 oharboe * : Zach Welch fix signed/unsigned comparisons git-svn-id: svn://svn.berlios.de/openocd/trunk@1466 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-19 oharboe * : Zach Welch use tap_state_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1464 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-18 mifi * : The following patches was applied: - openocd-flash-static-keyword-v3.patch - openocd-lpc2000-fix-erase-obo.patch - openocd-jlink-fix-sign-ptr-warn.patch - openocd-wextra-etm.patch - openocd-wextra-jtag.patch - openocd-add-new-tap-symbols-v6.patch Many thanks to Zach Welch git-svn-id: svn://svn.berlios.de/openocd/trunk@1462 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-15 oharboe * : Piotr Esden-Tempski Corrected olimex_stm32_h103 board config git-svn-id: svn://svn.berlios.de/openocd/trunk@1460 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-15 oharboe * : Freddie Chopin LPC2378 config file git-svn-id: svn://svn.berlios.de/openocd/trunk@1458 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-14 mlu * : Improved (for humans) error reporting for flash programming errors. git-svn-id: svn://svn.berlios.de/openocd/trunk@1456 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-03 ntfreak * : - add openocd coding style to texi git-svn-id: svn://svn.berlios.de/openocd/trunk@1454 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-03 ntfreak * : - add svn props from previous commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1452 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-03 oharboe * : Piotr Esden-Tempski added a board file for the Olimex STM32-H103 eval board. git-svn-id: svn://svn.berlios.de/openocd/trunk@1450 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-03 oharboe * : Nicolas Pitre nico at cam.org list the new flag in the "nand write" help line. git-svn-id: svn://svn.berlios.de/openocd/trunk@1448 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-02 oharboe * : Nicolas Pitre nico at cam.org The ECC data is automatically computed and written to the OOB area when the oob_softecc option is passed to the "nand write" command. git-svn-id: svn://svn.berlios.de/openocd/trunk@1446 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-02 oharboe * : Nicolas Pitre nico at cam.org software ECC computation for NAND flash git-svn-id: svn://svn.berlios.de/openocd/trunk@1444 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-02 oharboe * : Nicolas Pitre nico at cam.org Allocating a 6-byte memory location with malloc() is rather silly when this can be allocated on the stack. git-svn-id: svn://svn.berlios.de/openocd/trunk@1442 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-02 oharboe * : Uwe Hermann URL references git-svn-id: svn://svn.berlios.de/openocd/trunk@1439 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-04-02 oharboe * : fix keyword expansion git-svn-id: svn://svn.berlios.de/openocd/trunk@1437 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-30 ntfreak * : - add missing usbprog config. patch from Uwe Hermann https://lists.berlios.de/pipermail/openocd-development/2009-March/005145.htmlgit-svn-id: svn://svn.berlios.de/openocd/trunk@1435 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-24 ntfreak * : - fix typo's in last commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1433 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-24 ntfreak * : - update str9 and stm32 comstick configs - add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1431 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-24 oharboe * : Uwe Hermann Add new board configs: Olimex LPC-H2148, Keil MCB2140. Both boards use an LPC2148, no external flash or RAM. git-svn-id: svn://svn.berlios.de/openocd/trunk@1429 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-23 oharboe * : Uwe Hermann eal _CPUTAPID entry for the LPC2148. I don't know if they're the same for all LPC214x, this number is from an Olimex LPC-H2148. The chip on that board is LPC2148FBD64. Also fix a few cosmetic issues and comments in the file and add more docs and pointers to the datasheet. git-svn-id: svn://svn.berlios.de/openocd/trunk@1427 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-23 oharboe * : Uwe Hermann typo git-svn-id: svn://svn.berlios.de/openocd/trunk@1425 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-20 ntfreak * : - add missing svn props from previous commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1423 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-20 oharboe * : Alan Carvalho de Assis adds support to i.MX35 processor. git-svn-id: svn://svn.berlios.de/openocd/trunk@1421 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-19 ntfreak * : - fix incorrect str9comstick cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@1419 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-18 oharboe * : Hiroshi Ito typos git-svn-id: svn://svn.berlios.de/openocd/trunk@1417 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-17 ntfreak * : - remove build warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1415 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-16 ntfreak * : - fix issue with cortex_m3 reset run. Thanks Perry Hung - https://lists.berlios.de/pipermail/openocd-development/2009-March/005028.htmlgit-svn-id: svn://svn.berlios.de/openocd/trunk@1413 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-12 oharboe * : Uwe Hermann typos git-svn-id: svn://svn.berlios.de/openocd/trunk@1411 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-11 duane * : Added eol-style props git-svn-id: svn://svn.berlios.de/openocd/trunk@1409 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-11 duane * : Added -endstate to irscan and drscan to support beagleboard (omap3530) git-svn-id: svn://svn.berlios.de/openocd/trunk@1407 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-08 ntfreak * : - add svn props from previous commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1405 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-08 duane * : Added VID/PID pair to olimex-jtag-tiny-a the non-a version already has the vid pid git-svn-id: svn://svn.berlios.de/openocd/trunk@1403 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-07 duane * : Accept/create both A and Non-A ft2232 based descriptions git-svn-id: svn://svn.berlios.de/openocd/trunk@1401 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-05 oharboe * : Audrius Urmanavičius cleanup flash fill git-svn-id: svn://svn.berlios.de/openocd/trunk@1399 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-04 oharboe * : Nicolas Pitre making reset+halt on the SheevaPlug 100% reliable (needs patch in target.c to fix "halt 0"). git-svn-id: svn://svn.berlios.de/openocd/trunk@1397 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-02 ntfreak * : - add missing svn props from previous commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1395 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-01 oharboe * : Kees Jongenburger rename description field of the jtag-tiny.cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@1393 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-01 oharboe * : Nicolas Pitre nico at cam.org SheevaPlug board configuration git-svn-id: svn://svn.berlios.de/openocd/trunk@1391 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-01 oharboe * : Nicolas Pitre nico at cam.org add Feroceon target config file git-svn-id: svn://svn.berlios.de/openocd/trunk@1389 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-01 oharboe * : Nicolas Pitre nico at cam.org support for NAND controllers without explicit busy signal git-svn-id: svn://svn.berlios.de/openocd/trunk@1387 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-03-01 oharboe * : Nicolas Pitre nico at cam.org The code unconditionally writes into the oob area all the time. git-svn-id: svn://svn.berlios.de/openocd/trunk@1385 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-26 ntfreak * : - stm32x flash driver - add support for stm32105/107 (connectivity line) git-svn-id: svn://svn.berlios.de/openocd/trunk@1383 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-23 oharboe * : tinkered a bit with performance for Cortex flash programming. Mainly make it easier to profile as a start. git-svn-id: svn://svn.berlios.de/openocd/trunk@1380 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-22 oharboe * : John Woods fix newtap gaffe + rename git-svn-id: svn://svn.berlios.de/openocd/trunk@1378 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-18 oharboe * : Holger Schurig incorporate some comments from Rick git-svn-id: svn://svn.berlios.de/openocd/trunk@1376 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-17 oharboe * : zy1000 1.49 snapshot git-svn-id: svn://svn.berlios.de/openocd/trunk@1374 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-13 ntfreak * : - guess-rev.sh now works as expected when build_dir is not the same as src_dir git-svn-id: svn://svn.berlios.de/openocd/trunk@1372 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-10 kc8apf * : Use C89/C99/C++ compliant boolean types git-svn-id: svn://svn.berlios.de/openocd/trunk@1370 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-09 ntfreak * : - fix native win32 build issues git-svn-id: svn://svn.berlios.de/openocd/trunk@1368 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-03 kc8apf * : - Cable driver helper API courtesy of Dick Hollenbeck - Formatting changes from uncrustify git-svn-id: svn://svn.berlios.de/openocd/trunk@1366 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-02-03 kc8apf * : Add uncrustify config file and helper script git-svn-id: svn://svn.berlios.de/openocd/trunk@1364 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-26 oharboe * : update symbols to match source file git-svn-id: svn://svn.berlios.de/openocd/trunk@1362 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-23 kc8apf * : xvsf player fixes by Dick Hollenbeck git-svn-id: svn://svn.berlios.de/openocd/trunk@1360 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-23 kc8apf * : Search path fixes for MinGW builds. Courtesy of Dimitar Dimitrov git-svn-id: svn://svn.berlios.de/openocd/trunk@1358 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-23 kc8apf * : vsllink support for stable clocks by Simon Qian git-svn-id: svn://svn.berlios.de/openocd/trunk@1356 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-20 kc8apf * : Fix for incorrect filename in include for at91sam9260 in unknown-board-atmel-at91sam9260.cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@1353 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-20 ntfreak * : - add --enable-release to docs git-svn-id: svn://svn.berlios.de/openocd/trunk@1351 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-20 kc8apf * : Add axm0432 interface config courtesy of Alan Carvalho de Assis git-svn-id: svn://svn.berlios.de/openocd/trunk@1349 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-20 kc8apf * : Fix 'make maintainer-clean' courtesy of Zach Welch git-svn-id: svn://svn.berlios.de/openocd/trunk@1345 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-20 kc8apf * : Fix support for ADuC702x flash. Courtesy of Michael Ashton git-svn-id: svn://svn.berlios.de/openocd/trunk@1343 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-19 ntfreak * : - remove unused includes, fixes build issues under FreeBSD git-svn-id: svn://svn.berlios.de/openocd/trunk@1341 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-19 kc8apf * : SVF player courtesy of Simon Qian git-svn-id: svn://svn.berlios.de/openocd/trunk@1339 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-17 kc8apf * : Fix guess-rev.sh where the builtin echo doesn't support -n git-svn-id: svn://svn.berlios.de/openocd/trunk@1337 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-16 ntfreak * : - make guess-rev.sh work with msys git-svn-id: svn://svn.berlios.de/openocd/trunk@1333 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-16 ntfreak * : - add missing bitq and rlink files to distribution git-svn-id: svn://svn.berlios.de/openocd/trunk@1331 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-15 ntfreak * : - add missing svn props from 1323 commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1324 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-15 oharboe * : Alan Carvalho de Assis imx31pdk.cfg reset init event git-svn-id: svn://svn.berlios.de/openocd/trunk@1322 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-14 oharboe * : wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1320 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-14 oharboe * : Alan Carvalho de Assis cfg file to initialize the iMX27ADS board. git-svn-id: svn://svn.berlios.de/openocd/trunk@1318 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-14 oharboe * : Alan Carvalho de Assis small fix to move us in the right direction. git-svn-id: svn://svn.berlios.de/openocd/trunk@1316 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-13 ntfreak * : - fix mips issues with newer versions of gdb - we simply add more dummy registers git-svn-id: svn://svn.berlios.de/openocd/trunk@1314 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-09 oharboe * : wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1312 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-09 oharboe * : allow issuing reset_config on the fly. Faster turnaround times in testing. git-svn-id: svn://svn.berlios.de/openocd/trunk@1310 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-09 oharboe * : Dick Hollenbeck adds jtag_add_clocks() and implements those in the bitbang and ft2232.c. nearly a full rewrite of the xsvf.c. improved some messaging only affected by _DEBUG_JTAG_IO_ git-svn-id: svn://svn.berlios.de/openocd/trunk@1308 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-08 ntfreak * : - a few more docs tweaks git-svn-id: svn://svn.berlios.de/openocd/trunk@1306 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-07 oharboe * : Dick Hollenbeck SVF to XSVF converter and the XSVF dumper take #2 git-svn-id: svn://svn.berlios.de/openocd/trunk@1304 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-05 ntfreak * : - add missing svn props from r1299 commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1302 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-05 oharboe * : John McCarthy formatting fix of debug output git-svn-id: svn://svn.berlios.de/openocd/trunk@1300 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-04 oharboe * : eol-style native git-svn-id: svn://svn.berlios.de/openocd/trunk@1298 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-02 oharboe * : John McCarthy pic32mx flash wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1296 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2009-01-01 ntfreak * : - add gdb pipe support to native win32 (--pipe option) git-svn-id: svn://svn.berlios.de/openocd/trunk@1294 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-28 ntfreak * : - fix missing/incorrect svn file props git-svn-id: svn://svn.berlios.de/openocd/trunk@1292 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : Added another test build configuration git-svn-id: svn://svn.berlios.de/openocd/trunk@1290 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : Missed the svn add on earlier commit, duh git-svn-id: svn://svn.berlios.de/openocd/trunk@1288 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : Added note to user manual for packagers of OpenOCD git-svn-id: svn://svn.berlios.de/openocd/trunk@1286 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : Some systems report linux as host, others linux-gnu... grrr git-svn-id: svn://svn.berlios.de/openocd/trunk@1284 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : From Lou.openocd012@fixit.nospammail.net git-svn-id: svn://svn.berlios.de/openocd/trunk@1282 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : Added dongle VSLLINK - from Simon Qian git-svn-id: svn://svn.berlios.de/openocd/trunk@1280 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : From Dirk Behme - Further docu fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1278 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-27 duane * : Renamed build.tests to build.test1 git-svn-id: svn://svn.berlios.de/openocd/trunk@1276 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-24 duane * : Typos found by miceal catudal git-svn-id: svn://svn.berlios.de/openocd/trunk@1274 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-23 oharboe * : httpd wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1272 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-22 oharboe * : httpd wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1269 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-22 oharboe * : Dirk Behme Add missing tap-enable and tap-disable events to documentation. git-svn-id: svn://svn.berlios.de/openocd/trunk@1267 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-22 oharboe * : bumped a LOG_INFO to LOG_DEBUG level to reduce excessive output for normal execution git-svn-id: svn://svn.berlios.de/openocd/trunk@1265 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-19 oharboe * : Dick Hollenbeck - This patch adds JTAG state tracking to dummy.c git-svn-id: svn://svn.berlios.de/openocd/trunk@1263 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-19 oharboe * : Dick Hollenbeck better comments git-svn-id: svn://svn.berlios.de/openocd/trunk@1261 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-19 oharboe * : Dick Hollenbeck convert macros to inline fn's. git-svn-id: svn://svn.berlios.de/openocd/trunk@1259 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-17 oharboe * : check syntax for init/version git-svn-id: svn://svn.berlios.de/openocd/trunk@1257 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-17 oharboe * : houskeeping git-svn-id: svn://svn.berlios.de/openocd/trunk@1255 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-16 oharboe * : work in progress to hook up libmicrohttpd + tcl integration git-svn-id: svn://svn.berlios.de/openocd/trunk@1251 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-16 oharboe * : Dirk Behme Fix some typos in documentation git-svn-id: svn://svn.berlios.de/openocd/trunk@1249 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-16 oharboe * : allow setting/reading gdb_port at any time git-svn-id: svn://svn.berlios.de/openocd/trunk@1247 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-15 ntfreak * : - add missing svn props from r1243 commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1245 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-15 oharboe * : sync up to tap_xxx rename + add with-ioutil for standalone openocd implemetnations git-svn-id: svn://svn.berlios.de/openocd/trunk@1243 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-15 oharboe * : fast_load profiling tool moved to target.c git-svn-id: svn://svn.berlios.de/openocd/trunk@1241 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-13 duane * : Updates and fixes from Kees Jongenburger git-svn-id: svn://svn.berlios.de/openocd/trunk@1239 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-13 kc8apf * : Add JTAG tap events for enable/disable git-svn-id: svn://svn.berlios.de/openocd/trunk@1237 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-13 kc8apf * : Change tap_state naming to be consistent with SVF documentation. Courtesy of Dick Hollenbeck git-svn-id: svn://svn.berlios.de/openocd/trunk@1232 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-12 kc8apf * : Allow -expected-id to be specified multiple times when creating a jtag tap git-svn-id: svn://svn.berlios.de/openocd/trunk@1229 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-11 ntfreak * : - added Axiom AXM-0432 to texi - updated missing jtag dongle url's in texi - reformat and remove whitespace from last commit git-svn-id: svn://svn.berlios.de/openocd/trunk@1227 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-11 ntfreak * : - typo with flash bank help command - typo with flash erase_sector in texi git-svn-id: svn://svn.berlios.de/openocd/trunk@1225 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-10 duane * : More fixes thanks to Kees Jongenburger git-svn-id: svn://svn.berlios.de/openocd/trunk@1223 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-10 duane * : Fix from Kees Jongenburger git-svn-id: svn://svn.berlios.de/openocd/trunk@1221 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-06 duane * : Test of commit email from duane git-svn-id: svn://svn.berlios.de/openocd/trunk@1219 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-05 oharboe * : Karl Beldan - The ibcr count for hw instruction breakpoint registers was decremented with soft breakpoints and breakpoint length error. git-svn-id: svn://svn.berlios.de/openocd/trunk@1215 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-04 oharboe * : zy1000 1.48 snapshot git-svn-id: svn://svn.berlios.de/openocd/trunk@1213 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-04 oharboe * : delete obsolete code git-svn-id: svn://svn.berlios.de/openocd/trunk@1211 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-04 duane * : Fix for Hiroshi Ito discovery of mis-aligned memory allocation git-svn-id: svn://svn.berlios.de/openocd/trunk@1205 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-03 ntfreak * : - incorrect str9 irmask used in config files git-svn-id: svn://svn.berlios.de/openocd/trunk@1203 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-02 oharboe * : Kees Jongenburger - now compiles git-svn-id: svn://svn.berlios.de/openocd/trunk@1201 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-01 oharboe * : "Theodore A. Roth" fixes to distcheck git-svn-id: svn://svn.berlios.de/openocd/trunk@1199 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-01 oharboe * : update zy1000 to svn head jtag api git-svn-id: svn://svn.berlios.de/openocd/trunk@1197 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-12-01 oharboe * : wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1195 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-30 duane * : Test checkin from commandline git-svn-id: svn://svn.berlios.de/openocd/trunk@1193 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-27 ntfreak * : - fix issue with luminary flash driver and tail bytes git-svn-id: svn://svn.berlios.de/openocd/trunk@1191 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-27 ntfreak * : - stm32x flash driver: add support for low density devices git-svn-id: svn://svn.berlios.de/openocd/trunk@1189 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-26 ntfreak * : - fixes segfault using the targets cmd if multiple targets defined git-svn-id: svn://svn.berlios.de/openocd/trunk@1187 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-26 oharboe * : friendlier error messages git-svn-id: svn://svn.berlios.de/openocd/trunk@1185 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-21 ntfreak * : - add new cortex_m3 maskisr cmd git-svn-id: svn://svn.berlios.de/openocd/trunk@1181 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-20 ntfreak * : - preserve cortex_m3 C_MASKINTS during resume/step git-svn-id: svn://svn.berlios.de/openocd/trunk@1179 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-19 oharboe * : jtag_get_device() now returns NULL and reports error instead of invoking exit() git-svn-id: svn://svn.berlios.de/openocd/trunk@1176 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-18 oharboe * : big endian fix for GDB. Probably fixes a memory corruption(not reported) as well. git-svn-id: svn://svn.berlios.de/openocd/trunk@1174 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-14 ntfreak * : - stops multiple calls to examine from allocating the breakpoint arrays git-svn-id: svn://svn.berlios.de/openocd/trunk@1171 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-13 oharboe * : big endian software breakpoint bogus error messages fixed git-svn-id: svn://svn.berlios.de/openocd/trunk@1167 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-13 oharboe * : nios wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1165 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-12 ntfreak * : - slight mips32 cleanup/reformat - add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1159 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-11 oharboe * : Fixes (more or less) random SEGFAULT upon invoking script_command(). git-svn-id: svn://svn.berlios.de/openocd/trunk@1156 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-10 oharboe * : broadcast mac address in UDP hello message git-svn-id: svn://svn.berlios.de/openocd/trunk@1152 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-10 oharboe * : minor cleanup git-svn-id: svn://svn.berlios.de/openocd/trunk@1149 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-07 oharboe * : ocd_flash_banks now returns empty list when no flash banks are configured instead of failing. Allows more orthogonal implementations of tcl code. git-svn-id: svn://svn.berlios.de/openocd/trunk@1147 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-07 oharboe * : ocd_flash_banks now returns empty list when no flash banks are configured instead of failing. Allows more orthogonal implementations of tcl code. git-svn-id: svn://svn.berlios.de/openocd/trunk@1144 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-06 ntfreak * : - remove build warnings - added svn props for newly added files git-svn-id: svn://svn.berlios.de/openocd/trunk@1142 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-06 oharboe * : s3c6410 chip git-svn-id: svn://svn.berlios.de/openocd/trunk@1140 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-05 oharboe * : 926ejs target uses rclk. Cleaned up jtag_khz output a bit. git-svn-id: svn://svn.berlios.de/openocd/trunk@1138 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-05 oharboe * : wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1136 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-05 oharboe * : disable continous polling while srst is asserted and power dropout is detected git-svn-id: svn://svn.berlios.de/openocd/trunk@1134 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-04 oharboe * : arm7_9_execute_sys_speed error propagation. Found by code inspection, no observed problems as such. git-svn-id: svn://svn.berlios.de/openocd/trunk@1132 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-04 oharboe * : Added Tcl escaping to FAQ git-svn-id: svn://svn.berlios.de/openocd/trunk@1130 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-03 ntfreak * : - fix issue with jlink/libusb timeout under linux - add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1128 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-03 oharboe * : Rick Altherr - fix warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1126 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-02 oharboe * : invoke target_create() once git-svn-id: svn://svn.berlios.de/openocd/trunk@1124 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-02 oharboe * : Alan Carvalho de Assis imx27 config file git-svn-id: svn://svn.berlios.de/openocd/trunk@1122 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-02 oharboe * : Rick Altherr - fix flash write_bank output. git-svn-id: svn://svn.berlios.de/openocd/trunk@1120 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-11-02 oharboe * : no longer used git-svn-id: svn://svn.berlios.de/openocd/trunk@1118 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-31 oharboe * : Rick Altherr switch to new syntax for target events git-svn-id: svn://svn.berlios.de/openocd/trunk@1116 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-30 oharboe * : Hongtao Zheng single step fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1113 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-28 oharboe * : Kees Jongenburger update syntax git-svn-id: svn://svn.berlios.de/openocd/trunk@1111 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-28 oharboe * : Hongtao Zheng - fix a simulation error for "BX PC" git-svn-id: svn://svn.berlios.de/openocd/trunk@1109 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-27 oharboe * : Kees Jongenburger old" syntax target command appears to be broken this patch addresses this issue git-svn-id: svn://svn.berlios.de/openocd/trunk@1107 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-27 oharboe * : Hongtao Zheng - add simulation because previous functions could not halt for instructions that next pc equal to the current pc. git-svn-id: svn://svn.berlios.de/openocd/trunk@1105 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-27 oharboe * : added option to use ramdisk instead of flash jffs2 git-svn-id: svn://svn.berlios.de/openocd/trunk@1103 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-24 ntfreak * : - fix native mingw build if gettimeofday not defined. - reformat whitespace in startup.tcl git-svn-id: svn://svn.berlios.de/openocd/trunk@1101 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-23 oharboe * : fix working memory location git-svn-id: svn://svn.berlios.de/openocd/trunk@1098 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-23 oharboe * : only log BUG: (do not return error) in the case of unknown debug reason(0xc) git-svn-id: svn://svn.berlios.de/openocd/trunk@1096 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-22 oharboe * : load and verify are now synonymous to load/verify_image git-svn-id: svn://svn.berlios.de/openocd/trunk@1092 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-22 oharboe * : produce syntax error git-svn-id: svn://svn.berlios.de/openocd/trunk@1090 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-22 oharboe * : Laurentiu Cocanu - more help text git-svn-id: svn://svn.berlios.de/openocd/trunk@1088 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-22 oharboe * : version number keyword expansion handling git-svn-id: svn://svn.berlios.de/openocd/trunk@1086 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-21 oharboe * : remove duplicate target git-svn-id: svn://svn.berlios.de/openocd/trunk@1084 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-17 ntfreak * : - add link in texi docs git-svn-id: svn://svn.berlios.de/openocd/trunk@1081 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-17 ntfreak * : - remove texi warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1079 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-16 oharboe * : sleep command now prints out target debugmsgs w/anything like usable performance git-svn-id: svn://svn.berlios.de/openocd/trunk@1076 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-16 oharboe * : Laurentiu Cocanu - integrated new tcl target command docs git-svn-id: svn://svn.berlios.de/openocd/trunk@1073 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-16 oharboe * : adding concept of production script git-svn-id: svn://svn.berlios.de/openocd/trunk@1071 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-16 oharboe * : added capture command to capture log output. Useful when wanting to capture log output from tcl procedures that invoke openocd commands git-svn-id: svn://svn.berlios.de/openocd/trunk@1069 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-16 oharboe * : unsik Kim - mflash support git-svn-id: svn://svn.berlios.de/openocd/trunk@1067 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-15 ntfreak * : - fix tcl_port typo in docs - remove build warning from openocd.c - add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1065 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-15 oharboe * : 김운식 spotted a bug in target_write_u8 git-svn-id: svn://svn.berlios.de/openocd/trunk@1063 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : Laurentiu Cocanu - fix error handling git-svn-id: svn://svn.berlios.de/openocd/trunk@1061 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : Laurentiu Cocanu - more error handling fixes git-svn-id: svn://svn.berlios.de/openocd/trunk@1059 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : clarified jtag_ntrst_delay option git-svn-id: svn://svn.berlios.de/openocd/trunk@1056 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : testing of syntax error in reset and at startup git-svn-id: svn://svn.berlios.de/openocd/trunk@1054 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : added warning to use GDB 6.7 or newer git-svn-id: svn://svn.berlios.de/openocd/trunk@1052 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : John McCarthy two patches add a mips_m4k target option (ejtag_reset) to cause a reset command to use the EJTAG Peripheral and System Reset in addition to srst. This is for targets like the wrt54gl which do not connect the srst to a system reset (I believe it just goes to a GPIO). git-svn-id: svn://svn.berlios.de/openocd/trunk@1050 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-14 oharboe * : reset cleanup git-svn-id: svn://svn.berlios.de/openocd/trunk@1048 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-13 oharboe * : SEGFAULT gaffe in dummy register handling git-svn-id: svn://svn.berlios.de/openocd/trunk@1046 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-13 oharboe * : fix crash when connecting GDB to powered down target git-svn-id: svn://svn.berlios.de/openocd/trunk@1044 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-13 oharboe * : Fixed gaffes in reset script handling + improved error messages a bit. The file and line # of the syntax error in a reset script is now printed. git-svn-id: svn://svn.berlios.de/openocd/trunk@1042 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-12 oharboe * : Fix problems with DCC downloads routine crashing silently. git-svn-id: svn://svn.berlios.de/openocd/trunk@1040 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-10 oharboe * : John McCarthy openocd-usb.cfg added git-svn-id: svn://svn.berlios.de/openocd/trunk@1038 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-09 oharboe * : enumeration of threads for testing purposes. git-svn-id: svn://svn.berlios.de/openocd/trunk@1035 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-09 oharboe * : added busy sleep (for testing purposes) git-svn-id: svn://svn.berlios.de/openocd/trunk@1033 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-08 oharboe * : Richard Missenden exit now works during startup script git-svn-id: svn://svn.berlios.de/openocd/trunk@1031 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-08 oharboe * : John McCarthy adds support for DMA mode access as supported by EJTAG 1.0/2.0 processors git-svn-id: svn://svn.berlios.de/openocd/trunk@1029 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-07 oharboe * : reduce patch problems by moving $xxx expansion into seperate fn git-svn-id: svn://svn.berlios.de/openocd/trunk@1027 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-07 oharboe * : Frederik Kriewitz Segmentation fault fix. git-svn-id: svn://svn.berlios.de/openocd/trunk@1025 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-07 oharboe * : Georg Acher - arm11 wip. run algorithm + small init bugfix. git-svn-id: svn://svn.berlios.de/openocd/trunk@1023 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-06 oharboe * : basic smoketest on lm3s3748.elf git-svn-id: svn://svn.berlios.de/openocd/trunk@1020 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-06 oharboe * : better keep_alive() handling git-svn-id: svn://svn.berlios.de/openocd/trunk@1018 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-05 oharboe * : Georg Acher corrected TDO sampling git-svn-id: svn://svn.berlios.de/openocd/trunk@1016 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-03 oharboe * : GDB alive fixes for verify_image git-svn-id: svn://svn.berlios.de/openocd/trunk@1014 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-10-01 oharboe * : fixed gaffe: disable interrupts reset init script git-svn-id: svn://svn.berlios.de/openocd/trunk@1012 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-29 ntfreak * : - at91sam7.c remove build warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1010 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-26 oharboe * : I do not know why this is necessary, but it fixes strange effects (step/resume cause a NMI after reset) on LM3S6918 -- Michael Schwingen git-svn-id: svn://svn.berlios.de/openocd/trunk@1008 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-26 oharboe * : wip git-svn-id: svn://svn.berlios.de/openocd/trunk@1006 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-25 ntfreak * : - update docs for aduc702x flash driver git-svn-id: svn://svn.berlios.de/openocd/trunk@996 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-24 oharboe * : fix noise in gdb console when single stepping. Remove printing of log before processing halted event. git-svn-id: svn://svn.berlios.de/openocd/trunk@994 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-24 oharboe * : "marcel" , I have the ADuC702x flashdriver working again (see attachment). It adds the option to erase and write the ADuC702x flash git-svn-id: svn://svn.berlios.de/openocd/trunk@992 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-21 oharboe * : Removed some obsolete stuff + Pushing things in the direction of openocd.texi git-svn-id: svn://svn.berlios.de/openocd/trunk@990 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-21 oharboe * : put instructions on how to report bugs onto the users radar git-svn-id: svn://svn.berlios.de/openocd/trunk@988 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-12 oharboe * : follow up to keep_alive() fix. process target events before returning from reset procedure. git-svn-id: svn://svn.berlios.de/openocd/trunk@986 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-12 oharboe * : Duane Ellis: target_process_reset is now implemented in tcl. This allows better control from target configuration scripts. git-svn-id: svn://svn.berlios.de/openocd/trunk@984 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-08 oharboe * : typo fixed. git-svn-id: svn://svn.berlios.de/openocd/trunk@982 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-08 oharboe * : Duane Ellis, added clock command. git-svn-id: svn://svn.berlios.de/openocd/trunk@980 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-04 oharboe * : s3c2440 OpenMoko target script git-svn-id: svn://svn.berlios.de/openocd/trunk@978 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-01 oharboe * : Removed target->reset_mode, no longer used git-svn-id: svn://svn.berlios.de/openocd/trunk@976 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-09-01 oharboe * : retired, nothing came of it. git-svn-id: svn://svn.berlios.de/openocd/trunk@974 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-27 oharboe * : comment about slow RTCK git-svn-id: svn://svn.berlios.de/openocd/trunk@972 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-26 oharboe * : added 1000ms timeout git-svn-id: svn://svn.berlios.de/openocd/trunk@970 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-25 oharboe * : RCLK is not supported, return error instead of crashing. git-svn-id: svn://svn.berlios.de/openocd/trunk@968 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-25 oharboe * : fixed bug in arm11 examine code. git-svn-id: svn://svn.berlios.de/openocd/trunk@966 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-25 oharboe * : sync with Jim Tcl repository. git-svn-id: svn://svn.berlios.de/openocd/trunk@964 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-24 oharboe * : duan ellis target tcl work in progress converts a number of 'simple string lookup tables' into NVP tables. These NVP tables will be used by various commands coming in the next patch. git-svn-id: svn://svn.berlios.de/openocd/trunk@962 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-23 ntfreak * : - clear any existing breakpoints/watchpoints when restarting in gdb extended remote mode git-svn-id: svn://svn.berlios.de/openocd/trunk@960 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-22 ntfreak * : - fix win32 build issues from previous jim patch git-svn-id: svn://svn.berlios.de/openocd/trunk@958 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-20 oharboe * : added gdb timeout handling + error propagation git-svn-id: svn://svn.berlios.de/openocd/trunk@956 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-20 oharboe * : lm3s3748 config file git-svn-id: svn://svn.berlios.de/openocd/trunk@954 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-20 oharboe * : sharpen error propagation a wee bit. git-svn-id: svn://svn.berlios.de/openocd/trunk@952 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-20 oharboe * : Daniel Gimpelevich fix reset halt on feroceon git-svn-id: svn://svn.berlios.de/openocd/trunk@950 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-20 oharboe * : duane ellis: fix warning git-svn-id: svn://svn.berlios.de/openocd/trunk@948 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : fixed warning git-svn-id: svn://svn.berlios.de/openocd/trunk@946 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : make target_wait_state() usable from other places, made LOG_USER() output LOG_DEBUG() output. Avoids flooding logs in certain cases and OpenOCD will output error message if the halt fails. git-svn-id: svn://svn.berlios.de/openocd/trunk@944 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : search and replace usleep(1000) with alive_sleep(1) to avoid GDB timeouts. git-svn-id: svn://svn.berlios.de/openocd/trunk@942 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : added some alive_sleep()'s git-svn-id: svn://svn.berlios.de/openocd/trunk@940 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : added alive_sleep() function to let GDB alive packets be sent git-svn-id: svn://svn.berlios.de/openocd/trunk@938 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : duane ellis: (A) a new concept called "Name Value Pair" or NVP, in simple terms: Think: "String" and "Value". There can be many strings - all related to a single value, for examle: "T", "t", "y", "1", "yes", all can represent "truth", the reverse mapping is more simplistic - the first matching number wins. (B) a new "getopt" like feature for Jim - that simplifies argument parsing in complex functions, normally this would be used in conjunction with either an NVP table of options, or a more simpler Enumeration table. In contrast to the GNU "getopt" package, this is more of a "object model or code oriented" solution then a pure data structure used by GNU getopt, or the main stream Tcl/Tk option processing. git-svn-id: svn://svn.berlios.de/openocd/trunk@936 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : fix comment w.r.t. start address for RAM git-svn-id: svn://svn.berlios.de/openocd/trunk@934 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : removed a couple of exit()'s from error handling. git-svn-id: svn://svn.berlios.de/openocd/trunk@932 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-19 oharboe * : Daniel Gimpelevich one more parport device git-svn-id: svn://svn.berlios.de/openocd/trunk@930 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-18 oharboe * : more error propagation git-svn-id: svn://svn.berlios.de/openocd/trunk@928 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-18 oharboe * : openocd.texi is the authoratitive source for documentation. Wiki is dead. git-svn-id: svn://svn.berlios.de/openocd/trunk@926 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-17 oharboe * : deleted superfluous sam7s256 which was identical to sam7x256 git-svn-id: svn://svn.berlios.de/openocd/trunk@924 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-15 oharboe * : removed obsolete command. git-svn-id: svn://svn.berlios.de/openocd/trunk@922 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-14 oharboe * : arm7/9 breakpoint cleanup. arm7_9 sw/hw commands retired. openocd.texi is alerady updated. git-svn-id: svn://svn.berlios.de/openocd/trunk@920 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-14 oharboe * : documentation wip for upcoming patch. git-svn-id: svn://svn.berlios.de/openocd/trunk@918 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-13 oharboe * : force lpc2148 target into ARM state. git-svn-id: svn://svn.berlios.de/openocd/trunk@916 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-13 oharboe * : added global gdb breakpoint override configuration command git-svn-id: svn://svn.berlios.de/openocd/trunk@914 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-13 oharboe * : Clear all dangling breakpoints upon GDB connection. git-svn-id: svn://svn.berlios.de/openocd/trunk@912 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-13 oharboe * : return halted signal if step/continue fails git-svn-id: svn://svn.berlios.de/openocd/trunk@910 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-11 oharboe * : fix output from jtag_khz when only jtag_speed has been invoked git-svn-id: svn://svn.berlios.de/openocd/trunk@908 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-11 oharboe * : propagate error code in case of "reset" failing. git-svn-id: svn://svn.berlios.de/openocd/trunk@906 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-11 oharboe * : fix error message git-svn-id: svn://svn.berlios.de/openocd/trunk@904 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-08 ntfreak * : - fix build issues under win32 (mingw) git-svn-id: svn://svn.berlios.de/openocd/trunk@902 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-08 oharboe * : default reset in help text - run git-svn-id: svn://svn.berlios.de/openocd/trunk@900 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-07 oharboe * : David Kuehling - added jim-eventloop.c git-svn-id: svn://svn.berlios.de/openocd/trunk@898 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-07 ntfreak * : - correct BUILD_ECOSBOARD definition is server.c git-svn-id: svn://svn.berlios.de/openocd/trunk@896 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-06 ntfreak * : - added svn props for previously added file git-svn-id: svn://svn.berlios.de/openocd/trunk@894 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-05 oharboe * : GDB monitor commands now also get halted state upon e.g. "reset halt". git-svn-id: svn://svn.berlios.de/openocd/trunk@892 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-05 oharboe * : Duane Ellis: fix warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@890 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-05 oharboe * : define resetting the target into the halted or running state as an atomic operation. git-svn-id: svn://svn.berlios.de/openocd/trunk@888 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-08-04 oharboe * : TAP_TLR won't work in a pathmove sequence. OpenOCD shouldn't and doesn't need to support this. git-svn-id: svn://svn.berlios.de/openocd/trunk@886 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-31 oharboe * : wait up to 1 second for halted state upon reset init/halt. git-svn-id: svn://svn.berlios.de/openocd/trunk@884 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-30 oharboe * : warning output upon connection problems. git-svn-id: svn://svn.berlios.de/openocd/trunk@882 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-28 ntfreak * : - added run_and_halt_time to deprecated/removed functions section git-svn-id: svn://svn.berlios.de/openocd/trunk@880 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-28 oharboe * : fixed gaffe mea culpa git-svn-id: svn://svn.berlios.de/openocd/trunk@878 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-27 oharboe * : working notes. git-svn-id: svn://svn.berlios.de/openocd/trunk@876 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-26 ntfreak * : - merged mips target into svn trunk git-svn-id: svn://svn.berlios.de/openocd/trunk@874 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-25 oharboe * : added yours sincerely for files where I feel that I've made non-trivial contributions. git-svn-id: svn://svn.berlios.de/openocd/trunk@872 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-24 oharboe * : more error message cleanup. invalid args & syntax errors both now print arguments of command. git-svn-id: svn://svn.berlios.de/openocd/trunk@870 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-24 oharboe * : retire daemon_startup git-svn-id: svn://svn.berlios.de/openocd/trunk@868 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-24 oharboe * : Better handling of OpenOCD command invocation result/context. git-svn-id: svn://svn.berlios.de/openocd/trunk@866 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-23 ntfreak * : - comment about dummy ack '+' char from gdb git-svn-id: svn://svn.berlios.de/openocd/trunk@864 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-23 ntfreak * : - fix typo git-svn-id: svn://svn.berlios.de/openocd/trunk@862 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-23 oharboe * : handle end of line comments to improve compatibility with event scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@860 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-22 ntfreak * : - fix bug with stm32 high density write protection git-svn-id: svn://svn.berlios.de/openocd/trunk@858 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-22 oharboe * : Spen: startup.tcl cross compile support git-svn-id: svn://svn.berlios.de/openocd/trunk@856 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-22 oharboe * : very slightly improved error message for not being able to find scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@854 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-21 oharboe * : Allows config scripts to override handling of 'R'(restart) GDB packet. git-svn-id: svn://svn.berlios.de/openocd/trunk@852 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-21 oharboe * : update jtag_speed/khz docs a bit. git-svn-id: svn://svn.berlios.de/openocd/trunk@850 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-21 oharboe * : cross compile fix git-svn-id: svn://svn.berlios.de/openocd/trunk@848 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-21 oharboe * : Duane Ellis stm32 peripherals scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@846 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-20 oharboe * : BUG: prefix to timeout for gdb keep alive packets. git-svn-id: svn://svn.berlios.de/openocd/trunk@844 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-20 oharboe * : Duane Ellis - script commands for stm32 git-svn-id: svn://svn.berlios.de/openocd/trunk@842 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-20 oharboe * : Duane Ellis improve error message in Jim when sourcing a file fails. Previously it did not tell you the CWD Jim was using as its reference point. (Helpful when script filenames are a relative path) git-svn-id: svn://svn.berlios.de/openocd/trunk@840 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-19 oharboe * : throw exception upon syntax error. git-svn-id: svn://svn.berlios.de/openocd/trunk@838 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-19 oharboe * : clarify error message w.r.t. not being able to set breakpoint git-svn-id: svn://svn.berlios.de/openocd/trunk@836 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-18 oharboe * : This allows overriding builtin openocd commands. git-svn-id: svn://svn.berlios.de/openocd/trunk@834 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-18 oharboe * : "reset" without arguments now execute a "reset run". the reset mode argument to the target command is deprecated(ignored w/error message). git-svn-id: svn://svn.berlios.de/openocd/trunk@832 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-18 ntfreak * : - fix incorrectly registered function openocd_array2mem - removed unused variables - reformatted lpc288x.[ch] - fixed helper/Makefile.am dependencies - add correct svn props to added files git-svn-id: svn://svn.berlios.de/openocd/trunk@829 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-18 oharboe * : keep_alive() fix for reset warnings. git-svn-id: svn://svn.berlios.de/openocd/trunk@827 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-18 oharboe * : Duane Ellis more interface files. git-svn-id: svn://svn.berlios.de/openocd/trunk@825 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-18 oharboe * : added missing "reset+load" sequence. git-svn-id: svn://svn.berlios.de/openocd/trunk@823 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-17 oharboe * : Charles Hardin ckhardin at gmail.com Instead of stashing the context in a global variable, just use the "context" associated with the interp structure being passed around And fixed the message referring to mem2array in the array2mem function git-svn-id: svn://svn.berlios.de/openocd/trunk@821 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-17 oharboe * : Charles Hardin ckhardin at gmail.com There isn't a real value to the cfg_cmd_ctx since everything should be run thru the initial context created at start. git-svn-id: svn://svn.berlios.de/openocd/trunk@819 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-17 ntfreak * : - reverted resume_target to old behaviour git-svn-id: svn://svn.berlios.de/openocd/trunk@817 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-16 oharboe * : Fixes to \ and / handling for OpenOCD git-svn-id: svn://svn.berlios.de/openocd/trunk@815 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-16 oharboe * : print out jim error message stack trace in expected order(look at any C++ or Java debugger for instance). git-svn-id: svn://svn.berlios.de/openocd/trunk@813 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-16 oharboe * : print syntax for command upon syntax error. git-svn-id: svn://svn.berlios.de/openocd/trunk@811 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-15 oharboe * : feeble beginnings for tcl api rules. git-svn-id: svn://svn.berlios.de/openocd/trunk@809 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-14 oharboe * : Charles Hardin This evaluates the file at the correct level for the interpreter and the sets and all the globals are then done as expected. added a const to find_file function to avoid typecasting git-svn-id: svn://svn.berlios.de/openocd/trunk@806 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-13 ntfreak * : - added svn props for newly added files git-svn-id: svn://svn.berlios.de/openocd/trunk@804 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-13 oharboe * : Duane Ellis fix to tcl puts git-svn-id: svn://svn.berlios.de/openocd/trunk@802 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-12 ntfreak * : - remove requirement for file2c.tcl git-svn-id: svn://svn.berlios.de/openocd/trunk@800 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-12 oharboe * : testing/*.tcl sample & test code git-svn-id: svn://svn.berlios.de/openocd/trunk@798 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-11 ntfreak * : - configure check added for tclsh - startup.c manually added to clean deps git-svn-id: svn://svn.berlios.de/openocd/trunk@796 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-11 oharboe * : Charles Hardin ckhardin at gmail.com This address the >32 bit problem with drscan also added a check for bypass in the execute since this will manifest itself as a memory corruption when this check helps to debug the problem alot easier git-svn-id: svn://svn.berlios.de/openocd/trunk@794 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-11 oharboe * : work in progress to improve help git-svn-id: svn://svn.berlios.de/openocd/trunk@792 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-11 oharboe * : .cfg files are now executed as Jim Tcl. Commands that terminate script w/error message. git-svn-id: svn://svn.berlios.de/openocd/trunk@790 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-11 oharboe * : working notes. git-svn-id: svn://svn.berlios.de/openocd/trunk@788 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-10 oharboe * : Charles Hardin Add semantics to support memwrite(32,16,8) with an array2mem command Move the global up in bits2bytes.tcl so the set puts the value in the global context. Add memwrite procs to memory.tcl git-svn-id: svn://svn.berlios.de/openocd/trunk@786 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-10 oharboe * : fix quoting problem when handling OpenOCD commands. git-svn-id: svn://svn.berlios.de/openocd/trunk@784 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-10 oharboe * : very slight cleanup of flash banks handling. git-svn-id: svn://svn.berlios.de/openocd/trunk@782 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-09 ntfreak * : - adding missing install entry for luminary-libftdi.cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@780 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-09 ntfreak * : - added luminary libftdi interface config git-svn-id: svn://svn.berlios.de/openocd/trunk@778 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-09 oharboe * : added flash_banks low level command. git-svn-id: svn://svn.berlios.de/openocd/trunk@776 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-08 oharboe * : tcl regression fixes. git-svn-id: svn://svn.berlios.de/openocd/trunk@774 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-08 ntfreak * : - removed target_process_events as only used in handle_resume_command and events will be called anyway by poll git-svn-id: svn://svn.berlios.de/openocd/trunk@772 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-08 ntfreak * : - apply correct formatting to openocd.c - Thanks Charles Hardin git-svn-id: svn://svn.berlios.de/openocd/trunk@770 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-07 oharboe * : more tcl cleanup. git-svn-id: svn://svn.berlios.de/openocd/trunk@768 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-07 ntfreak * : - command_run_line will only search once for the command, and execute if found git-svn-id: svn://svn.berlios.de/openocd/trunk@766 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-07 oharboe * : fix syntax error. git-svn-id: svn://svn.berlios.de/openocd/trunk@764 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-06 ntfreak * : - fix duplicate log entry git-svn-id: svn://svn.berlios.de/openocd/trunk@762 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-06 ntfreak * : - fixed build issues with win32 - fixed build warnings for last commit - set svn props for last commit git-svn-id: svn://svn.berlios.de/openocd/trunk@760 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-06 oharboe * : fix a few compilation problems. git-svn-id: svn://svn.berlios.de/openocd/trunk@758 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-06 oharboe * : Oopss. Forgot to list Duane Ellis as the author of changes in 755. git-svn-id: svn://svn.berlios.de/openocd/trunk@756 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-05 ntfreak * : - added search for libdl - Thanks Charles Hardin git-svn-id: svn://svn.berlios.de/openocd/trunk@754 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 ntfreak * : - added event scripts for str73x and str75x targets git-svn-id: svn://svn.berlios.de/openocd/trunk@751 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 ntfreak * : - fixed line endings with commands.tcl - added svn props for newly added files git-svn-id: svn://svn.berlios.de/openocd/trunk@749 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 oharboe * : fix to peek command. git-svn-id: svn://svn.berlios.de/openocd/trunk@747 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 oharboe * : typo git-svn-id: svn://svn.berlios.de/openocd/trunk@745 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 oharboe * : added support for Tcl config scripts on the command line(use .tcl extension). git-svn-id: svn://svn.berlios.de/openocd/trunk@743 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 oharboe * : ARM11 update. OpenOCD supports starting without being able to talk to the hardware. git-svn-id: svn://svn.berlios.de/openocd/trunk@741 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-07-04 oharboe * : Jim Tcl support added git-svn-id: svn://svn.berlios.de/openocd/trunk@739 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-28 oharboe * : wip. git-svn-id: svn://svn.berlios.de/openocd/trunk@737 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-27 ntfreak * : - update docs for new target_script events git-svn-id: svn://svn.berlios.de/openocd/trunk@735 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-27 oharboe * : hooks to enable experimentation with scripting language support. Reduces patch size, but has no effect on OpenOCD otherwise. git-svn-id: svn://svn.berlios.de/openocd/trunk@733 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-27 oharboe * : David Anders more target lib scripts contributed by git-svn-id: svn://svn.berlios.de/openocd/trunk@731 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-27 oharboe * : David Anders: fixes an issue with large block nand flash address where the beginning of the OOB area is always selected instead of the beginning of a page when needed git-svn-id: svn://svn.berlios.de/openocd/trunk@729 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-25 ntfreak * : - fix reset_halt issue with certain arm cores - address not set in embedded ice reg - Thanks Jonas Hörberg git-svn-id: svn://svn.berlios.de/openocd/trunk@727 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-24 ntfreak * : - fix compile errors when _DEBUG_INSTRUCTION_EXECUTION_ is defined - Thanks Simon Qian git-svn-id: svn://svn.berlios.de/openocd/trunk@725 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-18 oharboe * : Pavel Chromy: - lower jtag speeds (higher divisor) was used, TDI was not changed on falling TCK edge as it should - reset signal was release upon any TMS transition, making it impossible to use reset halt - added khz() and speed_div() functions git-svn-id: svn://svn.berlios.de/openocd/trunk@716 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-18 oharboe * : Spen spotted a bug in warning for missing srst_pulls_trst git-svn-id: svn://svn.berlios.de/openocd/trunk@714 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-16 mifi * : - added target and event script for the eir-sam7se512 target git-svn-id: svn://svn.berlios.de/openocd/trunk@712 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-16 oharboe * : GDB timeout fix. If a script takes a long time and does not produce any output, ping between every command. git-svn-id: svn://svn.berlios.de/openocd/trunk@710 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-11 ntfreak * : - probe incorrect for high density stm32 flash git-svn-id: svn://svn.berlios.de/openocd/trunk@708 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-06 ntfreak * : - stm32 erase will use mass_erase if all banks selected git-svn-id: svn://svn.berlios.de/openocd/trunk@706 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-05 ntfreak * : - erase bank using bank erase rather than each sector - Thanks Fredrik Hederstierna git-svn-id: svn://svn.berlios.de/openocd/trunk@704 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-04 oharboe * : Pavel Chromy: fix logging syntax error + formatting & removing obsolete comments. git-svn-id: svn://svn.berlios.de/openocd/trunk@702 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-04 ntfreak * : - luminary, stm32 and str7 flash driver error cleanup git-svn-id: svn://svn.berlios.de/openocd/trunk@700 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-06-03 oharboe * : Fredrik Hederstierna: fix leak + clean up return codes git-svn-id: svn://svn.berlios.de/openocd/trunk@698 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-29 ntfreak * : - added checksum_memory and blank_check_memory for xscale git-svn-id: svn://svn.berlios.de/openocd/trunk@696 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-27 ntfreak * : - moved flash erase_check target code to target.c git-svn-id: svn://svn.berlios.de/openocd/trunk@694 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-27 ntfreak * : - fixed typo in wp command git-svn-id: svn://svn.berlios.de/openocd/trunk@692 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-26 mifi * : - added check for max. value of jtag_speed in ft2232_khz. git-svn-id: svn://svn.berlios.de/openocd/trunk@690 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-26 oharboe * : found out why str912 reset halt failed. git-svn-id: svn://svn.berlios.de/openocd/trunk@688 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-26 ntfreak * : - corrected error with stm32 page calculation git-svn-id: svn://svn.berlios.de/openocd/trunk@686 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-24 mifi * : - comment out usb_set_altinterface, because it is not working under Mac OS X. And not needed for Windows. Hopefully it will not break a Linux build. git-svn-id: svn://svn.berlios.de/openocd/trunk@684 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-24 ntfreak * : - added stellaris flash mass_erase command git-svn-id: svn://svn.berlios.de/openocd/trunk@682 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-24 mifi * : - swap processing of reset handling. First srst and than trst. git-svn-id: svn://svn.berlios.de/openocd/trunk@680 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-24 mifi * : - corrected copy/paste type and renamed jlink_usb_read_result to jlink_usb_read_emu_result git-svn-id: svn://svn.berlios.de/openocd/trunk@678 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-24 ntfreak * : - jlink jlink_execute_queue returns result - added jlink_get_version_info function - reformatted spaces to tabs git-svn-id: svn://svn.berlios.de/openocd/trunk@676 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-23 ntfreak * : - add support for newer high density stm32 parts git-svn-id: svn://svn.berlios.de/openocd/trunk@674 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-21 ntfreak * : - remove error message on shutdown git-svn-id: svn://svn.berlios.de/openocd/trunk@672 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-21 oharboe * : moved srst_pulls_trst check into arm7_9_common.c. Not tested yet, if it is broken it should "only" print bogus warnings or not print a warning when it should have. git-svn-id: svn://svn.berlios.de/openocd/trunk@670 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-19 oharboe * : reverted change in 658 and simply removed the busted warning for now. git-svn-id: svn://svn.berlios.de/openocd/trunk@668 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-19 oharboe * : print out an error if srst_pulls_trst is not specified for e.g. at91fr40008. Could possibly show bogus false positives in log without any other side effects. git-svn-id: svn://svn.berlios.de/openocd/trunk@666 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-19 oharboe * : fix mode output when illegal arm mode is detected. Now prints illegal mode for index -1. git-svn-id: svn://svn.berlios.de/openocd/trunk@664 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-19 oharboe * : updated guidelines. git-svn-id: svn://svn.berlios.de/openocd/trunk@662 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-16 mifi * : - added smoketest result for r657 - some corrections for the reset config of at91r40008 git-svn-id: svn://svn.berlios.de/openocd/trunk@660 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-14 ntfreak * : - added jlink support, based on Jürgen Stuber patch git-svn-id: svn://svn.berlios.de/openocd/trunk@658 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-11 mifi * : - added patch from uwe hermann, thanks for the hint. git-svn-id: svn://svn.berlios.de/openocd/trunk@656 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-10 mifi * : - corrected rounding in ft2232_khz git-svn-id: svn://svn.berlios.de/openocd/trunk@654 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-10 mifi * : - smoketest for r651 git-svn-id: svn://svn.berlios.de/openocd/trunk@652 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-09 oharboe * : Michael Fischer spotted a problem in the reset routines for srst_pulls_trst. It is a bit of a mystery why this was only visible w/LPC2148. Embedded ICE registers are now set up after SRST pulls TRST. git-svn-id: svn://svn.berlios.de/openocd/trunk@650 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-07 oharboe * : print available memory in log_level 3 git-svn-id: svn://svn.berlios.de/openocd/trunk@648 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-07 oharboe * : Edgar Grimberg plugged a leak found w/Valgrind. git-svn-id: svn://svn.berlios.de/openocd/trunk@646 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-06 oharboe * : Edgar Grimberg found tiny memory leak git-svn-id: svn://svn.berlios.de/openocd/trunk@644 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-06 oharboe * : The target library is now the authorotative source of config examples git-svn-id: svn://svn.berlios.de/openocd/trunk@642 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-03 drath * : - fixed xsvf_add_statemove() git-svn-id: svn://svn.berlios.de/openocd/trunk@640 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-02 ntfreak * : - added info about libftdi support under win32 git-svn-id: svn://svn.berlios.de/openocd/trunk@638 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-01 oharboe * : Tim Hudson worked on English language. git-svn-id: svn://svn.berlios.de/openocd/trunk@636 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-05-01 ntfreak * : - add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@634 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-30 oharboe * : now compiles again. git-svn-id: svn://svn.berlios.de/openocd/trunk@632 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-30 ntfreak * : - added new device to luminary flash driver - only use SYSRESETREQ on affected luminary parts git-svn-id: svn://svn.berlios.de/openocd/trunk@630 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-30 oharboe * : Edgar's added support for printing jtag_khz git-svn-id: svn://svn.berlios.de/openocd/trunk@628 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-29 oharboe * : Edgar Grimberg added a new rule for target scripts. Flash + verify must succeed. git-svn-id: svn://svn.berlios.de/openocd/trunk@626 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-28 ntfreak * : - add cortex_m3 variant luminary to fix reset issue with asserting SRST - https://lists.berlios.de/pipermail/openocd-development/2008-April/002022.html for detailsgit-svn-id: svn://svn.berlios.de/openocd/trunk@624 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-26 ntfreak * : - luminary flash now loader polls when finished git-svn-id: svn://svn.berlios.de/openocd/trunk@622 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-26 ntfreak * : - incorrect ram size for lm3s811 target script git-svn-id: svn://svn.berlios.de/openocd/trunk@620 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-26 oharboe * : wip instructions for building Cortex toolchain git-svn-id: svn://svn.berlios.de/openocd/trunk@618 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-24 oharboe * : Close dangling file handle git-svn-id: svn://svn.berlios.de/openocd/trunk@616 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-24 oharboe * : Edgar's new test cases. git-svn-id: svn://svn.berlios.de/openocd/trunk@614 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-23 oharboe * : Pavel Chromy's on chip flash loader git-svn-id: svn://svn.berlios.de/openocd/trunk@612 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-23 ntfreak * : - added svn props for newly added files git-svn-id: svn://svn.berlios.de/openocd/trunk@610 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-23 ntfreak * : - fix typo in openocd.texi git-svn-id: svn://svn.berlios.de/openocd/trunk@608 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-23 oharboe * : Tim Hudson: removed setting jtag_speed directly (which should not be done). git-svn-id: svn://svn.berlios.de/openocd/trunk@606 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-23 oharboe * : added fast option. git-svn-id: svn://svn.berlios.de/openocd/trunk@604 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-22 oharboe * : wip on reporting bugs. git-svn-id: svn://svn.berlios.de/openocd/trunk@602 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-21 ntfreak * : - added stm32 stick and luminary eval boards interface configs - corrected target lm3s6965.cfg git-svn-id: svn://svn.berlios.de/openocd/trunk@600 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-20 ntfreak * : - set erase flag on sector git-svn-id: svn://svn.berlios.de/openocd/trunk@598 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-20 ntfreak * : - update docs for flash write_image command - remove info on flash auto_erase, added to removed commands section git-svn-id: svn://svn.berlios.de/openocd/trunk@596 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-19 mifi * : - added test results for r592 git-svn-id: svn://svn.berlios.de/openocd/trunk@594 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-18 drath * : - Flash auto-erase is disabled by default git-svn-id: svn://svn.berlios.de/openocd/trunk@592 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-18 oharboe * : Nicolas Pitre fixed regression. git-svn-id: svn://svn.berlios.de/openocd/trunk@590 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-16 oharboe * : fix for gaffe in 555 that stopped JTAG chain examine + validate from running. git-svn-id: svn://svn.berlios.de/openocd/trunk@588 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-16 ntfreak * : - correct stm32stick config script git-svn-id: svn://svn.berlios.de/openocd/trunk@586 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-16 oharboe * : Edgar Grimberg added some missing scripts from the install git-svn-id: svn://svn.berlios.de/openocd/trunk@584 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-15 oharboe * : - sw_bkpts fails if the target is not halted. The side effect is that sw_bkpts also fails if the target is an unknown state(i.e. not examined yet). - feroceon embedded ICE registers are now set up after TRST has been deasserted(not tested, but it was broken as is anyway). git-svn-id: svn://svn.berlios.de/openocd/trunk@582 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-15 oharboe * : target read/write is no longer attempted for target_xxx() functions when the target has not been examined(fails w/error). git-svn-id: svn://svn.berlios.de/openocd/trunk@580 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-14 oharboe * : retired fast_memory_access. It's always fast now. git-svn-id: svn://svn.berlios.de/openocd/trunk@578 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-14 oharboe * : moved out stuff that wasn't already moved from openocd.pdf to the target library. git-svn-id: svn://svn.berlios.de/openocd/trunk@576 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-14 oharboe * : TRST is asserted *before* target->type->assert_reset() is invoked. Removed old code. git-svn-id: svn://svn.berlios.de/openocd/trunk@574 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-13 oharboe * : A dummy driver to test codepath w/no contact w/target. git-svn-id: svn://svn.berlios.de/openocd/trunk@572 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-13 oharboe * : allows launching OpenOCD w/telnet+gdb server w/the target powered down. git-svn-id: svn://svn.berlios.de/openocd/trunk@570 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-11 oharboe * : found two more gaffes for reset wip git-svn-id: svn://svn.berlios.de/openocd/trunk@568 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-11 oharboe * : Reset wip. Just adding hooks. This is just to reduce the size of the actual change, no change in behaviour. git-svn-id: svn://svn.berlios.de/openocd/trunk@566 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-11 oharboe * : Wip - split target setup and target examination git-svn-id: svn://svn.berlios.de/openocd/trunk@564 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-11 oharboe * : Improved XScale performance for embedded hosted OpenOCD git-svn-id: svn://svn.berlios.de/openocd/trunk@562 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-10 oharboe * : stop using variable sized arrays. That's something that belongs to C++ and not C. git-svn-id: svn://svn.berlios.de/openocd/trunk@560 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-10 ntfreak * : - single core context used, removed debug context as thought unnecessary. - DCRDR now used to access special core registers - info is currently omitted from the cortex_m3 TRM ARM have told me this is the preferred access method and the docs will be updated soon. - now checks for User Thread Mode and Thread mode when halted. - removed repeated function declarations from command.c - cortex_m3_prepare_reset_halt removed, updated cortex_m3_assert_reset to suit git-svn-id: svn://svn.berlios.de/openocd/trunk@558 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-09 oharboe * : target lib wip git-svn-id: svn://svn.berlios.de/openocd/trunk@556 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-09 ntfreak * : - add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@554 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-09 oharboe * : - added "init" command. "init" and "reset" at end of startup script is equivalent to daemon_startup(still supported). - print warning if srst and trst change state at the same time when srst_and_trst is seperate - reset now performs a trst, examines and validates the jtag chain before targets assert reset - if startup fails to examine and validate the jtag chain, try a reset before trying again git-svn-id: svn://svn.berlios.de/openocd/trunk@552 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-08 oharboe * : Edwin Olson found bug & tested fix for flash write_image for stellaris. git-svn-id: svn://svn.berlios.de/openocd/trunk@550 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-08 oharboe * : added a couple of LOG_ERROR() messages to improve logfile. git-svn-id: svn://svn.berlios.de/openocd/trunk@548 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-08 oharboe * : The endstate now reports the endstate of the queue instead of reading endstate variable internal to the driver. git-svn-id: svn://svn.berlios.de/openocd/trunk@546 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-07 oharboe * : - only if "reset halt" or "reset init" are issued will the reset vector be set up - If communication fails during assert between assert/deassert and during assert, warnings are printed. The warning suggests using srst_only if the clock locks up as that would allow the reset vector to be set up before asserting reset. git-svn-id: svn://svn.berlios.de/openocd/trunk@544 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-06 oharboe * : avoid patch trouble by isolating troublesome line... git-svn-id: svn://svn.berlios.de/openocd/trunk@542 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-04 oharboe * : - the reset mode parameter is now DEPRECATED. It is implemented as an optional parameter with default reset_init. This is to streamline things w.r.t. the target library. git-svn-id: svn://svn.berlios.de/openocd/trunk@540 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-04 oharboe * : added query of reset speed git-svn-id: svn://svn.berlios.de/openocd/trunk@538 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-03 oharboe * : - Work on fixing erase check. Many implementations are plain broken. Wrote a default flash erase check fn which uses CFI's target algorithm w/fallback to memory reads. - "flash info" no longer prints erase status as it is stale. - "flash erase_check" now prints erase status. erase check can take a *long* time. Work in progress - arm7/9 with seperate srst & trst now supports reset init/halt after a power outage. arm7/9 no longer makes any assumptions about state of target when reset is asserted. - fixes for srst & trst capable arm7/9 with reset init/halt - prepare_reset_halt retired. This code needs to be inside assert_reset anyway - haven't been able to get stm32 write algorithm to work. Fallback flash write does work. Haven't found a version of openocd trunk where this works. - added target_free_all_working_areas_restore() which can let be of restoring backups. This is needed when asserting reset as the target must be assumed to be an unknown state. Added some comments to working areas API - str9 reset script fixes - some guidelines - fixed dangling callbacks upon reset timeout git-svn-id: svn://svn.berlios.de/openocd/trunk@536 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-02 oharboe * : fix flash info - now reports erased state properly git-svn-id: svn://svn.berlios.de/openocd/trunk@534 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-04-02 oharboe * : optional count argument to mwX git-svn-id: svn://svn.berlios.de/openocd/trunk@532 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-31 oharboe * : Do not assert trst in srst_only case even if srst_pulls_trst. git-svn-id: svn://svn.berlios.de/openocd/trunk@530 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-31 oharboe * : Removed exit()'s. A reset is usually enough to work around these, reducing cycle times to get config scripts right. git-svn-id: svn://svn.berlios.de/openocd/trunk@528 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-28 oharboe * : Edgar Grimberg: added needed delays git-svn-id: svn://svn.berlios.de/openocd/trunk@526 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-26 oharboe * : hooks for multithreading. Disable nagle git-svn-id: svn://svn.berlios.de/openocd/trunk@524 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-22 ntfreak * : - gdb server was incorrectly sending null terminator on qXfer:features:read: packet - armv7m now sends correct gdb register packet git-svn-id: svn://svn.berlios.de/openocd/trunk@522 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-22 ntfreak * : - changed jtag_add_reset errors to warnings - removed extra jtag reset warnings from arm7_9 and cortex_m3 git-svn-id: svn://svn.berlios.de/openocd/trunk@520 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-21 mifi * : - added new test results git-svn-id: svn://svn.berlios.de/openocd/trunk@518 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-14 oharboe * : added profile command. It was added to simplify evaluation by testers. git-svn-id: svn://svn.berlios.de/openocd/trunk@516 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-13 oharboe * : Michael Bruck: fixed warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@514 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-13 oharboe * : added jtag_khz for use with target library git-svn-id: svn://svn.berlios.de/openocd/trunk@512 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-13 oharboe * : print ms in debug_level 3 logs. Seconds is not enough. git-svn-id: svn://svn.berlios.de/openocd/trunk@510 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-13 oharboe * : marked infinite loop in code w/TODO and fixed warning. git-svn-id: svn://svn.berlios.de/openocd/trunk@508 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-12 oharboe * : xscale now passes w/bitbang in 505 git-svn-id: svn://svn.berlios.de/openocd/trunk@506 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-12 oharboe * : This moves common code into functions so as to make it clear that all the jtag_add_xxx() are indeed intended to do the same thing. git-svn-id: svn://svn.berlios.de/openocd/trunk@504 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-12 oharboe * : more info about latest working version git-svn-id: svn://svn.berlios.de/openocd/trunk@502 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-12 oharboe * : tinkered a bit with testing matrix. git-svn-id: svn://svn.berlios.de/openocd/trunk@500 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-11 oharboe * : With the recent changes the TRST needs to happen for every reset. git-svn-id: svn://svn.berlios.de/openocd/trunk@498 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-11 oharboe * : - retired unused jtag events. The code was incorrect - hopefully clarified the difference between TRST and TMS reset. - added DEBUG() statements w.r.t. state changes - TRST released and moving out of TAP_TLR are completely different events. Only TRST released has a DEBUG() statement git-svn-id: svn://svn.berlios.de/openocd/trunk@496 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-11 oharboe * : retire unused code. git-svn-id: svn://svn.berlios.de/openocd/trunk@494 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-11 oharboe * : - fixed jtag_add_reset(). It no longer causes jtag_execute_queue() to fail for two of it's return codes. A little bit weird, but compatible with existing codebase. - tightend up error handling. Since the jtag_xxx() is a queue that is either executed as things are added(hw queue) or a software queue, then errors can only be caught during jtag_execute_queue(). No error code is therefore returned from the queuing fn's. git-svn-id: svn://svn.berlios.de/openocd/trunk@492 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-10 oharboe * : backed out changes from 483. git-svn-id: svn://svn.berlios.de/openocd/trunk@490 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-10 oharboe * : more target scripts wip. git-svn-id: svn://svn.berlios.de/openocd/trunk@488 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-10 oharboe * : Pavel Chromy: the attached patch refines PRESTO support and makes it work with libftdi. git-svn-id: svn://svn.berlios.de/openocd/trunk@486 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-10 oharboe * : - fixed a problem with big endian XScale and GDB register packets. - hmm..... did I screw up? Was XScale and not gdb_server busted here? My thinking was that OpenOCD has a canonical internal representation of registers that match GDB's expectations git-svn-id: svn://svn.berlios.de/openocd/trunk@484 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-10 oharboe * : - Fixed various error handling when looking for memory leaks - Fixed memory leak in gdb_server.c - pushed "Error:" statements up into fn's that know something about what went wrong - load_image now fails if target_write_memory() fails - only issue an asynchronous halt() upon connect of GDB. Synchronous halt/reset doesn't really work as what's required to initialize the target might involve a special monitor sequence for the target in question - syntax error handling improved(fewer exit()'s) git-svn-id: svn://svn.berlios.de/openocd/trunk@482 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-10 oharboe * : added stm32.cfg to install list git-svn-id: svn://svn.berlios.de/openocd/trunk@480 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-09 ntfreak * : - add stm32 target script git-svn-id: svn://svn.berlios.de/openocd/trunk@478 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-08 oharboe * : typo. git-svn-id: svn://svn.berlios.de/openocd/trunk@476 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 oharboe * : Asynchronous output information from e.g. a halt is now displayed again. git-svn-id: svn://svn.berlios.de/openocd/trunk@474 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 ntfreak * : - The elf loader incorrectly assumed that the program header always follows the ELF header. (Thanks Michael Bruck) git-svn-id: svn://svn.berlios.de/openocd/trunk@472 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 oharboe * : Edgar Grimberg, fix arm926ejs_examine_debug_reason return value. git-svn-id: svn://svn.berlios.de/openocd/trunk@470 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 oharboe * : minor corrections for target scripts. git-svn-id: svn://svn.berlios.de/openocd/trunk@468 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 oharboe * : Pavel Chromy, the patch fixes an issue with PRESTO & FTD2XX under Linux. git-svn-id: svn://svn.berlios.de/openocd/trunk@466 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 oharboe * : wi-9c target scripts git-svn-id: svn://svn.berlios.de/openocd/trunk@464 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 mifi * : - added str912/str710_program.script - added test infos from r459 git-svn-id: svn://svn.berlios.de/openocd/trunk@462 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-07 oharboe * : Cosmetic fixes from Uwe Hermann git-svn-id: svn://svn.berlios.de/openocd/trunk@460 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-06 oharboe * : retired git-svn-id: svn://svn.berlios.de/openocd/trunk@458 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-06 oharboe * : tms is never referenced, confusing old code left behind probably. git-svn-id: svn://svn.berlios.de/openocd/trunk@456 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-06 oharboe * : Pavel Chromy: faster alloc_printf() git-svn-id: svn://svn.berlios.de/openocd/trunk@454 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-06 oharboe * : Michael Bruck: - force simulate_reset_on_next_halt when target state is initially detected - print out method of debug entry - fix VCR activation (didn't work before) git-svn-id: svn://svn.berlios.de/openocd/trunk@452 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-06 oharboe * : make debug code w.r.t. incorrect args for bypass stricter. git-svn-id: svn://svn.berlios.de/openocd/trunk@450 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-05 oharboe * : - This speeds up dcc arm7_9 bulk write a little bit and exercises the jtag_add_dr_out() codepath - added a check to jtag_add_pathmove() for legal path transitions - tweaked jtag.h docs a little bit - made some jtag bypass tests _DEBUG_JTAG_IO_ git-svn-id: svn://svn.berlios.de/openocd/trunk@448 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-05 oharboe * : Pavel Chromy: memory leak in at91sam7 flash driver, possible incorrect pointer conversion in gpnvm command handling, uninitialized buffer issue in handle_flash_info_command in flash.c, some formatting. git-svn-id: svn://svn.berlios.de/openocd/trunk@446 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-05 oharboe * : telnet_port can now be invoked multiple times git-svn-id: svn://svn.berlios.de/openocd/trunk@444 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-04 oharboe * : Fixed GDB timeout crash - regression introduced back when log_add/remove_callback was added. git-svn-id: svn://svn.berlios.de/openocd/trunk@442 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-04 oharboe * : Michael Bruck: fix warnings. git-svn-id: svn://svn.berlios.de/openocd/trunk@440 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-03 ntfreak * : - added svn prop svn:eol-style native git-svn-id: svn://svn.berlios.de/openocd/trunk@438 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-03 oharboe * : added fill_malloc test. Not quite sure what to do here yet, but it would be good to have something... git-svn-id: svn://svn.berlios.de/openocd/trunk@436 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-03 oharboe * : some comments from Dominic git-svn-id: svn://svn.berlios.de/openocd/trunk@434 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-02 ntfreak * : - added svn prop svn:eol-style native git-svn-id: svn://svn.berlios.de/openocd/trunk@432 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-02 oharboe * : fixed FSF address. Uwe Hermann. git-svn-id: svn://svn.berlios.de/openocd/trunk@430 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 oharboe * : wrote up explaining why tests are done on committed code. git-svn-id: svn://svn.berlios.de/openocd/trunk@428 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 ntfreak * : - contrib directory added - libdcc added as example for dcc comms with openocd target_request debugmsgs git-svn-id: svn://svn.berlios.de/openocd/trunk@426 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 oharboe * : fix memory corruption regression introduced in 335 git-svn-id: svn://svn.berlios.de/openocd/trunk@424 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 mifi * : - added example for testing the JTAG speed with a FT2232 device git-svn-id: svn://svn.berlios.de/openocd/trunk@422 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 mifi * : - updated svn:eol-style prop to native for AT91R40008 (Thanks to Spen for the hint) git-svn-id: svn://svn.berlios.de/openocd/trunk@420 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 ntfreak * : - updated svn:eol-style prop to native git-svn-id: svn://svn.berlios.de/openocd/trunk@418 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 oharboe * : improve DCC bulk write performance by using jtag_add_shift() + tweaked embedded ICE communication. git-svn-id: svn://svn.berlios.de/openocd/trunk@416 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 oharboe * : Now uses jtag_add_shift() via embeddedice_write_reg_inner(). git-svn-id: svn://svn.berlios.de/openocd/trunk@414 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 oharboe * : log_remove_callback git-svn-id: svn://svn.berlios.de/openocd/trunk@412 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 mifi * : - added str912 test example, and test result git-svn-id: svn://svn.berlios.de/openocd/trunk@410 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 mifi * : - added test result for str710, and test description git-svn-id: svn://svn.berlios.de/openocd/trunk@408 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-03-01 mifi * : - added STR710 example which I used for Eclipse debug testing git-svn-id: svn://svn.berlios.de/openocd/trunk@406 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : added an #error in case anybody tries to compile that broken code. git-svn-id: svn://svn.berlios.de/openocd/trunk@404 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 ntfreak * : - fix bug with emulated cortex_m3 dcc channel git-svn-id: svn://svn.berlios.de/openocd/trunk@402 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : Tweaked logging output. TODO is retired(hopelessly out of date). git-svn-id: svn://svn.berlios.de/openocd/trunk@400 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : Pavel Chromy fix: the guess-rev.sh scripts to retrieve SVN revision returns the result including new line causing PKGBLDREV macro to not work git-svn-id: svn://svn.berlios.de/openocd/trunk@398 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : Uwe Hermann: Small cosmetic fixes in the license header to make them all look the same, fix some typos, update README. git-svn-id: svn://svn.berlios.de/openocd/trunk@396 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : Uwe Hermann: mproves the manpage text a bit and adds the missing -s and -c options. git-svn-id: svn://svn.berlios.de/openocd/trunk@394 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : formatting fixes from Pavel Chromy git-svn-id: svn://svn.berlios.de/openocd/trunk@392 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : - image.c and fileio.c now uses logging to propagate error strings. More precise, less code. - removed unused code in fileio.c - Windows should now find debug_handler.bin git-svn-id: svn://svn.berlios.de/openocd/trunk@390 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : do not write single chars to log file. git-svn-id: svn://svn.berlios.de/openocd/trunk@388 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : Summary: passing of variable argument list reduced, strings sent to logging are now formatted just once - more efficient. As a result, ugly string malloc+strcpy are not needed anymore. git-svn-id: svn://svn.berlios.de/openocd/trunk@386 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-29 oharboe * : Michael Bruck: - fix indentation of multi-level commands - make help command work with multi-level commands git-svn-id: svn://svn.berlios.de/openocd/trunk@384 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : fixed newline gaffe in OUTPUT() git-svn-id: svn://svn.berlios.de/openocd/trunk@382 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : Pavel Chromy spotted a leak git-svn-id: svn://svn.berlios.de/openocd/trunk@380 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : numerous fixes from Uwe Hermann git-svn-id: svn://svn.berlios.de/openocd/trunk@378 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : Pavel Chromy - cleanup error messages git-svn-id: svn://svn.berlios.de/openocd/trunk@376 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : Pavel Chromy cleaned up checks for halted, error messages, etc. git-svn-id: svn://svn.berlios.de/openocd/trunk@374 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : fix from Pavel Chromy this patch fixes an issue in jtag_init - shall not reset jtag to NULL. This causes jtag interface (USB device) not to be closed properly if jtag chain validation fails. Once the underlaying jtag interface is initialized, jtag pointer shall be left untouched, even in case of an error, so that proper cleanup can be done, see exit_handler in openocd.c git-svn-id: svn://svn.berlios.de/openocd/trunk@372 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : code to be used in upcoming minidriver work. git-svn-id: svn://svn.berlios.de/openocd/trunk@370 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : fix copyright. git-svn-id: svn://svn.berlios.de/openocd/trunk@368 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : lingering change for eCos flash driver git-svn-id: svn://svn.berlios.de/openocd/trunk@366 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : - Added TARGET_REQ_DEBUGCHAR target_request debugmsg. This provides a better impeadance match for debug output char fn's, e.g. eCos. - Line endings are now added at the caller site of command_print*(). command_print() still adds a line ending - echo of commands in scripts are now available via debug_level instead of forced echo - Added a USER_SAMELINE() for printing without a lineend. git-svn-id: svn://svn.berlios.de/openocd/trunk@364 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 drath * : - fix line-endings git-svn-id: svn://svn.berlios.de/openocd/trunk@362 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-28 oharboe * : Uwe Hermann fixed some warnings. git-svn-id: svn://svn.berlios.de/openocd/trunk@360 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-27 drath * : - fix typo in ep93xx jtag driver to allow OpenOCD compilation on ARM (thanks to Uwe Hermann for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@358 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-27 oharboe * : Nicolas Pitre listed some more devices. git-svn-id: svn://svn.berlios.de/openocd/trunk@356 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-26 ntfreak * : - code reformat (Thanks Pavel Chromy) git-svn-id: svn://svn.berlios.de/openocd/trunk@354 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-26 oharboe * : oopss.. another jtag minidriver reset gaffe. git-svn-id: svn://svn.berlios.de/openocd/trunk@352 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-26 oharboe * : Next step in the JTAG minidriver. This should be fairly close to the final thing, but I'm not calling it "done" quite yet. git-svn-id: svn://svn.berlios.de/openocd/trunk@350 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 ntfreak * : - remove build warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@348 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 oharboe * : Pavel Chromy - multiple log listeners - added OUTPUT() to replace printf - fix formatting git-svn-id: svn://svn.berlios.de/openocd/trunk@346 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 oharboe * : Pavel Chromy style fixes. git-svn-id: svn://svn.berlios.de/openocd/trunk@344 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 oharboe * : - Fix target library path problem w/Windows git-svn-id: svn://svn.berlios.de/openocd/trunk@342 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 oharboe * : committed bugfix from Michael Bruck git-svn-id: svn://svn.berlios.de/openocd/trunk@340 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 oharboe * : - using ERROR_COMMAND_SYNTAX_ERROR to print syntax in a couple of places - some more flash cleanup of checking halted state - moved output handler into options.c - very slightly tweaked server.c to make it a bit more compatible with eCos - retired arch_state. Not quite sure how I managed to leave that out last time. git-svn-id: svn://svn.berlios.de/openocd/trunk@338 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-25 oharboe * : Michael Bruck spotted an omission in svn 322 git-svn-id: svn://svn.berlios.de/openocd/trunk@336 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-24 oharboe * : move options handling to separate file to better support embedded implementations of OpenOCD git-svn-id: svn://svn.berlios.de/openocd/trunk@334 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-24 oharboe * : - fixed target->type->poll() return value - added arch_state to show status of currently selected target - simplified target->type->arch_state() api. - clean up telnet output a bit - fixed GDB output for arch_state - removed a couple of unecessary exit()'s - cleaned up error propagation a bit in a few places git-svn-id: svn://svn.berlios.de/openocd/trunk@332 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-24 oharboe * : debug_level 3 now prints seconds since start of openocd git-svn-id: svn://svn.berlios.de/openocd/trunk@330 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-24 oharboe * : sharpend JTAG docs w.r.t. hw fifo implementations and retired jtag_cancel_queue() which is inheritely incompatible with a hw fifo concept. git-svn-id: svn://svn.berlios.de/openocd/trunk@328 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-24 oharboe * : cosmetic fixes to debug output + phasing out printf() in favour of logging system. From Pavel Chromy git-svn-id: svn://svn.berlios.de/openocd/trunk@326 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-23 drath * : - fix for feroceon CP15 register access (thanks to Niolas Pitre for this patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@324 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-23 mifi * : - added a test document as a starting point - corrected URL information for the repro git-svn-id: svn://svn.berlios.de/openocd/trunk@322 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-22 mifi * : - added patch to remove count and time information from log_printf in case of debug_level is not set to LOG_DEBUG git-svn-id: svn://svn.berlios.de/openocd/trunk@320 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-22 vpalatin * : - fix read/write size for small unaligned accesses (thanks Michael Bruck) git-svn-id: svn://svn.berlios.de/openocd/trunk@318 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-22 mifi * : - added patch to make single-stepping more resilient (thanks to Nicolas Pitre for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@316 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-20 ntfreak * : - fix bug when using full paths to config files. Thanks Ted Roth git-svn-id: svn://svn.berlios.de/openocd/trunk@314 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-19 ntfreak * : - add search paths via new arg -s (-search). Thanks Ted Roth - updated docs for new command git-svn-id: svn://svn.berlios.de/openocd/trunk@312 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-19 ntfreak * : - Fixed bug in pathmove for XScale - added virtual address to working_area. - Improved error messages in a number of places - Added ERROR_COMMAND_SYNTAX_ERROR that commands can return to have syntax printed - Added help for some config commands - Added verification of sw breakpoints with ERROR() message - Removed a couple of exit()'s and replaced with error message - cosmetic fix to armv4_5.c, easier to read - added polymorphic(with default) virt2phys and mmu enable query function to target.h - added virt2phys command that uses target->type->virt2phys() fn Thanks to Øyvind Harboe git-svn-id: svn://svn.berlios.de/openocd/trunk@310 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-18 drath * : - Fix problems with stuck telnet sessions. Thanks to Øyvind Harboe for this patch. git-svn-id: svn://svn.berlios.de/openocd/trunk@308 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-18 ntfreak * : - arg list now correctly released on error. Thanks Øyvind Harboe git-svn-id: svn://svn.berlios.de/openocd/trunk@306 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-18 ntfreak * : - removed a raft of unecessary exit() calls. Issuing a reset will solve these ails. - now uses jtag_state_pathmove() instead of making assumptions about implementation of jtag_statemove(). - fixed a couple of bugs in timeout handling - removed megabytes of log output when communication is failing. - sleep is now 300ms as documented instead of 3000ms - fixed error path of bulk write - debug_handler can now be issued during normal operation + has help text. Thanks Øyvind Harboe git-svn-id: svn://svn.berlios.de/openocd/trunk@304 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-18 ntfreak * : - Added a "User:" debug level. These are messages that are intended for the user and are part of normal operation. - Faster DEBUG/INFO() when they are disabled - target_read/write_buffer() now uses 16 and 32 bit access for single word aligned requests. Other requests are serviced as quickly as possible. - *much* faster read/write GDB packets, removing timeout problems. - GDB read/write packets w/single word aligned 32/16 bit access now use 32/16 bit word access. - working area can now be changed on the fly. Provides a way to move working area about as MMU is enabled/disabled. - cleaned up error messages for verify_image. Thanks Øyvind Harboe git-svn-id: svn://svn.berlios.de/openocd/trunk@302 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-16 ntfreak * : - solve lots of problems with stuck GDB connections, making it impossible to connect to GDB, handle timeout of acknowledgement, etc. - "monitor halt/resume" now works correctly - "monitor sleep 10000" no longer makes the GDB protocol lock up. There is an error message and the protocol recovers nicely afterwards. - it's now possible to connect to a target which needs a reset before halt works. - handle failed memory access more gracefully. Connection is now closed instead of OpenOCD quitting. - *much* improved handling of 2 second timeout on memory read packets. Especially important w/mouseover evaluation of variables in Eclipse. - fixed memory leak upon failed memory packet reply. - 'O' packets w/progress info is no longer sent out randomly. - faster packet reply code. - Thanks to Øyvind Harboe for this patch git-svn-id: svn://svn.berlios.de/openocd/trunk@300 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-16 ntfreak * : - fix issue with telnet prompt while gdb running git-svn-id: svn://svn.berlios.de/openocd/trunk@298 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-14 ntfreak * : - fix programming issue with lpc2101/2 git-svn-id: svn://svn.berlios.de/openocd/trunk@296 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-14 ntfreak * : - added check for revA silicon in stm32 flash driver git-svn-id: svn://svn.berlios.de/openocd/trunk@294 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-12 ntfreak * : - add autoprobe support to flash info command - auto_erase can now be called from script/config file git-svn-id: svn://svn.berlios.de/openocd/trunk@292 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-11 ntfreak * : - telnet prompt behaves correctly for new synchronous halt/resume/reset commands - removed unused variables in tms470.c git-svn-id: svn://svn.berlios.de/openocd/trunk@290 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-10 ntfreak * : - stm32 flash driver now checks for correct target git-svn-id: svn://svn.berlios.de/openocd/trunk@288 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-10 mifi * : - added patch to change pathmove handling https://lists.berlios.de/pipermail/openocd-development/2008-January/000678.html(thanks to Øyvind for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@286 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-07 ntfreak * : - added synchronous reset patch, Thanks Øyvind Harboe - added target_init_reset which calls target_process_reset after all drivers have been initialised git-svn-id: svn://svn.berlios.de/openocd/trunk@284 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-06 mifi * : - added patch to solve problem with AT91SAM9260 (dirty register) (thanks to Øyvind Harboe for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@282 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-02-04 ntfreak * : Added patch to stop SEGFAULT with missing jtag config lines. Thanks Øyvind Harboe https://lists.berlios.de/pipermail/openocd-development/2008-January/000731.htmlgit-svn-id: svn://svn.berlios.de/openocd/trunk@280 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-27 mifi * : - added autoprobe functionality - corrected blocksize handling from GDB "info mem" command (thanks to Øyvind and Spen for these patches) git-svn-id: svn://svn.berlios.de/openocd/trunk@278 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-24 mifi * : - added patch to check some malloc problems. (thanks to Øyvind Harboe for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@276 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-23 mifi * : - added patch to fix crash in load_image on corrupt elf file or out of memory. (thanks to Øyvind Harboe for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@274 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-21 bodylove * : - Added example config and startup-script for a XScale IXP42x system git-svn-id: svn://svn.berlios.de/openocd/trunk@272 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-21 bodylove * : - Synced code with branch git-svn-id: svn://svn.berlios.de/openocd/trunk@270 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-21 bodylove * : - Eleminated leading tabs/white space git-svn-id: svn://svn.berlios.de/openocd/trunk@267 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-21 ntfreak * : - updated docs for cfi command, added missing ft2232_layout names git-svn-id: svn://svn.berlios.de/openocd/trunk@261 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-17 ntfreak * : - add support for cortex_m3 target_request debugmsgs - target request handler disabled by default until a target has been registered git-svn-id: svn://svn.berlios.de/openocd/trunk@259 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-17 drath * : - fixed 'make distcheck' (thanks to Theodore A. Roth for this patch git-svn-id: svn://svn.berlios.de/openocd/trunk@257 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-14 drath * : - use correct SCAN_N check value (disabled by default) - add Øyvind Harboe to list of AUTHORS (thanks a lot to Øyvind for his hard work) git-svn-id: svn://svn.berlios.de/openocd/trunk@255 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-10 ntfreak * : - fix gdb packet retransmission omission git-svn-id: svn://svn.berlios.de/openocd/trunk@253 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-10 ntfreak * : - added faster gdb packet handling (thanks to oyvind harboe for the patch) - code reformat git-svn-id: svn://svn.berlios.de/openocd/trunk@251 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2008-01-09 ntfreak * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@249 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-29 ntfreak * : - add support for extended gdb packet R (restart), requires gdb to be started with target extended-remote git-svn-id: svn://svn.berlios.de/openocd/trunk@247 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-21 mifi * : - corrected working_area of LPC2129 script - added LPC2148 script - corrected size of the working_area of the LPC2294 script git-svn-id: svn://svn.berlios.de/openocd/trunk@245 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-20 ntfreak * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@243 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-18 ntfreak * : - added patch by Øyvind Harboe to Intel Hex Start Segment Address Record (Type 3) - added support to parse Motorola Record Count (S5) git-svn-id: svn://svn.berlios.de/openocd/trunk@241 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-17 mifi * : - only some cosmetic changes, convert \r\n to unix git-svn-id: svn://svn.berlios.de/openocd/trunk@239 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-17 mifi * : - added patch to corrected argument of image_open in handle_flash_write_image_command (thanks to oyvind Harboe for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@237 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-16 mifi * : - 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) git-svn-id: svn://svn.berlios.de/openocd/trunk@235 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-16 mifi * : - initialize num_sectors and sectors in handle_flash_bank_command. (thanks to oyvind Harboe for this hint) git-svn-id: svn://svn.berlios.de/openocd/trunk@233 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-14 mifi * : - added the patch CFI-BE-Fixes-Blockwrite-Support.diff (thanks to Carsten Schlote for the patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@231 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-14 mifi * : 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. git-svn-id: svn://svn.berlios.de/openocd/trunk@229 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-14 mifi * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@227 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-10 bodylove * : - Stripped trailing spaces (patch preparation) git-svn-id: svn://svn.berlios.de/openocd/trunk@225 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-10 bodylove * : - Added PKGLIBDIR define to C options. Allows to store native code fragments at a central place git-svn-id: svn://svn.berlios.de/openocd/trunk@223 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-10 bodylove * : Changed openocd version info creation to be more useful. - Now displays subversion revision and svn URL git-svn-id: svn://svn.berlios.de/openocd/trunk@220 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-12-05 bodylove * : 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@217 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-11-23 ntfreak * : - added support for Hitex STM32 Performance Stick - added str9 and stm32 scripts to docs git-svn-id: svn://svn.berlios.de/openocd/trunk@213 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-10-26 ntfreak * : - corrected str91x bank1 programming issues - str91x protect_check fixed - bank number now correctly given to str91x flash_config command git-svn-id: svn://svn.berlios.de/openocd/trunk@211 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-10-08 ntfreak * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@209 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-09-10 mlu * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@206 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-09-05 drath * : 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) git-svn-id: svn://svn.berlios.de/openocd/trunk@204 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-21 drath * : - correctly initialize start address for XScale trace buffer decodes in fill-once mode git-svn-id: svn://svn.berlios.de/openocd/trunk@202 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-20 mlu * : - Support for AT91SAM7xx512 chips git-svn-id: svn://svn.berlios.de/openocd/trunk@200 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-17 drath * : - renamed "xscale dump_trace_buffer" to "xscale dump_trace" and added code for it git-svn-id: svn://svn.berlios.de/openocd/trunk@198 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-16 drath * : - fixed several bugs in flash writing code (thanks to Pavel Chromy) git-svn-id: svn://svn.berlios.de/openocd/trunk@196 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-14 drath * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@194 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-10 drath * : - bumped version information git-svn-id: svn://svn.berlios.de/openocd/trunk@192 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-08-10 drath * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@190 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-07-31 drath * : - cleaned up cycle counting in ETM analysis - fixed broken OpenOCD version string git-svn-id: svn://svn.berlios.de/openocd/trunk@188 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-07-31 drath * : - 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) git-svn-id: svn://svn.berlios.de/openocd/trunk@186 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-07-26 ntfreak * : - corrected stm32x_handle_options_write_command, incorrect options printed - added prepare_reset_halt handler for cortex_m3 git-svn-id: svn://svn.berlios.de/openocd/trunk@184 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-07-26 drath * : - documentation fixes (thanks to Uwe Hermann) - bootstrapping changes to accomodate packaging (thanks to Uwe Hermann) git-svn-id: svn://svn.berlios.de/openocd/trunk@182 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-07-15 drath * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@180 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-06-24 ntfreak * : - 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) git-svn-id: svn://svn.berlios.de/openocd/trunk@177 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-06-16 ntfreak * : - str9xpec driver was using stricmp, changed to strcmp for posix compatibility git-svn-id: svn://svn.berlios.de/openocd/trunk@175 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-06-15 drath * : - added support for pseudo image type "mem", currently only used for etm analysis: "etm image mem" git-svn-id: svn://svn.berlios.de/openocd/trunk@173 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-06-14 drath * : - added stellaris.[ch] missing from Cortex-M3 merge git-svn-id: svn://svn.berlios.de/openocd/trunk@171 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-06-14 drath * : - 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) git-svn-id: svn://svn.berlios.de/openocd/trunk@169 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-05-30 drath * : - reworked image handling to support multiple sections (tested with ihex file containing gaps) This checkin is still experimental, not recommended for general use git-svn-id: svn://svn.berlios.de/openocd/trunk@159 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-05-29 drath * : - add missing image handling files git-svn-id: svn://svn.berlios.de/openocd/trunk@156 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-05-10 ntfreak * : -- corrected embedded ice definitions -- changed arm966e to use standard arm9_7 reset handling git-svn-id: svn://svn.berlios.de/openocd/trunk@146 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-04-28 ntfreak * : - added support for Hitex comstick. git-svn-id: svn://svn.berlios.de/openocd/trunk@144 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-04-25 drath * : - added support for error handlers to JTAG scan commands (jtag_[plain_][ir|dr]_scan) - catch apparently broken JTAG IR scan after ARM926EJ-S CP15 operations - added "arm7_9 dump_etb" command git-svn-id: svn://svn.berlios.de/openocd/trunk@142 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-04-16 drath * : - allow multiple USB vendor and product ids when searching for connected FT2232 based JTAG interfaces (thanks to Werner Almesberger for this patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@140 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-04-11 drath * : - 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) git-svn-id: svn://svn.berlios.de/openocd/trunk@138 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-03-29 drath * : - added "arm9tdmi vector_catch ['all'|'none'|'vec1 [vec2 [...]]']" command - added missing arm926ej-s cp15 patch (thanks Vincent Palatin) git-svn-id: svn://svn.berlios.de/openocd/trunk@136 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-03-26 drath * : - 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 git-svn-id: svn://svn.berlios.de/openocd/trunk@134 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-03-15 drath * : - 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
['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 ' configuration command to enable access to the ETM registers git-svn-id: svn://svn.berlios.de/openocd/trunk@132 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-02-03 drath * : - add missing parentheses around macro parameters (thanks to Matthias Bauch for noticing this bug and providing a fix) git-svn-id: svn://svn.berlios.de/openocd/trunk@130 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-01-26 drath * : - disabled use of single-step bit for EmbeddedICE version 6 cores git-svn-id: svn://svn.berlios.de/openocd/trunk@128 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-01-25 drath * : - Added support for ARM926EJ-S based cores - Added contributors to AUTHORS file - Added link to Joern Kaipf's OOCD-Link git-svn-id: svn://svn.berlios.de/openocd/trunk@126 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2007-01-18 ntfreak * : - added support for ST flashlink cable git-svn-id: svn://svn.berlios.de/openocd/trunk@123 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-11-22 drath * : - checked in missing configure.in changes for GW16012 support git-svn-id: svn://svn.berlios.de/openocd/trunk@117 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-11-07 drath * : - added support for the oocd-link (http://www.joernonline.de/dw/doku.php?id=en:projects:oocdlink) - fixed breakpoint handling (this changes the target_t interface) git-svn-id: svn://svn.berlios.de/openocd/trunk@113 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-10-23 drath * : - several small fixes (thanks to Magnus Lundin and Spencer Oliver) - added support for using Luminary Micro development board 'evb_lm3s811' as a JTAG interface (thanks to Magnus Lundin) git-svn-id: svn://svn.berlios.de/openocd/trunk@106 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-10-12 drath * : - allow FT2232 devices to be opened by serial number instead of device description ('ft2232_serial ' command) - redirect output from target event scripts (currently only reset) to the daemon output (INFO:) - some minor fixes and enhancements git-svn-id: svn://svn.berlios.de/openocd/trunk@103 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-10-03 drath * : - fixed regression in gdb_server.c (Thanks to Michael Fischer for finding these bugs) git-svn-id: svn://svn.berlios.de/openocd/trunk@101 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-09-12 drath * : - allow writes to second flash bank on STR71x devices (cleaned up sector list building) - cleaned up str7x flash erase and protect code (use two accesses to erase sectors in both banks) git-svn-id: svn://svn.berlios.de/openocd/trunk@98 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-09-07 drath * : - free working area used to store flash write buffer git-svn-id: svn://svn.berlios.de/openocd/trunk@96 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-09-04 drath * : - added debug output for D/I FSR and FAR (arm920t) - fixed bug that caused CPSR to be corrupted in Thumb mode git-svn-id: svn://svn.berlios.de/openocd/trunk@93 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-08-31 drath * : - added missing AT91RM9200 files - bumped OpenOCD version date git-svn-id: svn://svn.berlios.de/openocd/trunk@91 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-08-20 drath * : - made bp command more verbose - fixed bug that could result in register corruption on arm920t targets git-svn-id: svn://svn.berlios.de/openocd/trunk@89 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-08-17 drath * : - renamed jtag_interface_t.support_statemove to jtag_interface_t.support_pathmove (it is used to indicate jtag_add_pathmove support) - fixed small bug in str7x.c that printed an address instead of the target number in an error message - added support for Olimex ARM-USB-OCD. The new ft2232 layout is called "olimex-jtag" git-svn-id: svn://svn.berlios.de/openocd/trunk@87 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-08-14 drath * : - updated configuration examples, installation instructions and README (including list of supported JTAG interfaces) git-svn-id: svn://svn.berlios.de/openocd/trunk@85 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-08-11 drath * : - added support for FreeBSD ppi (parallel port access similar to /dev/parport on linux) (thanks to Darius for this patch) - unified 'ftd2xx' and 'ftdi2232' into a single interface 'ft2232'. The library used to access the hardware is choosen during configure with --enable-ft2232_ftd2xx or --enable-ft2232-libftdi. git-svn-id: svn://svn.berlios.de/openocd/trunk@83 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-08-06 drath * : - fixed a minor problem with the GDB server that could drop the first packet (non-fatal) - fixed some small memory leaks (thanks to Spencer Oliver) - verify chip- and buswidth of cfi flash configurations - added support for ARM966E based systems (tested only with ST micro STR9, thanks to Spencer Oliver) git-svn-id: svn://svn.berlios.de/openocd/trunk@81 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-07-30 drath * : - added configurable delays after reset lines get deasserted. useful if reset circuitry keeps lines asserted for too long. - additional debug output when opening the parallel port - fixed counting of available arm7/9 watchpoint units - 'flash write' now displays elapsed time git-svn-id: svn://svn.berlios.de/openocd/trunk@79 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-06-25 drath * : - fixed bug in Thumb sw breakpoint handling (thanks to Spen for this patch) - fixed handling of services linked list (thanks to Spen for this patch) git-svn-id: svn://svn.berlios.de/openocd/trunk@76 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-06-25 drath * : - added "version" command (patch from John Hartman, thanks) - fixed bug in telnet history handling (patch from John Hartman, thanks) - OpenOCD version has been changed from SVN revision number to date/time git-svn-id: svn://svn.berlios.de/openocd/trunk@74 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-06-16 drath * : - keep additional information for decoded instructions git-svn-id: svn://svn.berlios.de/openocd/trunk@69 b42882b7-edfa-0310-969c-e2dbd0fdcd60 2006-06-05 drath * : - fixed some spelling errors (thanks to Andrew Dyer) git-svn-id: svn://svn.berlios.de/openocd/trunk@67 b42882b7-edfa-0310-969c-e2dbd0fdcd60