All LPC2xxx chips are little endian and that cannot be changed - update config scripts
[openocd.git] / tcl / target / lpc2103.cfg
blob1e79dcb95389babb1b7cb5cb896a538d520d9efb
1 # NXP LPC2103 ARM7TDMI-S with 32kB Flash and 8kB SRAM, clocked with 12MHz crystal
3 if { [info exists CHIPNAME] } {
4    set _CHIPNAME $CHIPNAME
5 } else {
6    set _CHIPNAME lpc2103
9 if { [info exists CPUTAPID ] } {
10    set _CPUTAPID $CPUTAPID
11 } else {
12    set _CPUTAPID 0x4f1f0f0f
15 # LPC2000 -> SRST causes TRST
16 reset_config trst_and_srst srst_pulls_trst
18 # reset delays
19 adapter_nsrst_delay 100
20 jtag_ntrst_delay 100
22 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
24 set _TARGETNAME $_CHIPNAME.cpu
25 target create $_TARGETNAME arm7tdmi -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
27 # 8kB of internal SRAM
28 $_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x2000 -work-area-backup 0
30 # 32kB of internal Flash, core clocked with 12MHz crystal
31 # flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
32 set _FLASHNAME $_CHIPNAME.flash
33 flash bank $_FLASHNAME lpc2000 0x0 0x8000 0 0 $_TARGETNAME lpc2000_v2 12000 calc_checksum