This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
2012-08-19 12:26:41 +00:00
|
|
|
reset_config trst_and_srst
|
|
|
|
source [find interface/ftdi/jtagkey.cfg]
|
|
|
|
#jtag_rclk 1000
|
2012-08-23 20:50:56 +00:00
|
|
|
adapter_khz 100
|
2012-08-19 12:26:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|