Any general purpose retention register allotted for users?
Posted: Mon Jun 11, 2018 6:31 pm
I would like to track the number of crashes I see on my device and when it hits 100, fall back to factory mode, and do OTA. I would like to use a general purpose retention register to hold this fail_counter, this way it is accessible from boot-loader as well as app code. However ESP-IDF reserves some of these registers. Looks like one used internally is RTC_APB_FREQ_REG.
Other alternative, that I do not like:
-RTC ram seems to have some weird effects and crashes my app, if not used correctly.
-Custom linker into RTC ram -- complicated
-NVS too many P/E cycles
Easiest is GPRR. I wanted to know if there some registers specifically allotted for application-layer/users. Please advise which ones I can use (if any).
Thanks
Other alternative, that I do not like:
-RTC ram seems to have some weird effects and crashes my app, if not used correctly.
-Custom linker into RTC ram -- complicated
-NVS too many P/E cycles
Easiest is GPRR. I wanted to know if there some registers specifically allotted for application-layer/users. Please advise which ones I can use (if any).
Thanks