2024-11-07 08:50 AM - last edited on 2024-11-07 11:32 AM by SofLit
Hello all I am facing a issue my program works however when is executes this part it runs only once after that it ran into hard fault. I have attached the snap of structure part of code which cause it and also exception observation please let me know if you do have any suggestion.
2024-11-07 09:11 AM
On debugging Hard Faults - both Cortex-M in general, and STM32 in particular:
and please scroll to the top of that thread for how to properly post source code - not as images ...
2024-11-07 11:31 AM
Hello,
Need to read this article on how to debug the hard fault.
2024-11-07 02:38 PM
Identify the processor
Show the registers
Show the code (disassembly) at the failure
Reading something from a bad pointer? Misaligned?
https://github.com/cturvey/RandomNinjaChef/blob/main/KeilHardFault.c
I perhaps need to migrate this to GNU/GCC variant, and g_pfnVectors