Hardfault exception on Cortex M0
The hardfault exception often occurs during system operation.
The R14(LR) is 0xFFFFFFF9 in the exception handler(bit2 = 0).
So the main stack(MSP) is used, and that value is 0x20003778 like the follwing picture.
The following picture is the memory value from 0x20003778(MSP).
The LR is 0x4001000c, and this location is SYSCFG external interrupt configuration register 2 at the STM32L0x2.
Why does the hardfault exception occur at this point?
What should I do check to debug this problem?
Thanks