michal smulski <michal.smulski@ooma.com> telo target/board scripts
[fw/openocd] / tcl / target / lpc1768.cfg
index 59f11c5db821819f0900dda76762bd5b58efad20..fbf7117cae7f405636225da6397f01267a9da49f 100644 (file)
@@ -27,14 +27,15 @@ reset_config trst_and_srst srst_pulls_trst
 
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
+set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
 
 # LPC1768 has 32kB of SRAM on its main system bus (so-called Local On-Chip SRAM)
 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0
 
 $_TARGETNAME configure -event reset-init {
-       soft_reset_halt
+       # Force target into ARM state
+       armv4_5 core_state arm
        #do not remap 0x0000-0x0020 to anything but the flash
 #      mwb 0xE01FC040 0x01
        mwb 0xE000ED08 0x00