Hello,
I caused a hardfault error and triggered the HardFault_Handler in "hardfault_handler_gcc.c". But instead seeint its source, I could only see the message no source available for "0x0" in eclipse.
What went wrong ?
Best regards,
Hello,
I caused a hardfault error and triggered the HardFault_Handler in "hardfault_handler_gcc.c". But instead seeint its source, I could only see the message no source available for "0x0" in eclipse.
What went wrong ?
Best regards,
The interrupts handler are declared as [weak] in the startup file, which means that you can re-declare it in your application. Then e.g. make a call to the NVIC_SystemReset function to make your program reset on hardfault. But, the default behavior is to run in infinite loops, which is usefully for debugging.
See the hardfault_implementation.c
file located in SDK_folder\components\libraries\hardfault\hardfault_implementation.c
The interrupts handler are declared as [weak] in the startup file, which means that you can re-declare it in your application. Then e.g. make a call to the NVIC_SystemReset function to make your program reset on hardfault. But, the default behavior is to run in infinite loops, which is usefully for debugging.
See the hardfault_implementation.c
file located in SDK_folder\components\libraries\hardfault\hardfault_implementation.c