This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Occasional HardFault in nRF51822

Hi All,

Setup:

SoC: nRF51822

SDK: 11.0.0

Softdevice: S130 2.0.1

I am facing occasional HardFault and It is happening randomly. I need to test device few hours to generate it and still no guarantee it will generate. It seems it is stack overflow issue.

My stack end address is 0x200075b8

I have captured below screen shot when HardFault handler called. 

Can someone please point which instruction is causing issue?

Regards,

Tarun

Parents
  • I found It :).

    Actually, my two function call each other indefinitely in certain situation which was making stack overflow.

    Previous LR was 0x000253BB (4 byte before green box). So. I derived problem should be at that instruction. I investigated around that instruction and found a condition when two function can call each other indefinitely.

    Thanks,

    Tarun

Reply
  • I found It :).

    Actually, my two function call each other indefinitely in certain situation which was making stack overflow.

    Previous LR was 0x000253BB (4 byte before green box). So. I derived problem should be at that instruction. I investigated around that instruction and found a condition when two function can call each other indefinitely.

    Thanks,

    Tarun

Children
No Data
Related