2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-19 13:02:18 +10:00
openocd/tcl/target
Tarek BOCHKATI c999fcef3e flash/stm32l4x: add support of STM32WLEx devices
STM32WLEx devices are based on arm Cortex-M4 running at 48MHz,
contains a single bank of maximum 256 Kbytes of flash memory.

there is 3 variants with different Flash/RAM sizes:
  STM32WLE5JC : 256K/64K
  STM32WLE5JB : 128K/48K
  STM32WLE5J8 :  64K/20K

the work-area size is set to 20 kb to fit in STM32WLE5J8

Change-Id: Ie8e186fe4be97cbc25c53ef0ade4b4dbbcee6f66
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5450
Tested-by: jenkins
Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2020-03-23 21:52:10 +00:00
..
infineon tcl: fix remaining scripts after rework adapter commands 2020-02-06 21:15:55 +00:00
marvell
1986ве1т.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
adsp-sc58x.cfg
aduc702x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
aducm360.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
allwinner_v3s.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
alphascale_asm9260t.cfg
altera_fpgasoc_arria10.cfg
altera_fpgasoc.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
am335x.cfg
am437x.cfg
amdm37x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ar71xx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
arm_corelink_sse200.cfg
armada370.cfg
at32ap7000.cfg
at91r40008.cfg
at91rm9200.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
at91sam3XXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam4c32x.cfg
at91sam4cXXX.cfg
at91sam4lXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam4sd32x.cfg
at91sam4sXX.cfg
at91sam4XXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam7a2.cfg
at91sam7se512.cfg
at91sam7sx.cfg
at91sam7x256.cfg
at91sam7x512.cfg
at91sam9.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam9g10.cfg
at91sam9g20.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam9g45.cfg
at91sam9rl.cfg
at91sam9260_ext_RAM_ext_flash.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91sam9260.cfg
at91sam9261.cfg
at91sam9263.cfg
at91samdXX.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
at91samg5x.cfg
atheros_ar2313.cfg
atheros_ar2315.cfg
atheros_ar9331.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
atheros_ar9344.cfg
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
atsamv.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
avr32.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
bcm47xx.cfg
bcm281xx.cfg
bcm4706.cfg
bcm4718.cfg
bcm5352e.cfg
bcm6348.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +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 coding style: add newline at end of text files 2020-02-24 10:30:53 +00:00
c100helper.tcl tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
c100regs.tcl
cc2538.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
cs351x.cfg
davinci.cfg
dragonite.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
dsp56321.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
dsp568013.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
dsp568037.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
efm32_stlink.cfg
efm32.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
em357.cfg
em358.cfg
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
faux.cfg
feroceon.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
fm3.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
fm4_mb9bf.cfg
fm4_s6e2cc.cfg
fm4.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
gp326xxxa.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
hi3798.cfg
hi6220.cfg
hilscher_netx10.cfg
hilscher_netx50.cfg
hilscher_netx500.cfg
icepick.cfg
imx6.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
imx6sx.cfg
imx6ul.cfg
imx7.cfg
imx7ulp.cfg
imx8m.cfg
imx21.cfg
imx25.cfg
imx27.cfg
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
imx51.cfg
imx53.cfg
imx.cfg
is5114.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ixp42x.cfg
k40.cfg
k60.cfg
k1921vk01t.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
ke0x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ke1xf.cfg
ke1xz.cfg
kl25.cfg
kl25z_hla.cfg
kl46.cfg
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 target: add examine-fail event 2020-03-12 09:43:55 +00:00
lpc1xxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc2xxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc8nxx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc8xx.cfg
lpc11xx.cfg
lpc12xx.cfg
lpc13xx.cfg
lpc17xx.cfg
lpc40xx.cfg
lpc84x.cfg
lpc1850.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc2103.cfg
lpc2124.cfg
lpc2129.cfg
lpc2148.cfg
lpc2294.cfg
lpc2378.cfg
lpc2460.cfg
lpc2478.cfg
lpc2900.cfg
lpc3131.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc3250.cfg
lpc4350.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
lpc4357.cfg
lpc4370.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ls1012a.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +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
nds32v3.cfg
nds32v3m.cfg
nhs31xx.cfg
nrf51_stlink.tcl
nrf51.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
nrf52.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
nuc910.cfg
numicro.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
omap2420.cfg
omap3530.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
omap4430.cfg
omap4460.cfg
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
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
psoc6.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00: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
quark_x10xx.cfg
readme.txt tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00: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/target: Unify Renesas R-Car JTAG reset config 2020-03-09 05:59:39 +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
samsung_s3c2410.cfg
samsung_s3c2440.cfg
samsung_s3c2450.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
samsung_s3c4510.cfg
samsung_s3c6410.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
sharp_lh79532.cfg
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
spear3xx.cfg
stellaris_icdi.cfg
stellaris.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm8l152.cfg
stm8l.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm8s003.cfg
stm8s103.cfg Add target config for STM8S103 chip... 2020-03-12 09:41:41 +00:00
stm8s105.cfg
stm8s.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32_stlink.cfg
stm32f0x_stlink.cfg
stm32f0x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f1x_stlink.cfg
stm32f1x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f2x_stlink.cfg
stm32f2x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f3x_stlink.cfg
stm32f3x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f4x_stlink.cfg
stm32f4x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32f7x.cfg tcl: Remove executable bit 2020-02-08 23:27:18 +00:00
stm32g0x.cfg Flash driver for STM32G0xx and STM32G4xx 2020-03-16 15:25:10 +00:00
stm32g4x.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 tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32l0_dual_bank.cfg
stm32l0.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32l1.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32l1x_dual_bank.cfg
stm32l4x.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
stm32lx_stlink.cfg
stm32w108_stlink.cfg
stm32w108xx.cfg
stm32wbx.cfg tcl: fix remaining scripts after rework adapter commands 2020-02-06 21:15:55 +00:00
stm32wlx.cfg flash/stm32l4x: add support of STM32WLEx devices 2020-03-23 21:52:10 +00:00
stm32xl.cfg
str710.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
str730.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00: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
swm050.cfg tcl: fix remaining scripts after rework adapter commands 2020-02-06 21:15:55 +00:00
test_reset_syntax_error.cfg
test_syntax_error.cfg
ti_calypso.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_cc13x0.cfg
ti_cc13x2.cfg
ti_cc26x0.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_cc26x2.cfg
ti_cc32xx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_cc3220sf.cfg
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: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_rm4x.cfg
ti_tms570.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
ti_tms570ls20xxx.cfg
ti_tms570ls3137.cfg
ti-ar7.cfg
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
u8500.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
vybrid_vf6xx.cfg tcl: replace the deprecated commands with "adapter ..." 2020-01-29 06:34:43 +00:00
xilinx_zynqmp.cfg
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
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.