- 30 Mar, 2012 4 commits
-
-
Salvador Arroyo authored
Change-Id: I496cb745fb1eb5c9159471838013b8d19418f5c0 Signed-off-by:
Salvador Arroyo <sarroyofdez@yahoo.es> Reviewed-on: http://openocd.zylin.com/500 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Chris Morgan authored
Signed-off-by:
Chris Morgan <chmorgan@gmail.com> Change-Id: I082b0d3092c7f3b2ee6b68af64d48c78b31f1dbf Reviewed-on: http://openocd.zylin.com/510 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Spencer Oliver authored
Currently if we have multiple transport's defined we receive an warning similar to: must select a transport. allow transport 'jtag' allow transport 'swd This removes that warning and only prints this info if transport_init fails. Change-Id: I87126390f234bc2f705e1f150a0dcc110dcab151 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/532 Tested-by: jenkins
-
Salvador authored
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 <sarroyofdez@yahoo.es> Reviewed-on: http://openocd.zylin.com/527 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
- 19 Mar, 2012 5 commits
-
-
Mathias K authored
Add a warn message to inform the user that something is wrong with the flash settings or command parameters. Change-Id: Ia55868b2abf2a17845e51620b0f29b2809d841c2 Signed-off-by:
Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/280 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
This patch let openocd running and only close the gdb connection on error. Change-Id: Ifb88e16834b51207cc4c82210eab904ed8d30b71 Signed-off-by:
Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/523 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
This patch fix the compare for the list size and the register index. Change-Id: I36d5e078f57d2a9f7823cfdf0d537762e00f6929 Signed-off-by:
Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/516 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Paul Fertser authored
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 <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/521 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Paul Fertser authored
When gdb loads an elf file of a newer or older version of the firmware being debugged, or when the firmware is not running yet, there's a high probability of FreeRTOS variables to be read incorrectly, thus leading to an attempt to allocate an enourmous amount of memory. Without this check OpenOCD simply crashes and that's mad confusing. Change-Id: I404a072e886d2d47d9d942cfaea8417eb8bd4a5d Signed-off-by:
Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/520 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
- 14 Mar, 2012 9 commits
-
-
Alexandre Pereira da Silva authored
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 <aletes.xgr@gmail.com> Reviewed-on: http://openocd.zylin.com/483 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
This patch checks the received register length with the local configured register length and disconnect on a length missmatch. Change-Id: I6b112c6b55a9ffb4526f582a384ffa91dc8b792f Signed-off-by:
Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/517 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
Signed-off-by:
Mathias K <kesmtp@freenet.de> Change-Id: I0bfad091bd8adabd949fc0a74ef3a08a514eb307 Reviewed-on: http://openocd.zylin.com/519 Reviewed-by:
Peter Stuge <peter@stuge.se> Tested-by: jenkins
-
Mathias K authored
This patch add floating point register read/write functionality through the SCS debug interface. Change-Id: Id20e109dd7cccba00671d55ca8aabeb4936cceb9 Signed-off-by:
Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/512 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
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 <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/511 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
This patch fix the slow flash write issue on pflash only devices. The Family Reference Manual says: For devices with FlexNVM: FlexRAM For devices with program flash only: Programming acceleration RAM So the acceleration RAM is available for the flash section command on this device. Change-Id: If6541a23a4457c5ed8858848a145f35cac63138b Signed-off-by:
Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/509 Tested-by: jenkins Reviewed-by:
Tomas Frydrych <tf+openocd@r-finger.com> Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Mathias K authored
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 <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/506 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Drasko DRASKOVIC authored
Change-Id: I9aff8fb3ac703b50194088dd4e68cec8f9bb2ada Signed-off-by:
Drasko DRASKOVIC <drasko.draskovic@gmail.com> Reviewed-on: http://openocd.zylin.com/513 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Spencer Oliver authored
Change-Id: Ibe5b6b0efefc7cfc75d789eb7e9c7ee239526ae2 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/508 Tested-by: jenkins
-
- 13 Mar, 2012 5 commits
-
-
Øyvind Harboe authored
Change-Id: Iff7943eb9da3f41dcc45492acd0f36cf63b3497f Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/503 Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com> Tested-by: jenkins
-
Jan Dakinevich authored
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 <jan.dakinevich@gmail.com> Reviewed-on: http://openocd.zylin.com/492 Tested-by: jenkins Reviewed-by:
Tomas Frydrych <tf+openocd@r-finger.com> Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Olivier Schonken authored
Atmel introduced 7 new Cortex-M3 processors on 2012-02-28 SAM3X4C - 256KB flash SAM3X4E - 256KB flash SAM3X8C - 512KB flash SAM3X8E - 512KB flash SAM3X8H (Only on dev-kit - not in production...) - 512KB flash SAM3A4C - 256KB flash SAM3A8C - 256KB flash The SAM3X/A processors still suffer from the "6 waitstates needed to program device" errata. The CIDR address for the SAM3X/A processors are different from the other SAM3 processors. Unfortunately, the chip identification register is not at a constant address across all of the SAM3 series'. As a consequence, a simple heuristic is used to find where it's at... If the contents at the first address is zero, then we know that the second address is where the chip id register is. We can deduce this because for those SAM's that have the chip id @ 0x400e0940, the first address, 0x400e0740, is located in the memory map of the Power Management Controller (PMC). Furthermore, the address is not used by the PMC. So when read, the memory controller returns zero. Another interesting change is the flash bank address for flash bank 1. It is not fixed at 0x00100000 like the Sam3U. Bank 1 of the at91sam3a/x series starts at 0x00080000 + half the total flash size. Thus for the 256KB devices Bank 1 is located at 0x000A0000, and for the 512KB devices Bank 1 is located at 0x000C0000. The configuration files for the SAM3X/A processors will follow Change-Id: I6c3a707c00e05d993a2ad1d5a423f23b37ffd553 Signed-off-by:
Olivier Schonken <olivier.schonken@gmail.com> Reviewed-on: http://openocd.zylin.com/505 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Spencer Oliver authored
Change-Id: I1dfe134e2c7694fc978d14b4b21bdf9c82ca4b16 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/507 Tested-by: jenkins
-
Spencer Oliver authored
arm7_9_prepare_reset_halt is long since gone and the functionality is implemented in the target's assert_reset handler. Change-Id: Ib03c730cb39d68e5e3bb42f92af13daf8074e4e2 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/515 Tested-by: jenkins Reviewed-by:
Peter Stuge <peter@stuge.se>
-
- 11 Mar, 2012 2 commits
-
-
Øyvind Harboe authored
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 <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/502 Tested-by: jenkins Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com>
-
Øyvind Harboe authored
Change-Id: If29b0efdc326ee1ce4c07ec9d8777744d674f367 Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/490 Tested-by: jenkins Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com>
-
- 06 Mar, 2012 8 commits
-
-
Szymon Modzelewski authored
Change-Id: I163de2c1bd962e7ea9ca6c741c1c62224c210677 Signed-off-by:
Szymon Modzelewski <szmodzelewski@gmail.com> Reviewed-on: http://openocd.zylin.com/486 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Fredrik Hederstierna authored
Change-Id: Ifde8783b27c64e4a4bbea180cfa2c86f6a9fe49a Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/496 Tested-by: jenkins Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com>
-
Spencer Oliver authored
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 <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/499 Tested-by: jenkins Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com>
-
Jim Norris authored
board with the NXP LPC4350 processor. Change-Id: I0843e96af9ca05d3e598e2e16eb19fc0581ab46d Signed-off-by:
Jim Norris <u17263@att.net> Reviewed-on: http://openocd.zylin.com/501 Tested-by: jenkins Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com> Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Attila Kinali authored
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 <attila@kinali.ch> Reviewed-on: http://openocd.zylin.com/495 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Attila Kinali authored
Change-Id: Ie2177487d4315219eb364db360cb7f88d2720783 Signed-off-by:
Attila Kinali <attila@kinali.ch> Reviewed-on: http://openocd.zylin.com/494 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Attila Kinali authored
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 <attila@kinali.ch> Reviewed-on: http://openocd.zylin.com/493 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Jaap de Jong authored
Change-Id: I596cbac3439456fcb02111caee6e8c290c12a6d5 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/504 Reviewed-by:
Peter Stuge <peter@stuge.se> Tested-by: jenkins
-
- 29 Feb, 2012 7 commits
-
-
Szymon Modzelewski authored
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 <szmodzelewski@gmail.com> Reviewed-on: http://openocd.zylin.com/498 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Spencer Oliver authored
I committed in the wrong order This reverts commit 79230a8e3c5b85601fca730dfc09ecc52e693afa Change-Id: Iace872ac4844891f4f38fca87448a2ebd9f17593 Reviewed-on: http://openocd.zylin.com/497 Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk> Tested-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Szymon Modzelewski authored
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 <szmodzelewski@gmail.com> Reviewed-on: http://openocd.zylin.com/477 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Attila Kinali authored
The assert introduced in 00c86483 checks whether the programming offset equals to page_size of the flash, while it wants to check whether the offset is a multiple of the page_size. Change-Id: I794d021951a28c1cc520b5eea5d500f097721b06 Signed-off-by:
Attila Kinali <attila@kinali.ch> Reviewed-on: http://openocd.zylin.com/482 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by:
Alexandre Pereira da Silva <aletes.xgr@gmail.com>
-
Spencer Oliver authored
Change-Id: Ieed9de4b078e1ebf659054a758b4f69acdf5b83e Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/466 Tested-by: jenkins
-
Spencer Oliver authored
Currently stm32lx flash driver will remove the readout protection if set during a probe. This may not be what the user wants, so let them decide. Change-Id: I8575e3b339b10a4f7bac57cca9586dcab513d347 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/465 Tested-by: jenkins
-
Szymon Modzelewski authored
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 <szmodzelewski@gmail.com> Reviewed-on: http://openocd.zylin.com/478 Tested-by: jenkins Reviewed-by:
Mathias Küster <kesmtp@freenet.de> Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-