cmsis-dap: add initial cmsis-dap support
[openocd.git] / tcl / target / lpc11uxx.cfg
blob6968fcd8789739bd8954556ee7859a988b5e115e
2 # NXP lpc11uxx family
4 source [find target/swj-dp.tcl]
6 if { [info exists CHIPNAME] } {
7         set _CHIPNAME $CHIPNAME
8 } else {
9         set _CHIPNAME lpc11uxx
12 if { [info exists ENDIAN] } {
13         set _ENDIAN $ENDIAN
14 } else {
15         set _ENDIAN little
18 # Work-area is a space in RAM used for flash programming
19 # By default use 6kB
20 if { [info exists WORKAREASIZE] } {
21    set _WORKAREASIZE $WORKAREASIZE
22 } else {
23    set _WORKAREASIZE 0x1800
26 if { [info exists CPUTAPID] } {
27         set _CPUTAPID $CPUTAPID
28 } else {
29         set _CPUTAPID 0x00000000
32 # delays on reset lines
33 adapter_nsrst_delay 100
34 #jtag_ntrst_delay 100
36 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
38 set _TARGETNAME $_CHIPNAME.cpu
39 target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME
41 $_TARGETNAME configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
43 #set _FLASHNAME $_CHIPNAME.flash
44 #flash bank $_FLASHNAME lpc2000 0 0 0 0 $_TARGETNAME
46 # if srst is not fitted use SYSRESETREQ to
47 # perform a soft reset
48 cortex_m reset_config sysresetreq