riscv-openocd/tcl/target
Andreas Fritiofson 1c021ed0af target: Remove "-variant" argument
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-22 19:39:24 +00:00
..
1986ве1т.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
aduc702x.cfg target: remove legacy target events 2012-05-21 16:19:28 +00:00
altera_fpgasoc.cfg cfg: Rename leftover cortex_a8 -> cortex_a 2014-07-08 19:33:18 +00:00
am335x.cfg tcl/target/am335x.cfg: Drop gdb-attach stanza 2014-06-22 08:30:39 +00:00
am437x.cfg cfg: add TI am43xx devices 2014-03-29 07:00:22 +00:00
amdm37x.cfg tcl/target: added support for TI OMAP/AM 3505 and 3517 2014-08-11 21:27:21 +00:00
ar71xx.cfg
armada370.cfg cfg: Rename leftover cortex_a8 -> cortex_a 2014-07-08 19:33:18 +00:00
at32ap7000.cfg
at91r40008.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
at91rm9200.cfg
at91sam3XXX.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +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 Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
at91sam3sXX.cfg
at91sam3u1c.cfg
at91sam3u1e.cfg
at91sam3u2c.cfg
at91sam3u2e.cfg
at91sam3u4c.cfg
at91sam3u4e.cfg Fix remaining incorrect reference to target/at91sam3uXX.cfg 2011-12-02 06:37:29 +00:00
at91sam3uxx.cfg
at91sam4XXX.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
at91sam4lXX.cfg cortex_m: Do additional initialization during reset 2014-06-28 09:30:09 +00:00
at91sam4sXX.cfg cfg: add initial Atmel xplained kit support 2014-01-09 15:22:56 +00:00
at91sam4sd32x.cfg cfg: add initial Atmel xplained kit support 2014-01-09 15:22:56 +00:00
at91sam7se512.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00: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 target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
at91sam9g10.cfg
at91sam9g20.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
at91sam9g45.cfg
at91sam9rl.cfg
at91sam9260.cfg
at91sam9260_ext_RAM_ext_flash.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
at91sam9261.cfg
at91sam9263.cfg
at91samdXX.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
at91samg5x.cfg Add support for the Atmel SAMG53 2014-03-04 20:18:37 +00:00
atmega128.cfg
avr32.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
bcm47xx.cfg tcl: add bcm47xx config and Asus RT-N16 board using it 2014-01-08 22:18:18 +00:00
bcm281xx.cfg bcm281xx: Add bcm281xx SoC and bcm28155_ap board 2014-03-09 22:33:32 +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: bcm6348 target config, BT HomeHub v1 board config 2014-04-14 18:15:24 +00:00
c100.cfg
c100config.tcl
c100helper.tcl
c100regs.tcl
cs351x.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
davinci.cfg
dragonite.cfg
dsp56321.cfg
dsp568013.cfg
dsp568037.cfg
efm32.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
efm32_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
epc9301.cfg
faux.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
feroceon.cfg
fm3.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
gp326xxxa.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
hilscher_netx10.cfg
hilscher_netx50.cfg
hilscher_netx500.cfg
icepick.cfg tcl: target: icepick: add icepick_d_tapenable procedure 2014-03-17 12:53:02 +00:00
imx.cfg
imx6.cfg tcl/target/imx6: add yet another SJC tapid 2014-09-08 20:21:37 +00:00
imx21.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
imx25.cfg
imx27.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
imx28.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
imx31.cfg
imx35.cfg
imx51.cfg target: Pull out the jtag_rtck from iMX5x files 2013-07-15 10:02:32 +00:00
imx53.cfg target: Pull out the jtag_rtck from iMX5x files 2013-07-15 10:02:32 +00:00
is5114.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
ixp42x.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
k40.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
k60.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
kl25.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +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 Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
ks869x.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
lpc1xxx.cfg cfg: refactor lpc1xxx targets onto one base config 2014-09-08 23:05:08 +00:00
lpc2xxx.cfg Export _TARGETNAME from generic LPC2xxx script 2012-02-07 06:32:33 +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
lpc1850.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
lpc2103.cfg
lpc2124.cfg
lpc2129.cfg
lpc2148.cfg
lpc2294.cfg
lpc2378.cfg
lpc2460.cfg
lpc2478.cfg
lpc2900.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
lpc3131.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
lpc3250.cfg
lpc4350.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
mc13224v.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
mdr32f9q2i.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +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
nrf51.cfg nRF51822: Add workaround for PAN-16 where not all RAM blocks reliably enabled on reset 2014-08-11 22:26:44 +00:00
nrf51_stlink.tcl Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
nuc910.cfg
omap2420.cfg
omap3530.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +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
omapl138.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
or1k.cfg openrisc: add support for JTAG Serial Port 2014-06-22 08:39:08 +00:00
pic32mx.cfg pic32mx: 0 wait state option 2013-04-02 15:12:44 +00:00
pxa3xx.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
pxa255.cfg
pxa270.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
quark_x10xx.cfg quark_x10xx: add new target quark_x10xx 2014-02-11 13:07:29 +00:00
readme.txt
samsung_s3c2410.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
samsung_s3c2440.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
samsung_s3c2450.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
samsung_s3c4510.cfg
samsung_s3c6410.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
sharp_lh79532.cfg
smp8634.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
spear3xx.cfg
stellaris.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stellaris_icdi.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f0x.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f0x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f1x.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
stm32f2x.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f2x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f3x.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f3x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f4x.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32f4x_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32l.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32lx_dual_bank.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32lx_stlink.cfg Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +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 Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
stm32xl.cfg
str710.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
str730.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
str750.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
str912.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
swj-dp.tcl Allow transports to override the selected target (hla configs unification) 2014-08-11 21:25:56 +00:00
test_reset_syntax_error.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
test_syntax_error.cfg
ti-ar7.cfg cfg: add Netgear DG834v3 configuration 2013-03-06 21:57:29 +00:00
ti_calypso.cfg target: Remove "-variant" argument 2014-09-22 19:39:24 +00:00
ti_dm355.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
ti_dm365.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
ti_dm6446.cfg Remove jtag_rclk from target configs 2013-10-29 22:49:35 +00:00
ti_tms570.cfg cortex_a: fix endiannes issues on TI TMS570 2014-04-14 18:20:36 +00:00
tmpa900.cfg
tmpa910.cfg
u8500.cfg target: rename cortex_a8 to cortex_a 2013-04-28 08:56:04 +00:00
zynq_7000.cfg tcl: add Zynq-7000 target and Zedboard board configs 2014-03-29 07:16:00 +00:00
к1879xб1я.cfg tcl/target: add config for К1879ХБ1Я, a hybrid ARM11/DSP SoC by RC Module 2014-09-08 22:26:35 +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.