2021-06-20 01:13 AM
2021-06-20 02:27 AM
You will probably want to implement a Hard Fault Handler to provide specific information about the instructions and registers at the fault.
Check you have a sufficiently large stack and that your memory use/interaction does not exceed the memory limits of the part.
2021-06-28 05:28 AM
There is a view called "Fault Analyzer": Window > Show View > Other... > Debug > Fault Analyzer. It will read out some fault status registers and show the exception stack frame from when the CPU crashed which can be handy to help you understand the issue better.
Worth highlighting is also that all exception/interrupts in the vector table which does not a matching defined ISR handler function, will be be linked to Default_Handler().