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

Monitor Mode and hardfault breaks

I've implemented monitor mode debugging as described here and it works great. When I get a hard fault, it doesn't break in the IDE anymore. So it appears to be running fine, but if you halt, you can see that's in the hardfault handler. Is there anyway to make it break like it does in halt mode?

I'm working on a custom board based on the nRF52832. I'm developing on Win 8.1 using SES and a J-Link Plus. SDK version 14.1.

  • Hi,

    The HardFault has a higher priority than the DebugMonitor. Therefore the system will run in the HardFault handler and does not jump to DebugMonitor handler on the vector catch set on HardFault. Vector catches in general are designed to work with halt mode debugging only.

    We will check if we can improve J-Link to be able to detect that the system is running in a fault handler. But nothing promised.

    Regards, Johannes

Related