Re: [Openocd-development] lm3s6965 flashing oddity

2008-11-02 Thread Rick Altherr
On Nov 2, 2008, at 1:17 PM, Øyvind Harboe wrote: Hmm, well, it fixes the case where the the target fails to halt. It doesn't fix the case where we halt at the wrong address. Time to keep digging. Please check with the latest repository. Perhaps you got bitten by the target_create() bug t

Re: [Openocd-development] lm3s6965 flashing oddity

2008-11-02 Thread Øyvind Harboe
> Hmm, well, it fixes the case where the the target fails to halt. It doesn't > fix the case where we halt at the wrong address. Time to keep digging. Please check with the latest repository. Perhaps you got bitten by the target_create() bug that I just committed a fix for... -- Øyvind Harb

Re: [Openocd-development] lm3s6965 flashing oddity

2008-11-02 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-d

Re: [Openocd-development] lm3s6965 flashing oddity

2008-11-02 Thread Øyvind Harboe
> 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, PRIMAS

Re: [Openocd-development] lm3s6965 flashing oddity

2008-10-31 Thread Rick Altherr
On Oct 31, 2008, at 10:52 PM, Rick Altherr wrote: On Oct 31, 2008, at 8:55 PM, Rick Altherr wrote: On Oct 31, 2008, at 2:35 AM, Øyvind Harboe wrote: The attached patch will address *some* of the problems you have found. If you can help with testing and get this committed, perhaps we can

Re: [Openocd-development] lm3s6965 flashing oddity

2008-10-31 Thread Rick Altherr
On Oct 31, 2008, at 8:55 PM, Rick Altherr wrote: On Oct 31, 2008, at 2:35 AM, Øyvind Harboe wrote: The attached patch will address *some* of the problems you have found. If you can help with testing and get this committed, perhaps we can see more clearly what's going on once the first coup

Re: [Openocd-development] lm3s6965 flashing oddity

2008-10-31 Thread Rick Altherr
On Oct 31, 2008, at 2:35 AM, Øyvind Harboe wrote: The attached patch will address *some* of the problems you have found. If you can help with testing and get this committed, perhaps we can see more clearly what's going on once the first couple of bugs are fixed. The attached patch improves e

Re: [Openocd-development] lm3s6965 flashing oddity

2008-10-31 Thread Rick Altherr
On Oct 31, 2008, at 2:35 AM, Øyvind Harboe wrote: The attached patch will address *some* of the problems you have found. If you can help with testing and get this committed, perhaps we can see more clearly what's going on once the first couple of bugs are fixed. The attached patch improves e

Re: [Openocd-development] lm3s6965 flashing oddity

2008-10-31 Thread Øyvind Harboe
The attached patch will address *some* of the problems you have found. If you can help with testing and get this committed, perhaps we can see more clearly what's going on once the first couple of bugs are fixed. The attached patch improves error handling. Testing is needed for each point below

[Openocd-development] lm3s6965 flashing oddity

2008-10-31 Thread Rick Altherr
I've been poking at this for a few days but my understanding of JTAG is limited so I'm not getting much further. It seems that when I use OpenOCD to flash an lm3s6965 it will fail under certain circumstances. I don't have any other Cortex-M3 targets to test, but I believe the bug is in th