aboutsummaryrefslogtreecommitdiff
path: root/tcl/target
AgeCommit message (Collapse)AuthorFilesLines
2014-10-06cfg: remove incorrect execute permissionsSpencer Oliver1-0/+0
Change-Id: I0ba9dfdf876bc99df4e2d1f1f3bc0c9ccc6c98c2 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2333
2014-10-06stm32: add L0xx CPUTAPIDRémi PRUD'HOMME1-2/+3
Add CPUTAPID for stm32 L0xx mcu devices. Using -expected-id to add the new id with the id for L1xx devices. This for reduce the duplicated code. Change-Id: I48bd230884ecf38fa200c620b547bdf3b5f59132 Signed-off-by: Rémi PRUD'HOMME <prudhomme.remi@gmail.com> Reviewed-on: http://openocd.zylin.com/2315 Tested-by: jenkins Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-09-22target: Remove "-variant" argumentAndreas Fritiofson29-30/+30
Remove this underutilized feature. Despite the fact that a lot of configs specifies a arbitrary "variant", only the xscale target actually defines any. In the case of xscale, the use of -variant is dubious since 1) it's used as a redundant irlen specifier, 2) it carries a comment that it doesn't really need it and 3) only two xscale configs even specify it. If there's a future target that needs a variant set, a target specific option could be added when needed. Change-Id: I1ba25a946f0d80872cbd96ddcc48f92695c4ae20 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2283 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-09-08cfg: refactor lpc1xxx targets onto one base configVanya Sergeev20-431/+183
Since now auto-detection for flash size works nicely, there's no reason to keep numerous configs around. Change-Id: If0cbc37985abf17ef7c1f7d0688e76500fac228f Signed-off-by: Vanya Sergeev <vsergeev@gmail.com> Reviewed-on: http://openocd.zylin.com/1960 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-09-08tcl/target: add config for К1879ХБ1Я, a hybrid ARM11/DSP SoC by RC ModuleБурага Александр1-0/+35
This adds config to allow JTAG debugging of an ARM core of a modern hybrid SoC by Research Centre "Module" (http://www.module.ru/en/company/). К1879ХБ1Я is targetted at set-top boxes and other multimedia equipment, the official SDK is Linux-based. Change-Id: Ib2ae5784d25699f952682e66b025a3f677a76d5d Signed-off-by: Бурага Александр <dtp-avb@yandex.ru> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2272 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-09-08tcl/target/imx6: add yet another SJC tapidPaul Fertser1-1/+2
This is for mx6q TO1.1. Change-Id: Id6af2ed232fc19be9bf49eb6d2df0004c6668698 Reported-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2253 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-08-11nRF51822: Add workaround for PAN-16 where not all RAM blocks reliably ↵Angus Gratton1-0/+8
enabled on reset According to Nordic Semiconductor Product Anomaly Notice (document NRF51822-PAN), item 16, some revisions of nRF51822 sometimes reset without all RAM blocks enabled. This was noted on NRF51822-QFAA rev CA/C0, only 8KiB of memory was accessible. This patch turns on all RAM following a debugger induced reset (matches specified behaviour.) Change-Id: I4f8be4ec3d1271da7fe5bc9a084fdcb2968535bb Signed-off-by: Angus Gratton <gus@projectgus.com> Reviewed-on: http://openocd.zylin.com/2202 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-08-11tcl/target: added support for TI OMAP/AM 3505 and 3517Andrey Skvortsov1-1/+1
added TAPID for OMAP/AM 3505 and 3517. Tested on TAM3517 Twister board with AM3517 SoC. Change-Id: I78a3268a4adb18092c694a556538c99c9032f648 Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com> Reviewed-on: http://openocd.zylin.com/2127 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-08-11Allow transports to override the selected target (hla configs unification)Paul Fertser40-570/+334
This should allow to share common configs for both regular access and high-level adapters. Use the newly-added functionality in stlink and icdi drivers, amend the configs accordingly. Runtime-tested with a TI tm4c123g board. Change-Id: Ibb88266a4ca25f06f6c073e916c963f017447bad Signed-off-by: Paul Fertser <fercerpav@gmail.com> [gus@projectgus.com: context-specific deprecation warnings] Signed-off-by: Angus Gratton <gus@projectgus.com> [andrew.smirnov@gmail.com: additional nrf51.cfg mods] Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Tested-by: Andrey Skvortsov <andrej.skvortzov@gmail.com> Reviewed-on: http://openocd.zylin.com/1664 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-07-10tcl/target/stm32l: restore slow clock on resetPaul Fertser1-1/+4
Change-Id: I63eafaa38b188fe50c13ab966be44a3eaa2006b0 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2188 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-07-08cfg: Rename leftover cortex_a8 -> cortex_aAndreas Fritiofson2-2/+2
Change-Id: Id11d89ae2fb78854da4284afb7f14d8a892a2e49 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2197 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-06-28Auto-select JTAG transport when appropriatePaul Fertser1-0/+5
I looked through all the target configs after stripping comments and such from them with sed to see what jtag-specific commands can appear first, and it looks like all the meaningful combinations should be covered. Change-Id: I8d543407b7f4ac8aca7354ecd50e841c8a04d5f3 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2179 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-06-28cortex_m: Do additional initialization during resetAndrey Smirnov1-4/+0
SAM4L requires additional steps to be taken right after SYSRESETREQ is issued in order to function robustly: - CMSIS-DAP DAP driver needs to explicitly check for sticky bit errors since it is possible for adapter to perform successful write opration, report no errors and then, under the hood, do some other things that will result in sticky bit being set. - Debugger needs to wait for security system to finish intialization and assert CDBGPWRUPACK before proceeding This change is related to commit http://openocd.zylin.com/#/c/1995/ Change-Id: I741c95a809bfd60d930cec9482239e4796a62326 Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-on: http://openocd.zylin.com/2088 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com>
2014-06-28tcl: introduce using_(jtag|swd|hla) helpers and use them in reset handlerPaul Fertser12-24/+19
Barely tested with plain SWD transport. Change-Id: I48b59136bf4294ffed737dba01f1b30ef83aa86b Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2003 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-06-22tcl/target/fm3.cfg: use a CHIPNAME known by the flash driverPaul Fertser1-2/+2
fm3 flash driver needs to know which chip variant is used. This fixes "unknown fm3 variant: mb9bf500.cpu" error if the config is used as is. Change-Id: I500fcfb413f23ee246678cec5bd19d14139a28e2 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2160 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-06-22openrisc: add support for JTAG Serial PortFranck Jullien1-2/+4
Change-Id: I623a8c74bcca2edb5f996b69c02d73a6f67b7d34 Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Reviewed-on: http://openocd.zylin.com/2162 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-06-22tcl/target/am335x.cfg: Drop gdb-attach stanzaTom Rini1-6/+0
This isn't needed nor a recommended practice now, was a simple copy/paste from amdm37x.cfg anyhow. Change-Id: I064226dc859d7563cfad945b577279fc37448645 Signed-off-by: Tom Rini <trini@ti.com> Reviewed-on: http://openocd.zylin.com/2068 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-06-01tcl/target/kl25.cfg: add maximum speed specificationPaul Fertser1-0/+11
Maximum frequency wasn't tested on hardware but the docs seem to be quite explicit and do not mention any restrictions for that. Change-Id: Idcf58df5358d06525e683f07c76eedad8f0b292d Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2120 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-06-01tcl: add ASUS RT-N66U configPaul Fertser1-0/+7
CFI flashing verified with real hardware. RAM configuration wasn't attempted. Change-Id: I9185ab71430d799793befef708a15f62edba1663 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2153 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-05-16KS869x: add new targetYegor Yefremov1-0/+34
This patch adds Micrel's KS869x target. The configuration was taken from http://www.mmnt.net/db/0/0/www.micrel.com/ethernet/8695 - Micrel's FTP server i.e. their OpenOCD 7.0 package. The only change compared to the original file is the removal of reset configuration, as it belongs to the board configuration. Change-Id: Ic8509aa5fe5ce3166a3129e1c055280a3b2b9312 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Reviewed-on: http://openocd.zylin.com/2125 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
2014-05-10kinetis: Revise CPU un-securing codeAndrey Smirnov2-0/+16
Old version of the code had several problems, among them are: * Located in a generic ADI source file instead of some Kinetis specific location * Incorrect MCU detection code that would read generic ARM ID registers * Presence of SRST line was mandatory * There didn't seem to be any place where after SRST line assertion it would be de-asserted. * Reset was asserted after waiting for "Flash Controller Ready" bit to be set, which contradicts official programming guide AN4835 * Mass erase algorithm implemented by that code was very strange: ** After mass erase was initiated instead of just polling for the state of "Mass Erase Acknowledged" bit the code would repeatedly initiate mass erase AND poll the state of the "Mass Erase Acknowledged" ** Instead of just polling for the state of "Flash Mass Erase in Progress"(bit 0 in Control register) to wait for the end of the mass erase operation the code would: write 0 to Control register, read out Status register ignoring the result and then read Control register again and see if it is zero. * dap_syssec_kinetis_mdmap assumed that previously selected(before it was called) AP was 0. This commit moves all of the code to kinetis flash driver and introduces three new commands: o "kinetis mdm check_security" -- the intent of that function is to be used as 'examine-end' hook for any Kinetis target that has that kind of JTAG/SWD security mechanism. o "kinetis mdm mass_erase"" -- This function removes secure status from MCU be performing special version of flash mass erase. o "kinetis mdm test_securing" -- Function that allows to test securing fucntionality. All it does is erase the page with flash security settings thus making MCU 'secured'. New version of the code implements the algorithms specified in AN4835 "Production Flash Programming Best Practices for Kinetis K- and L-series MCUs", specifically sections 4.1.1 and 4.2.1. It also adds KL26 MCU to the list of devices for which this security check is performed. Implementing that algorithm also allowed to simplify mass command in kinetis driver, since we no longer need to write security bytes. The result that the old version of mass erase code can now be acheived using 'kinetis mdm mass_erase' Tested on accidentally locked FRDM-KL26Z with KL26 Kinetis MCU. Change-Id: Ic085195edfd963dda9d3d4d8acd1e40cc366b16b Signed-off-by: Andrey Smrinov <andrew.smirnov@gmail.com> Reviewed-on: http://openocd.zylin.com/2034 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-05-05generalplus: Add configuration file for General Plus GP326XXXA seriesAndrey Smirnov1-0/+94
Add configuration file for General Plus GP326XXXA series. Tested on GP326833A on GPC-1737B board. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Change-Id: I1ad0e22598b01317bbc823870a7a262e9192c595 Reviewed-on: http://openocd.zylin.com/2058 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-04-14cortex_a: fix endiannes issues on TI TMS570Seth LaForge1-0/+3
The TI TMS470 and TMS570 series of processors are BE-32 processors, despite BE-32 not being supported by ARM in the Cortex-R4 core. TI hacked in BE-32 support, which requires odd swizzling in OpenOCD to make memory reads and writes function correctly. In particular, without this change, OpenOCD word reads and writes had the bytes reversed, and halfword and byte packed reads were reading garbage. In my testing, this change fixes these problems. Change-Id: I21dd30f4b9003f20fcc85f674ab833407bb61f74 Signed-off-by: Seth LaForge <sethml@google.com> Reviewed-on: http://openocd.zylin.com/2064 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-04-14tcl: bcm6348 target config, BT HomeHub v1 board configLee Bowyer1-0/+9
Also add the board to the firmware recovery script. Change-Id: I4f9c895dae171df7249e3b1c0563b288518b9fe0 Signed-off-by: Lee Bowyer <lee@sodnpoo.com> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2097 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-03-29tcl/target: make milandr configs swd-compatiblePaul Fertser2-14/+23
Change-Id: Ibb34f0d7829b205341bcce511ffc2624bdfe2c75 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1962 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-03-29nrf51: Add UICR writing supportAndrey Smirnov1-2/+2
SoftDevice stack ihex binary, provided by Nordic expects being able to write data necessary for its correct operation at the adresses inside UICR. This patch exposes UICR region of flash as a second bank on the MCU to facilitate that. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Change-Id: Idbc140b8de027f60655f78043877b7c054eb06f9 Reviewed-on: http://openocd.zylin.com/2013 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-03-29tcl: add Zynq-7000 target and Zedboard board configsTim Sander1-0/+25
Change-Id: Ia7f2a57d1b32dda9936ad87e22635f7749ff3ce1 Signed-off-by: Tim Sander <tim@krieglstein.org> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2061 Tested-by: jenkins
2014-03-29cfg: add TI am43xx devicesFelipe Balbi1-0/+51
This adds support for the am43xx SoC and the AM437x GP EVM and AM438x ePOS EVM. Change-Id: I09cbb09072f38e0e08fdd520dedb6e67d45056be Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tom Rini <trini@ti.com> Reviewed-on: http://openocd.zylin.com/2047 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-03-17tcl: target: icepick: add icepick_d_tapenable procedureFelipe Balbi2-22/+25
instead of replicating icepick_d_tapenable in many of TI's newer platforms, we can move to icepick.cfg and just call it from board TCL configuration file. This is similar to the C but has a few changes we need to make. Change-Id: I0ab48005ccd66cd5b67b919fb5e3b462288f211d Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tom Rini <trini@ti.com> Reviewed-on: http://openocd.zylin.com/2030 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-03-17cfg: change default SAM4L cortex_m reset_configSpencer Oliver1-0/+3
From testing this target does not seem to support using SYSRESETREQ, change the default to the safe VECTRESET. This target also has other reset issues (srst not working) that will be addressed in another patch. Change-Id: Icfc78347dc71aa3a062ddea63190a818d7fbc760 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1995 Tested-by: jenkins Reviewed-by: Angus Gratton <gus@projectgus.com>
2014-03-17Make the Atmel SAM3 family SWD-awareJörg Wunsch1-13/+26
Atmel's SAM3 and SAM4 processor families are very close to each other in many respects. However, so far, only the SAM4 target script contained the magic to allow using SWD, while SAM3 was tied to JTAG only. This e.g. prevented the CMSIS-DAP driver from accessing SAM3 devices as it only uses SWD transport (by now). The patch pulls all the things from the SAM4 target script that are also applicable to SAM3 devices. With the patch, an Atmel CMSIS-DAP debugger (Atmel-ICE) was proven to be able to successfully attach to a SAM3S-EK evaluation kit. I also cross-checked that accessing through a SAM-ICE (Segger J-Link) still works with the patch. Change-Id: I20dafbff8e1e9f967da950e48a56205586eeef8d Signed-off-by: Jörg Wunsch <openocd@uriah.heep.sax.de> Reviewed-on: http://openocd.zylin.com/2046 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-03-09bcm281xx: Add bcm281xx SoC and bcm28155_ap boardTim Kryger1-0/+33
Add support for Broadcom's dual A9 mobile SoC and its reference board. Change-Id: Ia145b120043bddc89c44726066023154ae390788 Signed-off-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-on: http://openocd.zylin.com/1926 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-03-04Add support for the Atmel SAMG53Andrey Yurovsky1-0/+7
flash: at91sam4: add support for the SAMG53 family (this also covers the SAMG51). The SAMG5x parts have an EEFC (enhanced embedded flash controller) which seems to be identical to the EFC that the sam4 driver supports. Add a script for the Xplained Pro G53 board, this has the onboard CMSIS-DAP debugger and a SAMG53N19. Tested on this board and chip combination. Change-Id: I12af50402cd2069b3c7380d92e6fe54816d6c045 Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-on: http://openocd.zylin.com/1974 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-02-24nrf51: Implement the support for Nordic's nRF51 devicesAndrey Smirnov1-0/+70
Add support for Nordic's nRF51 chip series. Tested with nRF51822. Change-Id: Id70f6fd76888cc595a353aefb84d25c4cd325d7d Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-on: http://openocd.zylin.com/1945 Tested-by: jenkins Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-02-24cfg: Make stm32f4x usable with SWD transportFatih Aşıcı1-13/+13
Change-Id: Ib8f3b414ec3c31cf8a112e75efe003e2237c59bb Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com> Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1951 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp>
2014-02-11quark_x10xx: add new target quark_x10xxAdrian Burns1-0/+52
Intel Quark X10xx SoC debug support added Lakemont version 1 (LMT1) is the x86 core in Quark X10xx SoC Generic x86 32-bit code is in x86_32_common.c/h Change-Id: If2bf77275cd0277a82558cd9895b4c66155cf368 Signed-off-by: adrian.burns@intel.com Reviewed-on: http://openocd.zylin.com/1829 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-01-29cfg: LPC17xx default to using SYSRESETREQ to reset targetSpencer Oliver1-3/+3
Originally the LPC17xx user guide (UM10360 Rev 2) stated that SYSRESETREQ was not supported, so this was the default cortex_m reset mode. Rev 3 of the same user guide states that it is now supported. This has been verified on a LPC1768 mbed platform, previously I have not tested this functionality. Change-Id: I4858248903981a1c93ce75016e67c9e02702fcc5 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1892 Tested-by: jenkins Reviewed-by: Jörg Fischer <turboj@gmx.de> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-01-20cfg: add Freescale FRDM-KL46Z BoardSpencer Oliver1-0/+48
Change-Id: Ib585728f13a380eeeb2ada095f3e1a1c2aaf44cb Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1866 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-01-09add support for Atmel SAMD NOR FlashAndrey Yurovsky1-1/+2
This adds a new NOR Flash driver, "at91samd", which supports the built-in Flash on Atmel's D-series Cortex M MCUs, starting with the D20. Parts and their geometry are detected automatically using the DSU and lookup schemes described in the D20 document, 42129F–SAM–10/2013. Future D-series variants and families should presumably use this controller as well (possibly with minor changes and improvements). Tested on the SAMD20 Xplained Pro board, for which we also add the corresponding Flash configuration. Change-Id: Id8d3dd601e9f53121682d1a1190d0be4ea3b83eb Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-on: http://openocd.zylin.com/1684 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-09add support for Atmel SAM4L NOR FlashAndrey Yurovsky1-1/+3
This adds a new NOR Flash driver, "at91sam4l", which supports the built-in Flash on Atmel's low-power SAM4L family of Cortex M4 MCUs. Parts and their geometry are detected automatically using the Chip ID and lookup schemes described in document 42023E–SAM–07/2013. Tested on AT91SAM4LC4CA via the SAM4L XPlained Pro development kit. Change-Id: If73499dee92cc8ce231845244ea25c6984f6cecd Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-on: http://openocd.zylin.com/1639 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-09cfg: add initial Atmel xplained kit supportSpencer Oliver5-15/+96
These kits feature a CMSIS-DAP compliant debugger and so have been added as part of the pending support. Currently the flash drivers for the L8 and D20 are wip. One issue this implementation of CMSIS-DAP raised is that it supports 512byte HID reports, however using the current HIDAPI we have no cross platform way of querying this info. Long term we plan to add this support to HIDAPI. Change-Id: Ie8b7c871f58a099d963cd71a9f8a0105a38784e9 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1625 Tested-by: jenkins
2014-01-09cfg: add stm32 cmsis-dap compliant configSpencer Oliver7-26/+140
Change-Id: I3cfb21fdcef830e22b03bf4b5d58993728cc7475 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1543 Tested-by: jenkins
2014-01-09cmsis-dap: add initial cmsis-dap supportSpencer Oliver4-7/+110
This is based on work from: https://github.com/TheShed/OpenOCD-CMSIS-DAP/tree/cmsis-dap Main changes include moving over to using HIDAPI rather than libusb-1.0 and cleaning up to merge into master. Support for reset using srst has also been added. It has been tested on all the mbed boards as well as the Freedom board from Freescale. These boards only implement SWD mode, however JTAG mode has been tested with a Keil ULINK2 and a stm32 target - but requires a lot more work. Change-Id: I96d5ee1993bc9c0526219ab754c5aad3b55d812d Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-on: http://openocd.zylin.com/1542 Tested-by: jenkins
2014-01-08tcl/board: add Linksys WRT54GL v1.1 board configPaul Fertser1-0/+7
Tested flashing a real v1.1 device. Change-Id: Ie0d202b9fded8b92e731d93e0ef17be415a75fc8 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1852 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-08tcl: add bcm47xx config and Asus RT-N16 board using itPaul Fertser2-0/+26
This adds the bcm47xx config with the special undocumented trick to put it into standard EJTAG mode from the mystic "LV mode". The RAM setup is not done as it would require considerable efforts without much practical gain. The only issue I noticed so far is that "reset" doesn't actually reset the chip. Unfortunately, it's unclear how to make it work properly with SRST as OpenOCD asserts it in MIPS-specific code so the device will enter LV mode again but the LV tap is already disabled by that time, so it's not possible to send the magic command again. Anyway, this config is more than enough to "recover" any RT-N16 provided the hardware is not damaged. Change-Id: I0894e339763e6d20d1c93341c597382b479d039b Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1849 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-08Update URLs and names in amdm37x.cfg, no functional changes.Robert P. J. Day1-16/+16
* openocd.berlios.de -> openocd.sourceforge.net * Update link to AM/DM37x Technical Reference Manual (ver R) * "ICEpick" is properly spelled "ICEPick" according to TI Change-Id: Ie04458e82c97ef766ec03bd9b9f27edadf5d1cb2 Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Reviewed-on: http://openocd.zylin.com/1856 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-12-22target/imx6: Fix typo in setting _SJC_TAPID from SJC_TAPID variableAlex Murray1-1/+1
The set command was missing the $ prefix on the SJC_TAPID variable and so would fail if SJC_TAPID was set Change-Id: Ib9af58f5188bd8a2bc3f888309f203d624476c27 Signed-off-by: Alex Murray <alex.murray@cohdawireless.com> Reviewed-on: http://openocd.zylin.com/1811 Tested-by: jenkins Reviewed-by: Jens Bauer <jens@gpio.dk> Reviewed-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-12-19target: add kl25z HLA (stlink) configPaul Fertser1-0/+55
Based on Nemuisan Tokusei's. Untested, but original config was reported to work ok. Change-Id: Ic991dce55bfca266880081fe2bbd9e6e263b0fc0 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1803 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-12-17at91sam7sx.cfg: fix use $_TARGETNAME as target identifier, not '0' warningSergey A. Borshch1-1/+1
all other at91 cfg files already has this fix. It also fix "No flash at address 0x...." error when JTAG chain consist of more than one at91sam7sx cores during attempt to flash other than first mcu in chain. Change-Id: I7785d9103d0fc494b6a823e2c73f850373ffe112 Signed-off-by: Sergey A. Borshch <sb-sf@users.sourceforge.net> Reviewed-on: http://openocd.zylin.com/1812 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-12-17cfg: Add new BSTAPID for STM32F42xxx and STM32F43xxx seriesNemui Trinomius1-4/+8
STM32F42xxx & STM32F43xxx series boudary scan TAP-ID are differ from STM32F405xx/07xx & STM32F415xx/17xx. And Section number was also fixed for RM0090 rev5. Tested on a STM32F427IIT6 and STM32F429ZIT6. Change-Id: Ie9c54c55b97b9c396ace752d94ea2ad916cc8479 Signed-off-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp> Reviewed-on: http://openocd.zylin.com/1808 Tested-by: jenkins Reviewed-by: Jens Bauer <jens@gpio.dk> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>