I'm struggling to debug my target device. I'm using a Segger J-Link and connectign via JTAG
Sometimes the app downloads and runs to my first break-point without a hitch. However sometimes when launching a debug session Codewarior will come up with an error.
"Failed to resume target process.
Not allowed to access registers while running"
I'm then stuck and can't debug my target anymore. I can eventually manage to get debug working again via a combination of connecting via J-Flash erasing the device and power cycling both my target and the j-link. However I haven't yet worked out what combination gets things working again.
What causes the error "Not allowed to access registers while running" to occur (other than the obvious that the J-Link can't access the registers). Is the J-Link unable to stop the target or something?
Any help appreciated.