This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

**JLink Warning: CPU could not be halted

I am using SDK9.0, J-Link Lite-Cortex-M, HW: V8.00, DLL: V4.98C

But getting this error just in this project when debugging: debug.txt

It was working with this project. not sure if this is caused by new SDK upgrade from 8 to 9 or I did anything.

Thanks

Edit: Added debug screenshot for a Nordic example. which is working. debug.JPG

Parents
  • Sorry, found that problem. It was a hardware bug: This is a battery backed up system. I used to debug with battery in the circuit, so no problem. Then I took the battery away without thinking it will cause any issues. But today I found out without battery in the system, a DC/DC circuit controlled by software is generating enough noise to reset the CPU when software is trying to turn it on. Battery was a big capacitor to absorb the "kick".

    Anyway, good new. It solved debug problem, and more importantly exposed a hardware issue.

Reply
  • Sorry, found that problem. It was a hardware bug: This is a battery backed up system. I used to debug with battery in the circuit, so no problem. Then I took the battery away without thinking it will cause any issues. But today I found out without battery in the system, a DC/DC circuit controlled by software is generating enough noise to reset the CPU when software is trying to turn it on. Battery was a big capacitor to absorb the "kick".

    Anyway, good new. It solved debug problem, and more importantly exposed a hardware issue.

Children
No Data
Related