persistent memory?!?
persistent memory?!?
Is there a way to store information into memory (not flash) even during a soft/hardreset ?
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: persistent memory?!?
as described in this thread viewtopic.php?t=3154 it is possible to use rtc memory (don't know how many bytes you can store in there), but it won't survive a power disconnect, only a reset.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: persistent memory?!?
On a pyboard there are 4Kbytes of NVRAM. It survives a power cycle as long as VBACK is active.
Re: persistent memory?!?
There’s no dedicated api for writing to readonly menory
Sent from my iPhone using Tapatalk Pro
Sent from my iPhone using Tapatalk Pro
Re: persistent memory?!?
RTC memory seems not to work on Odroid Go with ESP32 LoBo v3.2.24
Values set with rtc.write_string() are deleted after soft reset.
Does the Odroid Go has NVRAM? It has 4MB PSRAM... Is it battery buffered RAM ? Any how to read/write it from micropython?
Values set with rtc.write_string() are deleted after soft reset.
Does the Odroid Go has NVRAM? It has 4MB PSRAM... Is it battery buffered RAM ? Any how to read/write it from micropython?
Re: persistent memory?!?
RTC memory is preserved only after deepsleep reset.
You can use machine.deepsleep() with a very short sleep time (for eaxmple 1 ms) instead of soft reset. The system will be reset and all RTC variables preserved.
You can also use ESP32 NVS (Non-volatile storage) to store various variable types. The variables value will be preserved after any kind of reset (even if the power is removed).
NVS is part of the Flash memory.
See the Wiki for more details.