Hard fault : Cortex M0+ platform.

Hello, 

Micro-Controller platform: STM32L0x1

Environment: Bare-Metal (No OS)

Brief description of the problem:

From interrupt context, we are trying to copy information received to EEPROM. Soon after entering into this routine, we it hard fault. 

I started to debug according to the information provided here, 

https://community.arm.com/developer/ip-products/system/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault

But still can't exactly figure out the reason. In fact just to verify, even if we don't write to EEPROM the program still crashed. I have attached register information here. 

I suspect it could be something related to stack corruption but unable to prove my theory. Any direction to solve this mystery will be greatly appreciated. 

Thank you. 

Parents Reply Children
More questions in this forum