Skip to main content
igor2399
Associate
March 23, 2011
Question

Hard Fault problem

  • March 23, 2011
  • 5 replies
  • 1103 views
Posted on March 23, 2011 at 10:10

Hard Fault problem

    This topic has been closed for replies.

    5 replies

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

    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    igor2399
    igor2399Author
    Associate
    May 17, 2011
    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.

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