cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault problem

igor2399
Associate II
Posted on March 23, 2011 at 10:10

Hard Fault problem

5 REPLIES 5
Posted on May 17, 2011 at 14:29

08002ace:   str r2, [r3, #0] << Could it be faulting here. What is in R3?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
igor2399
Associate II
Posted on May 17, 2011 at 14:29

igor2399
Associate II
Posted on May 17, 2011 at 14:29

Yes, the problem was that!

There was an uninitialized pointer :(

And it wasn't signaled by the IDE!! :( :(

I did a lot of noise for a stupid problem... Sorry!

Thaks Clive1 for the illuminating hint! :)

I.

Posted on May 17, 2011 at 14:29

No problem, you'll catch it the next time.

NULL or invalid pointers are a classic cause of Hard Faults, and the address you were pointing to looked just fine. So I looked at the next most likely reason.

Was Atollic pointing you at this address, or do you have some fault handler code, like Joseph Yiu's example?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
igor2399
Associate II
Posted on May 17, 2011 at 14:29