> Found the source of the problems with Cortex-M3 parts.  In cortex_m3_resume
> if debug_execution is non-zero, the PRIMASK and xSPR are modified.  The
> problem is that while the register value is changed, it isn't marked valid
> or dirty.  So, when armv7m_restore_context() is called later, PRIMASK and
> xSPR aren't written to the device.  By marking them valid and dirty,
> flashing an LM36965 works every time.

Committed.

Thanks!


-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to