- Jun 17, 2017
-
-
Tomas Vanek authored
Active watchdog forces reset during armv7m_checksum_memory() in verify_image command if run just after reset init. COP watchdog in KL series and WDOG32 in KE1 series have longer timeout however they need to be disabled too. The change extends 'kinetis disable_wdog' command to optionally probe the chip and use appropriate algorithm to disable watchdog. Setting of cache type is also split from flash_support flags. Tcl command 'kinetis disable_wdog' is called in reset-init event. Change-Id: I3191e230f38b679ed74f2a97fe323ef8fb3fe22e Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3901 Tested-by: jenkins Reviewed-by:
Joakim Nohlgård <joakim.nohlgard@eistec.se> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Tomas Vanek authored
Kinetis flash driver services huge number of MCU types. They have one, two or four flash banks with option of FlexNVM. It would require ~36 config files just for Kx series, more for KLx, KVx and KE1x. The change implements alternative approach: - configuration file creates just one pflash bank (common for all devices) - when a device is probed, additional pflash or flexnvm banks are created based on flash layout of the connected MCU - created banks have names with optional numbering e.g. kx.pflash0 kx.pflash1 kx.flexnvm0 kx.flexnvm1 - the first bank gets renamed if numbering is used Automatic bank creation is enabled by tcl command 'kinetis create_banks'. Used solution has a drawback: other banks than pflash0 are not accessible until pflash0 is probed. Fortunately gdb attach and standard programming accesses banks in right sequence. Change-Id: I5b9037cbefdb8a4176b7715fbcc3af4da4c1ab60 Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3925 Tested-by: jenkins Reviewed-by:
Joakim Nohlgård <joakim.nohlgard@eistec.se> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Tomas Vanek authored
Config file renamed to ke0x.cfg and a notice added to texi. While on ke0x.cfg CPUTAPID setting fixed: device has SWD port only, no JTAG. Removed per device configs as they set CHIPNAME and nothing more. Let's use reasonably universal chip name 'ke' set in family config. Change-Id: I313db87a59f25f968eb3c27df155780b67becee8 Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3897 Tested-by: jenkins Reviewed-by:
Ivan Meleca <ivan@artekit.eu> Reviewed-by:
Joakim Nohlgård <joakim.nohlgard@eistec.se> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Tomas Vanek authored
The new Kinetis KE1x families use FTFE flash controller unlike KE0x. Also SDID coding corresponds to new K, KL and KV families. That's why KE1x is handled by kinetis driver instead of kinetis_ke Change-Id: Ibb73e28e41dfbb086e761e1f006b089825dab854 Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3896 Tested-by: jenkins Reviewed-by:
Joakim Nohlgård <joakim.nohlgard@eistec.se> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- May 31, 2017
-
-
Grzegorz Kostka authored
For some targets (like nrf51) sysfs driver is too slow. This patch implements memory maped driver for IMX processors. Mostly based on bcm2835gpio. Tested on imx6ul CPU. However, it should work on any NXP IMX CPU. Change-Id: Idace4c98181c6e9c64dd158bfa52631204b5c4a7 Signed-off-by:
Grzegorz Kostka <kostka.grzegorz@gmail.com> Reviewed-on: http://openocd.zylin.com/4106 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
- May 12, 2017
-
-
Forest Crossman authored
This patch adds a driver for the SWD-only Cypress KitProg programmer/debugger. Change-Id: I3a9a8011a762781d560ebb305597e782a4f9a8e5 Signed-off-by:
Forest Crossman <cyrozap@gmail.com> Reviewed-on: http://openocd.zylin.com/3221 Tested-by: jenkins Reviewed-by:
Tomas Vanek <vanekt@fbl.cz>
-
- May 09, 2017
-
-
Moritz Fischer authored
Change-Id: I229c746be27b7c4fa01f48a6ed54ab2679b50ab1 Signed-off-by:
Moritz Fischer <moritz.fischer@ettus.com> Reviewed-on: http://openocd.zylin.com/4109 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
- May 08, 2017
-
-
Juha Niskanen authored
Also fixes incorrect comment about MSI range. Change-Id: If1339a00e50db44195dfcd5c767ba3f5d9035451 Signed-off-by:
Juha Niskanen <juha.niskanen@haltian.com> Reviewed-on: http://openocd.zylin.com/4122 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Apr 24, 2017
-
-
Marc Schink authored
Tested with STM32F746ZG Nucleo development board. Change-Id: Ia97b774b996a3be03e8e84342b93659c3632c18f Signed-off-by:
Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/3516 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Jan Čapek authored
- stm32l0_dual_bank.cfg - implement dual bank configuration - st_nucleo_l073rz.cfg - implement new board script Change-Id: Ie8063e5bec45069a63d414d81b2068fe3cc7e4d7 Signed-off-by:
Jan Čapek <jan.capek@braiins.cz> Reviewed-on: http://openocd.zylin.com/3957 Reviewed-by:
Cezary Gapiński <cezary.gapinski@gmail.com> Reviewed-by:
Karl Palsson <karlp@tweak.net.au> Tested-by: jenkins Reviewed-by:
Aurelio Lucchesi <me@0rel.com> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Jerome Lambourg authored
Change-Id: Iffe59dcf9f2cb1f5949c37d11fe0d2141a47f8da Signed-off-by:
Paul Fertser <fercerpav@gmail.com> Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3922 Tested-by: jenkins Reviewed-by:
Leo Zhang <liang.zhang@microchip.com> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Apr 23, 2017
-
-
Matthias Welwarsky authored
This patch adds the file ti_beaglebone-base.cfg as the common base configuration for all TI BeagleBone derived boards. It also modifies ti_beaglebone.cfg to source the base board and only add the on-board JTAG adapter. Lastly, it adds a file ti_beaglebone_black.cfg with a suitable configuraton for the BeagleBone "Black" variant. Change-Id: I40cacb8abed7bdb308929713891f7b5e5b685c95 Signed-off-by:
Matthias Welwarsky <matthias@welwarsky.de> Reviewed-on: http://openocd.zylin.com/3099 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Matthias Bock authored
Change-Id: I9f9758d3a30bbcca9f750f604e011e5cc25809c5 Signed-off-by:
Matthias Bock <mail@matthiasbock.net> Reviewed-on: http://openocd.zylin.com/4107 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
- Feb 24, 2017
-
-
Matthias Welwarsky authored
configuration covers all 8 Cortex-A53 cores and auxiliary Cortex-M3 used for power management. Change-Id: I5509f275aa669abe285f9152935ecdcbcd0c402e Signed-off-by:
Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/4009 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
- Feb 13, 2017
-
-
Karl Palsson authored
Tested with a Dresden Elektronik deRFmega128 module. Change-Id: I91da3b11b60e78755360b08453ed368d6d396651 Signed-off-by:
Karl Palsson <karlp@tweak.net.au> Reviewed-on: http://openocd.zylin.com/2790 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
- Jan 15, 2017
-
-
Tomas Vanek authored
Commit 25d7ba19 introduced a problem with 'reset halt' due to setting srst_pulls_trst: Error: cortex_m.c:595 cortex_m_halt(): can't request a halt while in reset if nSRST pulls nTRST Sorry, I don't know why I overlooked it when I tested #3722. Change-Id: I41e9473dd91a86d93cf3e78b1fbbdfe1dd188d83 Reported-by:
Ladislav Laska <laska@kam.mff.cuni.cz> Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3942 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
- Dec 25, 2016
-
-
Paul Fertser authored
This seems to be a leftover from borrowing from omap3* configs. Since SJC is not enabling or disabling the DAP tap, and the tap is always available, the extra tapenable command causes warnings on startup (can't enable what's already enabled). Change-Id: I7514436d565aa5b91876dbdab547956f36dcab77 Signed-off-by:
Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/3892 Tested-by: jenkins
-
- Dec 09, 2016
-
-
Matthias Welwarsky authored
This patch contains configuration for the twr-vf65gs10 system module of the Freescale (NXP) tower system. It provides support for both the CMSIS-DAP available via USB and the Cortex+ETM connector on J5. The configuration also contains DDR and clock init code hooked into the reset-init event handler. Change-Id: I68303e0038e137dcadc57525e662428769fb69f2 Signed-off-by:
Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/3564 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
- Dec 08, 2016
-
-
Uwe Bonnes authored
Enable debug in standby/stop/sleep. Stop watchdogs during halt. Change-Id: I8383a191cd897118bd88bf78528d05943f3a368e Signed-off-by:
Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Reviewed-on: http://openocd.zylin.com/3882 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
Owen Kirby authored
Chip ID and flash layout taken from Atmel-11102F-ATARM-SAM4C32-SAM4C16-SAM4C8-SAM4C4-Datasheet_27-Mar-15 and tested on a SAM4C32-EK (rev A). Change-Id: I68aae5b60994c0b5964ea9031d40bc76ba025675 Signed-off-by:
Owen Kirby <oskirby@gmail.com> Reviewed-on: http://openocd.zylin.com/3527 Tested-by: jenkins Reviewed-by:
Tomas Vanek <vanekt@fbl.cz>
-
Andreas Färber authored
Tested with "J-Link Lite-XMC4200 Rev.1 compiled Jul 18 2014 17:28:26". Change-Id: I31482734af7621593a244ffac9dd223408470609 Signed-off-by:
Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/3876 Tested-by: jenkins Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
Peter Lawrence authored
target tcl to enable debugging of ARM Cortex-A5 on ADSP-SC58x Change-Id: I378f8b94b7d6d6b9d0567985abc0e36aea7c8dea Signed-off-by:
Peter Lawrence <majbthrd@gmail.com> Reviewed-on: http://openocd.zylin.com/3125 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by:
Matthias Welwarsky <matthias@welwarsky.de>
-
Tomas Vanek authored
Remove comment about workaround of not working 'reset halt' - not needed as 'reset halt' is working as expected @ EDBG with srst_only. Add srst_pulls_trst to reset_config as it no more triggers an error. Change-Id: I47cf445690c46ccfb866900cddbfcaefc8649f82 Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3722 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
- Nov 06, 2016
-
-
Andreas Fritiofson authored
Convert Presto, OpenJTAG and USB-Blaster (I) adapter drivers to libftdi only. Change-Id: Ib28887620a3dcbb754b9dbf87b9731acca3ac600 Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3237 Tested-by: jenkins Reviewed-by:
Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Andreas Fritiofson authored
Purge all legacy interface configurations so there's no more confusion over which one to use. Also remove doc/INSTALL.txt which mentions ft2232 but otherwise just duplicates what INSTALL says. Change-Id: Ic94f808f123d4917e600b79309f1272c78a7bb11 Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3236 Tested-by: jenkins Reviewed-by:
Andreas Färber <afaerber@suse.de> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Nov 04, 2016
-
-
Harald Welte authored
At least on my (phyCORE-AM335X) system, the AM335x watchdog needs to be disabled to use OpenOCD for more than 6.5 seconds after reset. Change-Id: I3d883a9f572b0ccb92f9864853a00c372e39d7f2 Signed-off-by:
Harald Welte <laforge@gnumonks.org> Reviewed-on: http://openocd.zylin.com/3391 Tested-by: jenkins Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
Andreas Fritiofson authored
Instead of updating these regularly we can just accept any IDCODE for the boundary scan TAP. The only downside might be that it's not immediately obvious if you source a config for the wrong type of STM32. Change-Id: I96d4d81699a491b3a46de3f0d3fd078ffddad4e4 Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3385 Tested-by: jenkins
-
Rick Foos authored
Both boards use SEGGER interface. nRF52 flash driver is in change 3511. The board files were needed for transport select to SWD. The default jtag transport didn't failover to SWD. Change-Id: Id9c72aa88eeeb6a4e1999ee182f5284dbe535c05 Signed-off-by:
Rick Foos <rfoos@solengtech.com> Reviewed-on: http://openocd.zylin.com/3600 Tested-by: jenkins Reviewed-by:
Fredrik Hederstierna <fredrik.hederstierna@gmail.com> Reviewed-by:
Michael Dietz <mjdietzx@gmail.com> Reviewed-by:
Jiří Pinkava <j-pi@seznam.cz> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Oct 17, 2016
-
-
Vivien Didelot authored
The Linksys WAG200G router has a TI AR7 SoC and a 4MB Flash layout similar to the Netgear DG834v3 router [1]. Below is an example of a successful flash recovery, using a TUMPA, connected to the MIPS EJTAG 2.6 header (JP102) of the router. WAG200G [2] TUMPA [3] Desc Pin Pin Desc ------------------------ nTRST 1 3 nTRST TDI 3 5 TDI TDO 5 13 TDO TMS 7 7 TMS TCK 9 9 TCK nSRST 11 15 RST GND 2 4 GND Note that nSRST is optional to halt the CPU, but is required to probe the flash. For instance, recover the kernel with: $ sudo ./src/openocd -s tcl \ -f interface/ftdi/tumpa.cfg \ -f tools/firmware-recovery.tcl \ -c 'board linksys-wag200g; reset_config srst_only; flash_part kernel /path/to/kernel.bin; shutdown' [1] https://wiki.openwrt.org/toh/linksys/wag200g [2] https://www.linux-mips.org/wiki/JTAG#JTAG_headers [3] http://www.tiaowiki.com/w/TIAO_USB_Multi_Protocol_Adapter_User's_Manual#20_PIN_JTAG_Connector Change-Id: I952ba9f706e2e4f8f95ca03a5fa58f391ca030b6 Signed-off-by:
Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-on: http://openocd.zylin.com/3776 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Sean Cross authored
Change-Id: Iecd57c0ef59cfde98de36464a73436f57b0835e2 Signed-off-by:
Sean Cross <xobs@kosagi.com> Signed-off-by:
Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/3532 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
- Aug 14, 2016
-
-
Tomas Vanek authored
Kinetis driver checks MDM STAT register to detect secured state of MCU. Original version often reported a blank device as secured one. Change #3010 has not fixed all false reports. After changes in arm_adi_v5 infrastructure secured devices was not detected at all. New algorithm uses multiple MDM STAT reads and counts MDM_STAT_SYSSEC and MDM_STAT_FREADY bits. Both secured MCU and MCU locked-up in RESET/WDOG loop are detected reliably. Detection is run in both kx.cfg and klx.cfg from examine-start event, not examine-end as before. Event is configured only for non hla adapter. Minor fix in klx.cfg: commented out adapter_khz 24000 in reset-init. Such frequency is not supported in VLPR CPU mode and with JTAG. Change-Id: I2ec2b68c45bde9898159cd15fbdcbcfa538c41d9 Signed-off-by:
Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3547 Tested-by: jenkins Reviewed-by:
Steven Stallion <stallion@squareup.com> Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Antony Pavlov authored
Marsohod is a very cheap CPLD Development and Education board. Please see http://marsohod.org/howtostart/plata for details. Sample usage: openocd -f board/marsohod.cfg -c init -c "svf -tap epm240.tap project.svf" -c shutdown Change-Id: Ia8b7d46cbead15a2a41a2a4e68d7ff4f4ee3e88a Signed-off-by:
Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/3608 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Antony Pavlov authored
Change-Id: I5e589cf9d1d762321b7baa2509a4e78688fe6512 Signed-off-by:
Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/3607 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Antony Pavlov authored
Marsohod3 is a cheap FPGA Development and Education board. Please see http://www.marsohod.org/plata-marsokhod3 for details. Sample usage: openocd -f board/marsohod3.cfg -c init -c "svf -tap 10m50.tap project.svf" -c shutdown Change-Id: Ie5f43e696bbd1f3be2710c3916e808359f6e8d18 Signed-off-by:
Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/3606 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Antony Pavlov authored
Change-Id: I1a9cfa14e5127226af4e4b4bf30e1b5d6feedc34 Signed-off-by:
Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/3605 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Antony Pavlov authored
Marsohod2 is a very cheap FPGA Development and Education board. Please see http://www.marsohod.org/prodmarsohod2 for details. Sample usage: openocd -f board/marsohod2.cfg -c init -c "svf -tap ep3c10.tap project.svf" -c shutdown Change-Id: Ibf39a5d463eeda9d4031fa626f01ea2599396ff2 Signed-off-by:
Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/2890 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by:
Paul Fertser <fercerpav@gmail.com>
-
Remco Bloemen authored
XDS100v3 is software compatible with the XDS100v2, but has a different usb pid. This commit adds `xds100v3.cfg` that sources the v2 one and changes the usb pid. Change-Id: Ie29d325e8992d2de2f97d70862beeb63932ffa80 Signed-off-by:
Remco Bloemen <openocd-gerrit@xn--2-umb.com> Reviewed-on: http://openocd.zylin.com/3632 Tested-by: jenkins Reviewed-by:
Andreas Färber <afaerber@suse.de> Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Antony Pavlov authored
MBFTDI is a very cheap FT2232-based JTAG adapter for programming Marsohod FPGA board. Please see http://www.marsohod.org/prodmbftdi for details. Change-Id: I35f758b49d1566098dc27f9581829cccad93ceeb Signed-off-by:
Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/3604 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
- Aug 13, 2016
-
-
Uwe Bonnes authored
Taken from git://git.ac6.fr/openocd commit e8ed67c42227b7072a1e7 Change-Id: Iac106d4823123eaa96f16a975e7ecbcb24189924 Signed-off-by:
Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> Reviewed-on: http://openocd.zylin.com/3377 Tested-by: jenkins Reviewed-by:
Stian Skjelstad <stian@nixia.no> Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com>
-
Matthias Welwarsky authored
This configuration file contains jtag, reset and init functions for the Freescale SabreSD board variant with iMX6Q SoC. Change-Id: I2366af6da1d82550eb485f36ad61469305c59ffb Signed-off-by:
Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/3357 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-