Software

Arm® Implementations

There are two ways of sampling the program counter on an Arm Cortex core. The first is using an optional module in the debug system that emits the program counter to the debugger without any core impact. The program counter is emitted on the SWO pin.

As not all Cortex implementation can emit the program counter, Microchip Studio also supports doing a periodical readout of the program counter while the core is running. This is possible as most Cortex devices support the readout of memory while the core is running, with a minor impact on the running application as the debug system needs to access the memory bus.