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

Debugging with PPI

The PPI has been configured to transmit a message every time the timer triggers ( every 1ms).

I'm using IAR Embedded Workbench 7.40.3.8938 as my IDE .

When the system is in debug if i press the 'break' button, the code appears to stop execution, showing the line currently being executed. I noticed that radio transmissions were still occurring. I removed the PPI shortcuts and replaced it with the manual transmission method. As expected the transmissions stopped.

Would you expect the PPI to carry on running when the system is paused in the debugger?

Is there any way to pause the PPI via the debugger?

  • Yes it's expected that PPI would carry on when the processor is paused in debug. PPI is explicitly designed to work entirely separately from the processor, that's how it can route tasks and events even when the processor is sleeping. Think of it almost as a separate programmed system on the chip.

    No there's no simple way to pause the PPI via the debugger. I suppose if you had the ability to cause the debugger to write to some registers on halt, you could write the PPI disable register, but I can't think of an easy way to do that nor to turn it back on again afterwards.

Related