Why is soft_reset_halt being used in the LPCxxxx init sequences?

I've tested LPC2478 and the reset init sequence seems flaky....

When I modify the reset init sequence to use "armv4_5 core_state arm"
and things seems *much* more stable, e.g. I can erase/program flash
without getting spurious error messages.

I'm not quite sure why soft_reset_halt would make things flaky. Could
it be two problems here?

1. don't use soft_reset_halt to set ARM state
2. soft_reset_halt is flaky

Thoughts?


-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
### Eclipse Workspace Patch 1.0
#P openocd
Index: tcl/target/lpc2478.cfg
===================================================================
--- tcl/target/lpc2478.cfg      (revision 2652)
+++ tcl/target/lpc2478.cfg      (working copy)
@@ -35,7 +35,7 @@
 
 $_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
 }
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to