Skip to main content
jaspervandenakker
Associate III
March 22, 2013
Question

HardFault

  • March 22, 2013
  • 11 replies
  • 2528 views
Posted on March 22, 2013 at 21:09

Hello,

I have a problem which i cannot resolve.

My first code, a DCF77 receiver which update my RTC once a day runs fine without any problems.

Now, i have added a new function to calculate the Sunrise or Sunset time for my location (Lat, Lon)

In that function, another function is called to calculate someting. The first time this function is called, this function will be executed and works fine. the second time, i get a HardFault and i can not find out how.

Sometimes, when it is running in Debugmode and i step slowly thru my code, it executes all my functions without any HardFault.

When i comment the function call my program works fine. Can anybody help me?

I have attached a screenshot of my debugger. As you can see it stuck at __Float64_mul

I guess that it has something to do with the float64. But this function is executed earlier and does not cause a hard fault
    This topic has been closed for replies.

    11 replies

    Tesla DeLorean
    Guru
    March 26, 2013
    Posted on March 26, 2013 at 20:57

    Dueling posts, glad to hear you fixed it.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..