nRF5 SDK v14.2.0
Macros
HardFault default handler for debugging and release configuration

Macros

#define HARDFAULT_HANDLER_ENABLED
 Enabling Hardfault handler module. More...
 
#define HARDFAULT_HANDLER_GDB_PSP_BACKTRACE
 Bypass the GDB problem with multiple stack pointers backtrace. More...
 

Detailed Description

Macro Definition Documentation

#define HARDFAULT_HANDLER_ENABLED

Enabling Hardfault handler module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define HARDFAULT_HANDLER_GDB_PSP_BACKTRACE

Bypass the GDB problem with multiple stack pointers backtrace.

There is a known bug in GDB which causes it to incorrectly backtrace the code when multiple stack pointers are used (main and process stack pointers). This option enables the fix for that problem and allows to see the proper backtrace info. It makes it possible to trace the code to the exact point where a HardFault appeared. This option requires additional commands and may temporarily switch MSP stack to store data on PSP space. This is an optional parameter - enable it while debugging. Before a HardFault handler exits, the stack will be reverted to its previous value.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated