X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=tcl%2Ftarget%2Flpc1768.cfg;h=fbf7117cae7f405636225da6397f01267a9da49f;hb=b4acbee47fcb29afc9958b4a9e74b9916a415dec;hp=59f11c5db821819f0900dda76762bd5b58efad20;hpb=59b295dbbef33ba4d59adb67bcfb81e7463b95d4;p=fw%2Fopenocd diff --git a/tcl/target/lpc1768.cfg b/tcl/target/lpc1768.cfg index 59f11c5db..fbf7117ca 100644 --- a/tcl/target/lpc1768.cfg +++ b/tcl/target/lpc1768.cfg @@ -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