aboutsummaryrefslogtreecommitdiffstats
path: root/openocd/cc32rs512.cfg
blob: 2a9754826a4d1e5e715307a7a743a42437bcfe26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
reset_config trst_and_srst
source [find interface/ftdi/jtagkey.cfg]
#jtag_rclk 1000
adapter_khz 100


set _CHIPNAME cc32rs512

set _ENDIAN little

set _CPUTAPID 0x11701f0f

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

set _TARGETNAME $_CHIPNAME.cpu

target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi

set _FLASHNAME $_CHIPNAME.flash0
# driver base_addr size chip_width bus_width target_number
flash bank $_FLASHNAME cc32rs512 0x00000000 0x80000 0 0 $_TARGETNAME