Page 1 of 1

Debugging Fails with IAR and Segger J-Link

Posted: Mon Apr 30, 2018 8:32 pm
by 3F800000
While using IAR Embedded Workbench/J-Link to debug my SAMA5D2 (with XPlained board) the debugging session goes out to lunch. After stepping the log shows:
Mon Apr 30, 2018 13:18:23: Warning: CPU could not be halted
Then a message is displayed:
Target is running, Failed to stop the target. Maybe the target needs to be reset. Try Again? (Pressing NO aborts debug session)
Can anyone explain what is happening and how to mitigate this behavior? A colleague of mine has the same problem, using IAR/Segger but on a different ARM processor and entirely different code.