AnsweredAssumed Answered


Question asked by Jasper298 on Mar 22, 2013
Latest reply on Mar 26, 2013 by Clive One

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