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

RTC1_IRQHandler(); Error

Hi all,

I am debugging a program after compiling with no errors using the SDK 15.2.0 on a windows laptop and nRF52840 board. The program was designed to save 8 bytes of data to flash every 50ms for 3 days using fstorage. There should be enough storage on this particular board to allow for this, however I have not had a successful 3 day run yet. The latest bug in the code occurred at "void RTC1_IRQHandler();" in the call stack and about 90 minutes in with an error value of what looks to be 0x00026FC4, which doesn't make sense, at least not to me. I understand this has something to do with the timers, which I use to call the fstorage functions every 50ms. However, as a beginner programmer, I am unable to assess any issues at a lower level. Could someone give some suggestions as to what may be causing this issue?

Thanks,

Jack

Parents
  • Hi Jack

    What do you mean with "an error value of what looks to be 0x00026FC4"? This isn't an error present in our SDK as far as I know. Are you getting this error on your laptop? Also, have you done your math correctly here? 8 bytes every 50ms = 160 byte every second. Which means you would fill up the 1 MB Flash in approximately 105 minutes. Do you agree on this? 

    Best regards,

    Simon

  • Hi Simon,

    While you were right about my math and the error code being a mistake, I ran the test again and the same error occurred, however I got the correct error code this time: 0x00002006. Also, it was also noted that the timer stopped at BA 4A and stored this value in the flash before it stopped. Once again the call stack shows the latest function call before the app error handler was the RTC1_IRQHandler(). What else could be causing this error?

    Thanks,

    Jack

Reply
  • Hi Simon,

    While you were right about my math and the error code being a mistake, I ran the test again and the same error occurred, however I got the correct error code this time: 0x00002006. Also, it was also noted that the timer stopped at BA 4A and stored this value in the flash before it stopped. Once again the call stack shows the latest function call before the app error handler was the RTC1_IRQHandler(). What else could be causing this error?

    Thanks,

    Jack

Children
No Data
Related