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... | |
#define HARDFAULT_HANDLER_ENABLED |
Enabling Hardfault handler module.
Set to 1 to activate.
#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.