I am using a nRF51422 from Nordic Semiconductor with has an ARM Cortex M0 CPU.
While trying to use their Bluetooth Mesh SDK I get a Hard Fault.
I am trying to debug the example code to figure out what the problem is, and i am wondering under what circumstances a hard fault occurs?
I have a suspicion it might be an interrupt or watch dog timer causing the fault, as it is not generated at the exact same time when running the program multiple times.
But mostly my problem is not knowing what can cause a hard fault.
Hope this discussion thread helps.
https://community.arm.com/iot/embedded/f/discussions/3257/debugging-a-cortex-m0-hard-fault
regards,
Joseph