I'm using the J-Link 4.95d Beta software to debug an RP2040.
As per this StackOverflow question, I've found that single-stepping an instruction that writes to the PENDSVSET flag causes the PendSV to register as pending, but to never enter the PendSV handler.
As can be seen, PENDSVSET reads as set and VECTPENDING reads as 0xe - indefinitely, regardless of stepping and/or free-running subsequent instructions (at least until another exception occurs).
[img]https://i.stack.imgur.com/i4P6H.png[/img]
I wonder if this may be due to the J-Link not performing the step operation exactly as required (e.g. manipulating DHCSR.C_MASKINTS incorrectly) - or if it's simply the way the Cortex-M0+ works in this situation?
Cheers
Jeremy
PS: Many thanks for Beta-releasing the RP2040 support so promptly!
As per this StackOverflow question, I've found that single-stepping an instruction that writes to the PENDSVSET flag causes the PendSV to register as pending, but to never enter the PendSV handler.
As can be seen, PENDSVSET reads as set and VECTPENDING reads as 0xe - indefinitely, regardless of stepping and/or free-running subsequent instructions (at least until another exception occurs).
[img]https://i.stack.imgur.com/i4P6H.png[/img]
I wonder if this may be due to the J-Link not performing the step operation exactly as required (e.g. manipulating DHCSR.C_MASKINTS incorrectly) - or if it's simply the way the Cortex-M0+ works in this situation?
Cheers
Jeremy
PS: Many thanks for Beta-releasing the RP2040 support so promptly!