Page 1 of 1

system_rtc_mem_read fails intermittently

PostPosted: Thu Jul 02, 2020 8:47 pm
by prittenhouse
Has anyone seen system_rtc_mem_read() return false? The doc's don't seem to provide any details on what that means other the command failed.

I am seeing an intermittent failure of the call and I'm trying to understand what could be causing it to fail. My code always calls it with the same three constant values, so I don't think it is related to the inputs. I'm wondering if it might be a hardware problem or maybe a race condition of some kind. So far I have only seen it on one device so that also makes me think it might be hardware related.

My code calls system_rtc_mem_read() after a deep sleep to restore state. My next step will be to see if I can reproduce it with a simple test case but I wanted to check if anyone had any experience with this condition first.

Any insight would be greatly appreciated.

Best regards,