Edward Fewell and ntfreak flash/nor: update CC26xx/CC13xx support
Added fixes found in additional code reviews.

Remove inappropriate use of bank_number field and updated
documentation to reflect the change.

Restored functionality to cc2538.cfg file because previous
change removed the cc26xx.cfg file because the flash support
changes made it obsolete. Rolled the previous cc26xx.cfg
file into cc2538.cfg and updated it to work with other
recent changes.  Tested using a SmartRF06 Evaluation
board with embedded XDS100v3 and external XDs110.

Change-Id: Ia19d00cf8055c5c0f1acc53aa23fd06a80fd2ebc
Signed-off-by: Edward Fewell <efewell@ti.com>
Reviewed-on: http://openocd.zylin.com/4787
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Latest commit f56e28b Dec 5, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
marvell
1986ве1т.cfg
adsp-sc58x.cfg
aduc702x.cfg target: remove legacy target events May 21, 2012
aducm360.cfg
allwinner_v3s.cfg tcl/target: add Allwinner V3s SoC support Aug 2, 2018
alphascale_asm9260t.cfg
altera_fpgasoc.cfg
altera_fpgasoc_arria10.cfg
am335x.cfg
am437x.cfg
amdm37x.cfg
ar71xx.cfg
armada370.cfg
at32ap7000.cfg
at91r40008.cfg
at91rm9200.cfg
at91sam3XXX.cfg
at91sam3ax_4x.cfg
at91sam3ax_8x.cfg
at91sam3ax_xx.cfg
at91sam3nXX.cfg
at91sam3sXX.cfg
at91sam3u1c.cfg
at91sam3u1e.cfg
at91sam3u2c.cfg
at91sam3u2e.cfg
at91sam3u4c.cfg
at91sam3u4e.cfg
at91sam3uxx.cfg
at91sam4XXX.cfg
at91sam4c32x.cfg
at91sam4cXXX.cfg
at91sam4lXX.cfg
at91sam4sXX.cfg
at91sam4sd32x.cfg
at91sam7a2.cfg
at91sam7se512.cfg
at91sam7sx.cfg
at91sam7x256.cfg
at91sam7x512.cfg
at91sam9.cfg
at91sam9260.cfg
at91sam9260_ext_RAM_ext_flash.cfg
at91sam9261.cfg
at91sam9263.cfg
at91sam9g10.cfg
at91sam9g20.cfg
at91sam9g45.cfg
at91sam9rl.cfg
at91samdXX.cfg
at91samg5x.cfg
atheros_ar2313.cfg
atheros_ar2315.cfg
atheros_ar9331.cfg
atheros_ar9344.cfg
atmega128.cfg
atmega128rfa1.cfg
atsamv.cfg
avr32.cfg
bcm281xx.cfg
bcm4706.cfg
bcm4718.cfg
bcm47xx.cfg
bcm5352e.cfg
bcm6348.cfg
bluenrg-x.cfg
c100.cfg
c100config.tcl
c100helper.tcl
c100regs.tcl
cc2538.cfg
cs351x.cfg
davinci.cfg
dragonite.cfg
dsp56321.cfg
dsp568013.cfg target config files: Fix whitespace issues. Nov 7, 2011
dsp568037.cfg
efm32.cfg
efm32_stlink.cfg
em357.cfg
em358.cfg
epc9301.cfg
esi32xx.cfg
exynos5250.cfg
faux.cfg
feroceon.cfg
fm3.cfg
fm4.cfg
fm4_mb9bf.cfg
fm4_s6e2cc.cfg
gp326xxxa.cfg
hi3798.cfg
hi6220.cfg
hilscher_netx10.cfg
hilscher_netx50.cfg
hilscher_netx500.cfg
icepick.cfg
imx.cfg
imx21.cfg
imx25.cfg
imx27.cfg
imx28.cfg
imx31.cfg
imx35.cfg
imx51.cfg
imx53.cfg
imx6.cfg
imx7.cfg
imx8m.cfg
is5114.cfg
ixp42x.cfg
k1921vk01t.cfg
k40.cfg
k60.cfg
ke0x.cfg
ke1xf.cfg
ke1xz.cfg
kl25.cfg
kl25z_hla.cfg Allow transports to override the selected target (hla configs unifica… Aug 11, 2014
kl46.cfg
klx.cfg
ks869x.cfg
kx.cfg
lpc11xx.cfg
lpc12xx.cfg
lpc13xx.cfg
lpc17xx.cfg
lpc1850.cfg
lpc1xxx.cfg
lpc2103.cfg
lpc2124.cfg
lpc2129.cfg
lpc2148.cfg
lpc2294.cfg
lpc2378.cfg
lpc2460.cfg
lpc2478.cfg
lpc2900.cfg
lpc2xxx.cfg
lpc3131.cfg
lpc3250.cfg
lpc40xx.cfg
lpc4350.cfg
lpc4357.cfg
lpc4370.cfg
lpc8xx.cfg
ls1012a.cfg
max32620.cfg
max32625.cfg
max3263x.cfg
mc13224v.cfg
mdr32f9q2i.cfg
nds32v2.cfg
nds32v3.cfg
nds32v3m.cfg
nrf51.cfg
nrf51_stlink.tcl
nrf52.cfg
nuc910.cfg
numicro.cfg
omap2420.cfg
omap3530.cfg
omap4430.cfg
omap4460.cfg
omap5912.cfg
omapl138.cfg
or1k.cfg
pic32mx.cfg
psoc4.cfg
psoc5lp.cfg
psoc6.cfg
pxa255.cfg
pxa270.cfg
pxa3xx.cfg
qualcomm_qca4531.cfg
quark_d20xx.cfg
quark_x10xx.cfg
readme.txt
renesas_r8a7790.cfg
renesas_r8a7791.cfg
renesas_r8a7794.cfg
renesas_rcar_gen3.cfg
renesas_s7g2.cfg
samsung_s3c2410.cfg
samsung_s3c2440.cfg target: Remove "-variant" argument Sep 22, 2014
samsung_s3c2450.cfg
samsung_s3c4510.cfg
samsung_s3c6410.cfg
sharp_lh79532.cfg
sim3x.cfg
smp8634.cfg
spear3xx.cfg
stellaris.cfg
stellaris_icdi.cfg
stm32_stlink.cfg
stm32f0x.cfg
stm32f0x_stlink.cfg
stm32f1x.cfg
stm32f1x_stlink.cfg
stm32f2x.cfg
stm32f2x_stlink.cfg
stm32f3x.cfg
stm32f3x_stlink.cfg
stm32f4x.cfg
stm32f4x_stlink.cfg
stm32f7x.cfg
stm32h7x.cfg
stm32h7x_dual_bank.cfg
stm32l0.cfg
stm32l0_dual_bank.cfg
stm32l1.cfg
stm32l1x_dual_bank.cfg
stm32l4x.cfg
stm32lx_stlink.cfg
stm32w108_stlink.cfg
stm32w108xx.cfg
stm32xl.cfg
stm8l.cfg
stm8l152.cfg
stm8s.cfg
stm8s003.cfg
stm8s105.cfg
str710.cfg
str730.cfg
str750.cfg
str912.cfg
swj-dp.tcl
test_reset_syntax_error.cfg
test_syntax_error.cfg
ti-ar7.cfg
ti-cjtag.cfg
ti_calypso.cfg
ti_cc13x0.cfg
ti_cc13x2.cfg
ti_cc26x0.cfg
ti_cc26x2.cfg
ti_cc3220sf.cfg
ti_cc32xx.cfg
ti_dm355.cfg
ti_dm365.cfg Remove jtag_rclk from target configs Oct 29, 2013
ti_dm6446.cfg
ti_msp432.cfg
ti_rm4x.cfg
ti_tms570.cfg
ti_tms570ls20xxx.cfg
ti_tms570ls3137.cfg
tmpa900.cfg
tmpa910.cfg
u8500.cfg
vybrid_vf6xx.cfg
xilinx_ultrascale.cfg
xmc1xxx.cfg
xmc4xxx.cfg
xmos_xs1-xau8a-10_arm.cfg tcl/target: Add config for XMOS XS1-XAU8A-10's ARM core Oct 30, 2015
zynq_7000.cfg
к1879xб1я.cfg

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.