Sporadic debug launch issues after upgrade

cancel
Showing results for 
Search instead for 
Did you mean: 

Sporadic debug launch issues after upgrade

206 Views
alannilsson
Contributor II

I have recently upgraded from 10.2 to 11.1.1.  Since then I am now sporadically seeing the following error when I try to launch a debug session:

 

following reset read of core registers failed - Ep(08). Cannot access core regs when target running.

Target error from Commit Flash write: Ep(08). Cannot access core regs when target running.

 

I cannot seem to find rhyme or reason, sometimes just rebuilding and retrying works, sometimes unplugging LPC links and replugging fixes it.  Other time I just have to keep trying multiple times and it will succeed.  Power cycling target has no effect.

I have never seen this until upgrading and I can't reliably figure out why I see it.  Anyone have any idea what it means and how to clear it.

0 Kudos
4 Replies

172 Views
alannilsson
Contributor II

So this does the same as when I routinely quite MCUXpresso go and find redline server, kill it and relaunch the whole thing.  The fact that there is a specific button in the GUI to 'clean up' is ridiculous.  Why not just fix the server so it doesn't lock up?

0 Kudos

183 Views
alannilsson
Contributor II

This has happened on multiple projects now.  It never happened on the same projects in 10.2.

 

What is the 'Cleanup Debug' button do?  Whats its purpose, why is it needed?

0 Kudos

178 Views
ErichS
Senior Contributor III

 

>>What is the 'Cleanup Debug' button do?  Whats its purpose, why is it needed?

Eclipse and GDB are using a client-server architecture. And it could be that the server is not terminated or blocking, making a connection not possible. The 'Clean Debug' tries to kill these processes.

See point 9 in https://mcuoneclipse.com/2014/11/03/debugging-failure-check-list-and-hints/

or https://mcuoneclipse.com/2012/06/01/killing-me-softly-zombies-and-debugger-engines/

 

I hope this helps,

Erich

0 Kudos

191 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

How about disconnect the debugger before next time debug:

2020-11-02_16-45-20.jpg

 

And maybe related your project, you can try to debug a simple demo project to test.

 

Regard,

Alice

0 Kudos