Updated reset event handling in omap3530 cfg
[fw/openocd] / tcl / target / lpc2478.cfg
index 2cd760c3987be387c6b8e9bcda496ca6481afc8f..1d2058b0440afdcd12e51a05093fbcb7f32b50e6 100644 (file)
@@ -27,7 +27,7 @@ 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 arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
 
 # LPC2478 has 64kB of SRAM on its main system bus (so-called Local On-Chip SRAM)
@@ -35,7 +35,7 @@ $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-s
 
 $_TARGETNAME configure -event reset-init {
        # Force target into ARM state
-       soft_reset_halt
+       armv4_5 core_state arm
        # Do not remap 0x0000-0x0020 to anything but the Flash
        mwb 0xE01FC040 0x01
 }