lpcware

LPC43xx debugging on the M0, problems with breakpoints

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by sh on Fri Oct 11 03:54:21 MST 2013
I am trying to debug code running on the Cortex-M0 using the LPC4330-xplorer and the LPC-Link2 with LPCXpresso 6.04 on a Windows 8 machine.

My problem is that even without any breakpoints defined, I get error messages like this:

Target error from Set break/watch: Ep(20). Unable to set an execution break - no resource available.


This happens even when just moving execution to a new address.

The corresponding Redlink command is displayed as:

Command In: $Z0,14057138,2


As you can see, I'm trying to set an execution address in the SPIFI area.

The Cortex-M0 has two hardware breakpoints available, doesn't it? Why is there no resource available anymore, then? And why is an execution break attempted when I just want to move to another address, without restarting execution yet? Would it not suffice for the debugger to just change the content of the PC register?

More generally, how does one best cope with the limitations of hardware debug support of the M0 core when executing from flash (internal or external)? Any tips?

Outcomes