openocd/tcl/target
Andreas Bolsch e44539d66c Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface
- write speed up to 150 kByte/s on STM32F469I-disco (due to
  SWD clock and USB connection), up to 1 MByte/s on Nucleo-F767ZI
  with external STLink-V3 or Nucleo-G474RE with two W25Q256FV in
  dual 4-line mode or STM32H73BI-Disco in octal mode
- tested with STM32L476G-disco (64MBit flash, 3-byte addr),
  STM32F412G-Disco, STM32F469I-Disco, STM32F746G-Disco, and
  STM32L476G-Disco (all 128Mbit flash, 3-byte addr),
  STM32F723E-Disco, STM32F769I-Disco (512Mbit flash, 4-byte addr)
  STM32L4R9I-Disco, STM32L4P5G-Disco (512MBit octo-flash, DTR, 4-byte addr)
  STM32H745I-Disco, STM32H747I-Disco (two 512MBit flash, 4-byte addr)
  STM32H73BI-Disco, STM32H735G-Disco (512MBit octo-flash, DTR, 4-byte addr)
- suitable cfg for Discovery boards included
- limited parsing of SFDP data if flash device not hardcoded
  (tested only in single/quad mode as most devices either don't
  support SFDP at all or have empty(!) SFDP memory)
- 'set' command for auto detection override (e. g. for EEPROMs)
- 'cmd' command for arbitrary SPI commands (reconfiguration, testing etc.)
- makefile for creation of binary loader files
- tcl/board/stm32f469discovery.cfg superseded by stm32f469i-disco.cfg
- tcl/board/stm32f7discovery.cfg removed as name is ambiguous
  (superseded by stm32f746g-disco.cfg vs. stm32f769i-disco.cfg)
- dual 4-line mode tested on Nucleo-F767ZI, Nucleo-H743ZI and Nucleo-H7A3ZI-Q
  with two W25Q256FV, and on Nucleo-L496ZP-P and Nucleo-L4R5ZI
  with two W25Q128FV, sample cfg files included and on STM32H745I-Disco,
  STM32H747I-Disco, STM32H750B-Disco
- read/verify/erase_check uses indirect read mode to work around silicon bug in
  H7, L4+ and MP1 memory mapped mode (last bytes not readable, accessing last
  bytes causes debug interface to hang)
- octospi supported only in single/dual 1-line, 2-line, 4-line
  and single 8-line modes, (not in hyper flash mode)

Requirements:
GPIOs must be initialized appropriately, and SPI flash chip be configured
appropriately (1-line ..., QPI, 4-byte addresses ...). This is board/chip
specific, cf. included cfg files. The driver infers most parameters from
current setting in CR, CCR, ... registers.

Change-Id: I54858fbbe8758c3a5fe58812e93f5f39514704f8
Signed-off-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-on: http://openocd.zylin.com/4321
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Christopher Head <chead@zaber.com>
2020-11-08 22:46:00 +00:00
..
infineon tcl: fix remaining scripts after rework adapter commands 2020-02-06 21:15:55 +00:00
marvell tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
1986ве1т.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
adsp-sc58x.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
aduc702x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
aducm360.cfg tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
allwinner_v3s.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
alphascale_asm9260t.cfg tcl/target|board: add configs for Alphascale asm9260t 2015-02-22 17:57:02 +00:00
altera_fpgasoc_arria10.cfg target|board: Add Intel (Altera) Arria 10 target and related board 2018-07-31 18:57:17 +01:00
altera_fpgasoc.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
am335x.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
am437x.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
amdm37x.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
ar71xx.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
arm_corelink_sse200.cfg Configs for ARM corelink SSE-200 target and Musca A board 2019-06-19 09:36:02 +01:00
armada370.cfg tcl/target/armada370: remove useless 'init' command 2020-08-02 10:49:09 +01:00
at32ap7000.cfg at32ap7000 config file 2010-08-15 21:54:01 +02:00
at91r40008.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
at91rm9200.cfg tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
at91sam3ax_4x.cfg Added tcl config scripts for SAM3A/X targets and devboard 2012-03-30 15:56:19 +00:00
at91sam3ax_8x.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3ax_xx.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3nXX.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
at91sam3sXX.cfg Fix spelling of ARM Cortex 2016-05-20 21:38:03 +01:00
at91sam3u1c.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3u1e.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3u2c.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3u2e.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3u4c.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3u4e.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3uxx.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam3XXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam4c32x.cfg at91sam4: Add flash description and chipid for SAM4Cxx variants. 2016-12-08 12:31:14 +00:00
at91sam4cXXX.cfg at91sam4: Add flash description and chipid for SAM4Cxx variants. 2016-12-08 12:31:14 +00:00
at91sam4lXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam4sd32x.cfg Fix spelling of ARM Cortex 2016-05-20 21:38:03 +01:00
at91sam4sXX.cfg Fix spelling of ARM Cortex 2016-05-20 21:38:03 +01:00
at91sam4XXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam7a2.cfg target & board: AT91SAM7A2 and Olimex SAM7-LA2 2015-03-09 06:25:03 +00:00
at91sam7se512.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
at91sam7sx.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
at91sam7x256.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
at91sam7x512.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
at91sam9.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam9g10.cfg at91: add at91sam9g10 support 2011-03-03 22:49:47 +01:00
at91sam9g20.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam9g45.cfg at91: add at91sam9g45 support 2011-03-03 22:49:47 +01:00
at91sam9rl.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91sam9260_ext_RAM_ext_flash.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam9260.cfg at91sam9260: update sram information 2011-03-03 22:49:47 +01:00
at91sam9261.cfg at91: add at91sam9261 support 2011-03-03 22:49:46 +01:00
at91sam9263.cfg at91: add at91sam9263 support 2011-03-03 22:49:47 +01:00
at91samdXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91samg5x.cfg Fix spelling of ARM Cortex 2016-05-20 21:38:03 +01:00
atheros_ar2313.cfg tcl/target|board: add config Atheros ar2313 2015-11-03 22:18:27 +00:00
atheros_ar2315.cfg tcl/target|board: add config Atheros ar2315 2015-11-03 22:18:30 +00:00
atheros_ar9331.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
atheros_ar9344.cfg target: atheros_ar9344: add simple uart0 test 2017-10-03 11:24:46 +01:00
atmega128.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
atmega128rfa1.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
atsame5x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
atsaml1x.cfg tcl/target: Add initial Microchip SAML1x support 2019-06-19 10:17:57 +01:00
atsamv.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
avr32.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
bcm47xx.cfg tcl: add bcm47xx config and Asus RT-N16 board using it 2014-01-08 22:18:18 +00:00
bcm281xx.cfg tcl/target, board: remove useless gdb-attach event definitions 2018-11-26 09:31:09 +00:00
bcm4706.cfg tcl: add ASUS RT-N66U config 2014-06-01 18:27:09 +00:00
bcm4718.cfg tcl: add bcm47xx config and Asus RT-N16 board using it 2014-01-08 22:18:18 +00:00
bcm5352e.cfg tcl/board: add Linksys WRT54GL v1.1 board config 2014-01-08 22:18:25 +00:00
bcm6348.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
bluefield.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
bluenrg-x.cfg bluenrg-x: simplyfied the driver 2020-03-07 15:31:09 +00:00
c100.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
c100config.tcl tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
c100helper.tcl tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
c100regs.tcl TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
cc2538.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
cs351x.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
davinci.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
dragonite.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
dsp56321.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
dsp568013.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
dsp568037.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
efm32_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
efm32.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
em357.cfg tcl/target: use command 'jtag newtap' to add a boundary scan TAP 2020-09-05 17:10:14 +01:00
em358.cfg em357: Corrected EM357 support including errata details 2015-04-14 11:48:50 +01:00
eos_s3.cfg tcl/target: Add QuickLogic EOS S3 MCU configuration 2020-10-03 11:20:30 +01:00
epc9301.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
esi32xx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
exynos5250.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
faux.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
feroceon.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
fm3.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
fm4_mb9bf.cfg flash: New Spansion FM4 flash driver 2016-02-29 19:40:20 +00:00
fm4_s6e2cc.cfg flash: New Spansion FM4 flash driver 2016-02-29 19:40:20 +00:00
fm4.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
gd32vf103.cfg tcl/target: Add initial GigaDevice GD32VF103 support 2020-07-26 20:11:28 +01:00
gp326xxxa.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
hi3798.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
hi6220.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
hilscher_netx10.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
hilscher_netx50.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
hilscher_netx500.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
icepick.cfg target/icepick.cfg: Add support for Test TAPs in ICEPick C 2020-06-14 14:25:07 +01:00
imx.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
imx6.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
imx6sx.cfg target/imx6sx: Initial support 2019-04-24 14:11:22 +01:00
imx6ul.cfg target/imx6ul: Initial support 2019-04-24 14:11:33 +01:00
imx7.cfg target/imx7: Add ahb mem_ap 2019-04-10 10:16:19 +01:00
imx7ulp.cfg target/imx7ulp: Initial support 2019-04-24 14:11:07 +01:00
imx8m.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
imx21.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
imx25.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx27.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
imx28.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
imx31.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
imx35.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx51.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
imx53.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
is5114.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ixp42x.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
k40.cfg tcl/target: consolidate Kinetis configs 2015-01-26 20:57:41 +00:00
k60.cfg tcl/target: consolidate Kinetis configs 2015-01-26 20:57:41 +00:00
k1921vk01t.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
ke1xf.cfg flash Kinetis: implement automatic bank creation based on device probe 2017-06-17 12:01:45 +01:00
ke1xz.cfg flash Kinetis: implement automatic bank creation based on device probe 2017-06-17 12:01:45 +01:00
ke0x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
kl25.cfg tcl/target: consolidate Kinetis configs 2015-01-26 20:57:41 +00:00
kl25z_hla.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
kl46.cfg tcl/target: consolidate Kinetis configs 2015-01-26 20:57:41 +00:00
klx.cfg target: add examine-fail event 2020-03-12 09:43:55 +00:00
ks869x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
kx.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
lpc1xxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc2xxx.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc8nxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc8xx.cfg lpc8xx: Allow CHIPNAME override 2015-11-03 21:45:28 +00:00
lpc11xx.cfg cfg: refactor lpc1xxx targets onto one base config 2014-09-08 23:05:08 +00:00
lpc12xx.cfg cfg: refactor lpc1xxx targets onto one base config 2014-09-08 23:05:08 +00:00
lpc13xx.cfg cfg: refactor lpc1xxx targets onto one base config 2014-09-08 23:05:08 +00:00
lpc17xx.cfg cfg: refactor lpc1xxx targets onto one base config 2014-09-08 23:05:08 +00:00
lpc40xx.cfg lpc2000: Add LPC407x/8x flash size auto detection 2015-03-09 06:26:06 +00:00
lpc84x.cfg NOR: lpc2000 Add support for LPC84x devices 2019-01-02 21:54:03 +00:00
lpc1850.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc2103.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2124.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2129.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2148.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2294.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2378.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2460.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2478.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc2900.cfg tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
lpc3131.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
lpc3250.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
lpc4350.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc4357.cfg tcl/target: Add LPC4357 config 2015-10-30 13:14:12 +00:00
lpc4370.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ls1012a.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
max3263x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
max32620.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
max32625.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
mc13224v.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
mdr32f9q2i.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
nds32v2.cfg nds32: add new target type nds32_v2, nds32_v3, nds32_v3m 2013-06-05 19:27:35 +00:00
nds32v3.cfg nds32: add new target type nds32_v2, nds32_v3, nds32_v3m 2013-06-05 19:27:35 +00:00
nds32v3m.cfg nds32: add new target type nds32_v2, nds32_v3, nds32_v3m 2013-06-05 19:27:35 +00:00
nds32v5.cfg tcl: Add support for NDS V5 target and xc7/Corvette-F1 2020-08-16 11:48:53 +01:00
nhs31xx.cfg Add LPC8Nxx and NHS3xx support. 2018-12-23 15:08:36 +00:00
nrf51_stlink.tcl Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
nrf51.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
nrf52.cfg tcl/target/nrf52: fix nrf52_recover 2020-10-22 21:19:59 +01:00
nuc910.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
numicro.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
omap2420.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
omap3530.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
omap4430.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
omap4460.cfg target: restructure dap support 2018-03-30 09:58:21 +01:00
omap5912.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
omapl138.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
or1k.cfg openrisc: add support for JTAG Serial Port 2014-06-22 08:39:08 +00:00
pic32mx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
psoc4.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
psoc5lp.cfg psoc5lp: Add NV Latch flash driver 2018-06-06 18:12:21 +01:00
psoc6.cfg tcl/target: use command 'jtag newtap' to add a boundary scan TAP 2020-09-05 17:10:14 +01:00
pxa3xx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
pxa255.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
pxa270.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
qualcomm_qca4531.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
quark_d20xx.cfg tcl/target, board: remove useless gdb-attach event definitions 2018-11-26 09:31:09 +00:00
quark_x10xx.cfg quark_x10xx: add new target quark_x10xx 2014-02-11 13:07:29 +00:00
readme.txt coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
renesas_r7s72100.cfg tcl/target: Fix naming of RZ/A1 SoC 2020-03-14 20:39:47 +00:00
renesas_rcar_gen2.cfg tcl/target: Unify Renesas R-Car JTAG reset config 2020-03-09 05:59:39 +00:00
renesas_rcar_gen3.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
renesas_rcar_reset_common.cfg tcl/target: Unify Renesas R-Car JTAG reset config 2020-03-09 05:59:39 +00:00
renesas_s7g2.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
rk3308.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
samsung_s3c2410.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
samsung_s3c2440.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
samsung_s3c2450.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
samsung_s3c4510.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
samsung_s3c6410.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
sharp_lh79532.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
sim3x.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
smp8634.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
snps_em_sk_fpga.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
snps_hsdk.cfg Introduce tcl config files for Synopsys HSDK board 2020-07-26 20:08:31 +01:00
spear3xx.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
stellaris_icdi.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stellaris.cfg tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
stm8l.cfg stm8 target: make adapter speed settings work 2020-05-24 21:34:48 +01:00
stm8l152.cfg Added config files for stm8l152 stm8s003 and stm8s105 2018-01-12 20:22:46 +00:00
stm8s.cfg stm8 target: make adapter speed settings work 2020-05-24 21:34:48 +01:00
stm8s003.cfg Added config files for stm8l152 stm8s003 and stm8s105 2018-01-12 20:22:46 +00:00
stm8s103.cfg Add target config for STM8S103 chip... 2020-03-12 09:41:41 +00:00
stm8s105.cfg Added config files for stm8l152 stm8s003 and stm8s105 2018-01-12 20:22:46 +00:00
stm32_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f1x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f1x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f2x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f2x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f3x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f3x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f4x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f4x.cfg Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
stm32f7x.cfg Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
stm32f0x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f0x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32g4x.cfg Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
stm32g0x.cfg Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
stm32h7x_dual_bank.cfg target/stm32h7x: add support of dual core variant of STM32H7 2019-12-07 13:07:00 +00:00
stm32h7x.cfg Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
stm32l1.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32l1x_dual_bank.cfg flash/nor/stm32lx: use 0 base to autodetect second bank location 2015-02-04 22:02:45 +00:00
stm32l4x.cfg Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface 2020-11-08 22:46:00 +00:00
stm32l0_dual_bank.cfg tcl STM32L0xx - add support for dual banked targets and for Nucleo-64 STM32L073 2017-04-24 21:57:57 +01:00
stm32l0.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32lx_stlink.cfg stm32l: split l0/l1 support no jtag, different HSI settings 2014-12-03 09:10:21 +00:00
stm32mp15x.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
stm32w108_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32w108xx.cfg tcl/target: use command 'jtag newtap' to add a boundary scan TAP 2020-09-05 17:10:14 +01:00
stm32wbx.cfg tcl: fix remaining scripts after rework adapter commands 2020-02-06 21:15:55 +00:00
stm32wlx.cfg tcl/target: use command 'jtag newtap' to add a boundary scan TAP 2020-09-05 17:10:14 +01:00
stm32xl.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
str710.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
str730.cfg coding style: tcl: remove empty lines at end of text files 2020-05-02 15:40:12 +01:00
str750.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
str912.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
swj-dp.tcl hla_transport: split command registration per transport 2020-09-05 17:10:38 +01:00
swm050.cfg tcl: fix remaining scripts after rework adapter commands 2020-02-06 21:15:55 +00:00
test_reset_syntax_error.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
test_syntax_error.cfg Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
ti_calypso.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_cc13x2.cfg flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
ti_cc13x0.cfg flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
ti_cc26x2.cfg flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
ti_cc26x0.cfg tcl/target: Use vectreset for CC13xx/CC26xx targets. 2020-04-05 14:27:07 +01:00
ti_cc32xx.cfg tcl/target: Enable using vectreset for CC3320SF targets 2020-03-24 17:18:31 +00:00
ti_cc3220sf.cfg tcl: fix typo and spelling 2020-05-09 14:37:35 +01:00
ti_dm355.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_dm365.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_dm6446.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_msp432.cfg tcl/target: Use sysresetreq for MSP432 targets 2020-03-24 17:17:22 +00:00
ti_rm4x.cfg target/ti_tms570.cfg: added several JTAG IDs for TMS570LS family 2015-04-24 14:55:30 +01:00
ti_tms570.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_tms570ls20xxx.cfg TI TMS570 USB Kit board config 2015-04-24 14:55:16 +01:00
ti_tms570ls3137.cfg TI TMS570 USB Kit board config 2015-04-24 14:55:16 +01:00
ti-ar7.cfg cfg: add Netgear DG834v3 configuration 2013-03-06 21:57:29 +00:00
ti-cjtag.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
tmpa900.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
tmpa910.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
tnetc4401.cfg Update FTDI C232HM cfg, and add two new cfgs from cable modem research 2019-10-15 09:01:14 +01:00
u8500.cfg tcl: remove trailing whitespace 2020-05-09 14:38:40 +01:00
vybrid_vf6xx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
xilinx_zynqmp.cfg tcl: replace '-ctibase' with '-baseaddr' 2020-11-04 17:37:36 +00:00
xmc1xxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
xmc4xxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
xmos_xs1-xau8a-10_arm.cfg tcl/target: Add config for XMOS XS1-XAU8A-10's ARM core 2015-10-30 12:39:42 +00:00
zynq_7000.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
к1879xб1я.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00

Prerequisites:
The users of OpenOCD as well as computer programs interacting with OpenOCD are expecting that certain commands
do the same thing across all the targets.

Rules to follow when writing scripts:

1. The configuration script should be defined such as , for example, the following sequences are working:
	reset
	flash info <bank>
and
	reset
	flash erase_address <start> <len>
and
	reset init
	load

In most cases this can be accomplished by specifying the default startup mode as reset_init (target command
in the configuration file).

2. If the target is correctly configured, flash must be writable without any other helper commands. It is
assumed that all write-protect mechanisms should be disabled.

3. The configuration scripts should be defined such as the binary that was written to flash verifies
(turn off remapping, checksums, etc...)

flash write_image [file] <parameters>
verify_image [file] <parameters>

4. adapter speed sets the maximum speed (or alternatively RCLK). If invoked
multiple times only the last setting is used.

interface/xxx.cfg files are always executed *before* target/xxx.cfg
files, so any adapter speed in interface/xxx.cfg will be overridden by
target/xxx.cfg. adapter speed in interface/xxx.cfg would then, effectively,
set the default JTAG speed.

Note that a target/xxx.cfg file can invoke another target/yyy.cfg file,
so one can create target subtype configurations where e.g. only
amount of DRAM, oscillator speeds differ and having a single
config file for the default/common settings.