Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #13619
    LIM PHANG MOH
    Keymaster

    Hi antapc,

    Thank you for posting your findings here. Although my understanding is SysTick would not be running during standby/sleep, leaving only the RTC to run. Unless there is a possible race condition upon waking up that locks the board up.

    #13645
    antapc
    Participant

    Hi Phang Moh,

    I think the gist of it was the system needs to wakeup from __WFI() before SysTick starts firing off events due to a WDT issue, hence the need to disable it prior to going to sleep and then enabling once the system and things like RAM are ready. I forgot to mention in my post that post #18 in that Atmel forum link explains what’s going on. This of course could be totally unrelated to Thomas’s issue but I just thought I’d mention it in case it might help.

    On a side note too: Debugging sleep code via a connected USB seems to cause hangs once you hit about the 40 cycle mark…at least in my setup anyway. No issues at all when USB is disconnected…apart from the odd very rare random lockup during sleep – which might be sorted…?

    #13650
    thomasvergote
    Participant

    Thanks antapc and Phang Moh!

    Just for info: my main problem was related to the use of LoraWAN, where logging stopped after a few days until resetting. When I went back to Lora with the radiohead library, I got good performance, with now a few months of logging. Any recurring issues now are related to external factors…

    I do have loggers (different from the ones that triggered this discussion) which are continuously USB powered with no problems whatsoever.

Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.