aboutsummaryrefslogtreecommitdiff
path: root/tcl
AgeCommit message (Collapse)AuthorFilesLines
2014-11-24tcl/target/stm32f4x: add F401 and F411 IDsUwe Bonnes1-1/+10
Change-Id: I12079586dafb8a7614bdf4cc0b13cd5030301742 Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Reviewed-on: http://openocd.zylin.com/2379 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-11-02tcl/interface/ftdi/swd-resistor-hack: clarify and add schematic diagramPaul Fertser1-0/+17
Change-Id: I8600ee983de85e4225430ae508a50cd938122d89 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2357 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-10-16cmsis-dap: add serial number supportSpencer Oliver1-0/+3
Change-Id: I66926d1013e2b3a43ce0d18d3599771428706b6a Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2329 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-10-06cfg: remove incorrect execute permissionsSpencer Oliver2-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 config file for a new board STM32L052 dsicoveryRémi PRUD'HOMME1-0/+12
this board use STLink-V2-1, the STM32L1xx use the STLink-V2. Change-Id: Ie58f45affcb1e9a6fed711b48c3c03b5035ab2b2 Signed-off-by: Rémi PRUD'HOMME <prudhomme.remi@gmail.com> Reviewed-on: http://openocd.zylin.com/2317 Tested-by: jenkins Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
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-10-06interface/ftdi/olimex-arm-usb-ocd-h: fix nTRST control definitionPaul Fertser1-2/+2
According to my inspection of an Olimex ARM-USB-OCD-H adapter ACBUS0 is connected directly to an SN74LVC2T45 buffer input B2, and the corresponding output A2 is connected directly to the JTAG connector. It seems the information in the Olimex flyer is incorrect for the -H version and TRST can't be tri-stated, ACBUS2 is unused. The older ARM-USB-OCD device has SN74AC244 for an output buffer and ACBUS2 controls its !2OE, ACBUS0 connected to 2A1 (2Y1 is nTRST), in accordance with the information flyer. Change-Id: I22828b7b959b6f62c3f51367feb8fab9705641e5 Reported-by: Tim Sander <tim@krieglstein.org> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2286 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Tim Sander <tim@krieglstein.org>
2014-09-29tcl/board: add TI Tiva C ek-tm4c1294xl configKarl Palsson1-0/+14
Change-Id: Iab070fe4c0f03ecc0db035b16dfb64105b0841be Signed-off-by: Karl Palsson <karlp@tweak.net.au> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2063 Tested-by: jenkins
2014-09-22target: Remove "-variant" argumentAndreas Fritiofson30-31/+31
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-22Support hla_serial command for ST-LINK adapters.Austin Phillips2-0/+14
The hla_serial command allows for a programming device serial number to be specified in addition to USB VID/PID. This allows for multiple ST-LINK/V2 programmers to be attached to a single machine and operated using openocd. Change-Id: I350654bf676eb26ba3a90450acfa55d2a5d2d791 Signed-off-by: Austin Phillips <austin_phillips@hotmail.com> Reviewed-on: http://openocd.zylin.com/2198 Tested-by: jenkins Reviewed-by: Martin Glunz <mg@wunderkis.de> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-09-15cfg: Added Nucleo-F411RE board config.Nemui Trinomius1-0/+11
It supports STLink/V2-1 debug adapter. Change-Id: Ifbc610cd68ec929608369e69d0b1395fe04956cd Signed-off-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp> Reviewed-on: http://openocd.zylin.com/2259 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-09-15tcl/board/sheevaplug: add adapter_khz settingPaul Fertser1-0/+2
This combination is known to work properly with 2MHz JTAG clock. Change-Id: Ie5ec3d3b415efbb13faee7d34e0c7f862b78350c Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2266 Tested-by: jenkins
2014-09-11tcl/interface/ftdi/sheevaplug: fix device descriptionPaul Fertser1-6/+1
Without this SheevaPlug debugging interface can't be matched. Change-Id: Ifca149130d03c1aa165ed1123e8540e49485f023 Reported-by: Andreas Schneider <schneider.andi@gmail.com> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2265 Tested-by: jenkins
2014-09-08cfg: refactor lpc1xxx targets onto one base configVanya Sergeev21-436/+185
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/interface/ftdi: fix TRST for Olimex TINY adaptersPaul Fertser2-4/+4
According to the research by Eldar, TINY-H adapter has nTRST connected to ACBUS0 directly via a 100 Ohms series resistor. I think it's safe to assume the older TINY adapter does the same. See high-res photos at [1]. This patch should fix issues with JTAG for the case when nTRST is actually connected but is missing from the config. [1] https://wikidevi.com/wiki/Olimex_ARM-USB-TINY-H Change-Id: Iaaee7be30536ebb502802d38b82cd9573408f854 Reported-by: Хайруллин Эльдар <eldar.khayrullin@mail.ru> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2247 Tested-by: jenkins Reviewed-by: demokmail <demokmail@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-09-08tcl/interface/ftdi: add kt-link config (with SWD) for DP BusBlasterPaul Fertser2-0/+24
Change-Id: Icbeca8c0c3845c0b777fb2e4c81b17e7b7cc5ff8 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2269 Tested-by: jenkins Reviewed-by: Ben Gamari <bgamari@gmail.com> 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-19tcl/interface/ftdi: auto-select SWD from converters' configsPaul Fertser3-0/+6
When you source a JTAG-SWD converter config, any other transport doesn't make any sense, so just autoselect it right there. Change-Id: I6c098740905a0d4007473fc19cc07e11cbcc9369 Suggested-by: Хайруллин Эльдар <eldar.khayrullin@mail.ru> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2248 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Eldar Khayrullin <eldar.khayrullin@mail.ru>
2014-08-19tcl/board/stm32ldiscovery: fix breakageEldar Khayrullin1-1/+1
Change-Id: I450ea82c27009be6bad6a7814969d81964ff44d8 Signed-off-by: Eldar Khayrullin <eldar.khayrullin@mail.ru> Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2255 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-08-11tcl/board: Add board configuration for nRF51822-mKITAndrey Smirnov1-0/+6
Add board configuration for Nordic's nRF51822-mKIT devkit, available here: http://mbed.org/platforms/Nordic-nRF51822/ Change-Id: Ib9329307147b1e7be061a5060b4eec8256fe2bd4 Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> [gus@projectgus.com: Minor tweaks, model number] Signed-off-by: Angus Gratton <gus@projectgus.com> Reviewed-on: http://openocd.zylin.com/2116 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 Fertser58-588/+388
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-08-04interface/ftdi: Mark flyswatter.cfg as testedAndreas Fritiofson1-5/+0
- Flyswatter + Proxmark3 (Atmel AT91SAM7S256) - works - Flyswatter + Tiva Launchpad (EK-TM4C123GXL) - works Change-Id: I615e0ff9262be6ae1064fb2de8e6e810775e7db4 Tested-by: Ondrej Mikle <ondrej.mikle@nic.cz> Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2237 Tested-by: jenkins
2014-08-02tcl/board: fix all the remaining boards that were sourcing ft2232 configsPaul Fertser12-12/+12
This was reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751372 . Change-Id: I258f3d40593ff2966ce3ca61c13a23699d1b162f Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2230 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2014-07-10tcl/board: add STM32429I-EVAL and STM32439I-EVAL dev boards from ST.Fredrik Hederstierna4-0/+58
Change-Id: I304b6e7bae832391f11d53003299d68e31b0e4ef Signed-off-by: Fredrik Hederstierna <fredrik@hederstierna.com> Reviewed-on: http://openocd.zylin.com/2171 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Franck Jullien <franck.jullien@gmail.com> 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-10Adding support for the Atmel SAMR21.Thomas Schmid1-0/+10
The Atmel SAMR21 is a Atmel SAMD21 with an Atmel RF233 in one package (two dies). Tested with the SAMR21 Xplained Pro eval kit. Change-Id: I1d79ea05834b925d7ec810527206fe86854e684b Signed-off-by: Thomas Schmid <thomas@rfranging.com> Reviewed-on: http://openocd.zylin.com/2194 Tested-by: jenkins Reviewed-by: Andrey Yurovsky <yurovsky@gmail.com> 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-28cfg: add SWD configs for stellaris ftdi based adaptersSpencer Oliver3-0/+6
Tested on hardware. Change-Id: Ib0191e97988dc79e9a62da74bd7fe25f548ff5a2 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2185 Reviewed-by: Paul Fertser <fercerpav@gmail.com> Tested-by: jenkins
2014-06-28tcl/interface/ftdi: add SWD configs for kt-link, olimex, rowley and resistor ↵Paul Fertser4-0/+24
hack Resistor hack is runtime-tested, other configs are based on schematics. Change-Id: I8daffa0434cd41d142fbec7c230a302284f7aa31 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2184 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
2014-06-28jtag/drivers/ftdi: require defining SWD_EN signal for SWD modePaul Fertser1-1/+1
Use a special signal instead of a dedicated swd mask. Amend jtag-lock-pick_tiny_2 config accordingly. Change-Id: Ifb007a0b5434b590c52f936efd5f5458e913e2e4 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2183 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
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-28cfg: Add SWD support to JTAG-lock-pick Tiny 2Andreas Fritiofson1-0/+2
Change-Id: I61eac507fa6861b7daf603ebca58e8bf3cc699c1 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2136 Tested-by: jenkins Reviewed-by: Jens Bauer <jens@gpio.dk> Reviewed-by: Paul Fertser <fercerpav@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 Jullien2-2/+7
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-19cfg: Added Nucleo-F334R8 board config.Nemui Trinomius1-0/+9
It supports STLink/V2-1. Change-Id: I0a8c01247a7a0165321818ca222479e3ae67ce5c Signed-off-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp> Reviewed-on: http://openocd.zylin.com/2175 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-06-18tcl/board: add Atmel SAM4E-EKMarco Cruz1-0/+7
Change-Id: I07d7e0528ed4e88b070ba4e7598a193ec8e9e37d Signed-off-by: Marco Cruz <marco.caratuva@gmail.com> Reviewed-on: http://openocd.zylin.com/2158 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com> Reviewed-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@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 Fertser3-0/+27
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-05-05Add support for Gumstix AeroCore deviceAsh Charles1-0/+10
The Gumstix AeroCore board [1] contains a STM32F427 microcontroller. Schematics for this board will also be made available [2]. The JTAG interface for this chip can be accessed via a USB connection provided by an FTDI chip (0403:6011). [1] https://store.gumstix.com/index.php/products/585/ [2] https://pubs.gumstix.com/boards/AEROCORE Change-Id: I0bf3bb525f51528bedd807b1f7210b09ef2e1015 Signed-off-by: Ash Charles <ashcharles@gmail.com> Reviewed-on: http://openocd.zylin.com/2117 Reviewed-by: Paul Fertser <fercerpav@gmail.com> 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 Bowyer3-0/+25
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>