tinyriscv-openocd/tcl/target
Hsiangkai Wang cf8a3c3d70 nds32: add new target type nds32_v2, nds32_v3, nds32_v3m
Add target code for Andes targets.

Change-Id: Ibf0e1b61b06127ca7d9ed502d98d7e2aeebbbe82
Signed-off-by: Hsiangkai Wang <hsiangkai@gmail.com>
Reviewed-on: http://openocd.zylin.com/1259
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-06-05 19:27:35 +00:00
..
aduc702x.cfg target: remove legacy target events 2012-05-21 16:19:28 +00:00
am335x.cfg cfg: remove whitespace 2013-05-02 16:39:18 +00:00
amdm37x.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
ar71xx.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
at32ap7000.cfg at32ap7000 config file 2010-08-15 21:54:01 +02:00
at91r40008.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91rm9200.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91sam3XXX.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00: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 Added tcl config scripts for SAM3A/X targets and devboard 2012-03-30 15:56:19 +00:00
at91sam3ax_xx.cfg Added tcl config scripts for SAM3A/X targets and devboard 2012-03-30 15:56:19 +00:00
at91sam3nXX.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
at91sam3sXX.cfg at91sam3s* support 2010-06-25 21:37:53 +02:00
at91sam3u1c.cfg update 'flash bank' usage in scripts 2009-11-19 13:39:41 -08:00
at91sam3u1e.cfg update 'flash bank' usage in scripts 2009-11-19 13:39:41 -08:00
at91sam3u2c.cfg update 'flash bank' usage in scripts 2009-11-19 13:39:41 -08:00
at91sam3u2e.cfg update 'flash bank' usage in scripts 2009-11-19 13:39:41 -08:00
at91sam3u4c.cfg scripts: update flash bank names 2010-05-13 20:44:08 +01:00
at91sam3u4e.cfg Fix remaining incorrect reference to target/at91sam3uXX.cfg 2011-12-02 06:37:29 +00:00
at91sam3uxx.cfg make sure file name case of at91sam3uxx matches what other files include 2011-12-01 22:28:33 +00:00
at91sam4XXX.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
at91sam4sXX.cfg topic: Added support for the SAM4S variants 2012-04-26 10:58:14 +00:00
at91sam4sd32x.cfg cfg: Added cfg script for at91sam4sd32x targets 2013-04-15 16:56:49 +00:00
at91sam7se512.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91sam7sx.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91sam7x256.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91sam7x512.cfg at91sam7: add a new target config file for at91sam7x512 2011-11-08 08:07:22 +00:00
at91sam9.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
at91sam9g10.cfg at91: add at91sam9g10 support 2011-03-03 22:49:47 +01:00
at91sam9g20.cfg at91sam9: factorise cpu support 2011-03-03 22:49:46 +01: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.cfg at91sam9260: update sram information 2011-03-03 22:49:47 +01:00
at91sam9260_ext_RAM_ext_flash.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00: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
atmega128.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
avr32.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
c100.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
c100config.tcl TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
c100helper.tcl TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
c100regs.tcl TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
cs351x.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
davinci.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
dragonite.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
dsp56321.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
dsp568013.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
dsp568037.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
efm32_stlink.cfg flash: EFM32 flash implementation 2013-01-14 10:25:55 +00:00
epc9301.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
faux.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
feroceon.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
fm3.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
hilscher_netx10.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00: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 config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx6.cfg targets: fix target_type name for Cortex-A targets 2013-05-28 08:48:45 +00:00
imx21.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx25.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx27.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx28.cfg cfg: remove whitespace 2013-05-02 16:39:18 +00:00
imx31.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx35.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
imx51.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
imx53.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
is5114.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
ixp42x.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
k40.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
k60.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
lpc2xxx.cfg Export _TARGETNAME from generic LPC2xxx script 2012-02-07 06:32:33 +00:00
lpc17xx.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
lpc1751.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1752.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1754.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1756.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1758.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1759.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1763.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1764.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1765.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1766.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1767.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1768.cfg lpc1768.cfg abstracted and moved to lpc17xx.cfg 2012-07-30 06:18:51 +00:00
lpc1769.cfg added target configs for the lpc17xx devices 2012-08-01 21:15:01 +00:00
lpc1788.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
lpc1850.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
lpc2103.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2124.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2129.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2148.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2294.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2378.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2460.cfg Add support for the lpc2460 target 2011-05-03 22:07:01 +02:00
lpc2478.cfg Add another level of procedures to LPC2xxx initialization - procedures for specific targets (setup_lpc<number>) take core clock and adapter clock as parameters. This way "constant" parameters (flash size and type, CPUTAPID, etc.) do not need to be copied if one wishes to change the "variable" parameters - like the core clock or adapter clock - in a board config file or somewhere else. 2011-01-09 21:34:02 +01:00
lpc2900.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
lpc3131.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
lpc3250.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
lpc4350.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
mc13224v.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +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
nuc910.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
omap2420.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
omap3530.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
omap4430.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
omap4460.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
omap5912.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
omapl138.cfg cfg: ignore ICEPick jrc tap version 2013-05-02 16:38:48 +00:00
pic32mx.cfg pic32mx: 0 wait state option 2013-04-02 15:12:44 +00:00
pxa3xx.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
pxa255.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
pxa270.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
readme.txt rename jtag_khz as adapter_khz 2010-03-15 08:37:43 -07:00
samsung_s3c2410.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
samsung_s3c2440.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
samsung_s3c2450.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
samsung_s3c4510.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
samsung_s3c6410.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
sharp_lh79532.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
smp8634.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
spear3xx.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
stellaris.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
stellaris_icdi.cfg icdi: add TI icdi interface 2012-12-23 21:46:20 +00:00
stm32_stlink.cfg stm32 configs: use 4kB working area size by default 2013-05-10 14:17:56 +00:00
stm32f0x_stlink.cfg cfg: increase stm32f0 default working area 2012-05-08 14:05:11 +00:00
stm32f1x.cfg stm32 configs: use 4kB working area size by default 2013-05-10 14:17:56 +00:00
stm32f1x_stlink.cfg stm32 configs: use 4kB working area size by default 2013-05-10 14:17:56 +00:00
stm32f2x.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
stm32f2x_stlink.cfg cfg: allow stm32discovery parameter override 2012-04-30 13:06:29 +00:00
stm32f3x.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
stm32f3x_stlink.cfg cfg: fix incorrect stm32f3 TAPID 2012-10-02 09:37:56 +00:00
stm32f4x.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
stm32f4x_stlink.cfg cfg: allow stm32discovery parameter override 2012-04-30 13:06:29 +00:00
stm32l.cfg target: rename cortex_m3 to cortex_m 2013-04-28 08:55:31 +00:00
stm32lx_dual_bank.cfg stm32: add support for the STM32Lx 384kb dual bank flash 2013-02-25 11:56:34 +00:00
stm32lx_stlink.cfg stm32: add support for the STM32Lx 384kb dual bank flash 2013-02-25 11:56:34 +00:00
stm32w108_stlink.cfg stm32w: Added sample target configuration for STM32W108 with STLink-V2 2013-04-19 20:36:11 +00:00
stm32xl.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
str710.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
str730.cfg cfg: fix typo in str730.cfg 2012-01-13 10:25:36 +00:00
str750.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
str912.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
swj-dp.tcl swj-dp.tcl (SWD infrastructure #1) 2010-10-10 14:41:11 -07:00
test_reset_syntax_error.cfg Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
test_syntax_error.cfg Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
ti-ar7.cfg cfg: add Netgear DG834v3 configuration 2013-03-06 21:57:29 +00:00
ti_calypso.cfg config: Add TI Calypso CPU configuration 2012-05-25 12:06:22 +00:00
ti_dm355.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
ti_dm365.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
ti_dm6446.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
tmpa900.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
tmpa910.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
u8500.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00

readme.txt

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_khz 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_khz in interface/xxx.cfg will be overridden by
target/xxx.cfg. adapter_khz 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.