Go Down

Topic: EEPROM emulation on the new Nano types (Read 426 times) previous topic - next topic

RudolfAtRTC

The Nano Classic an also Nano Every has a couple of EEPROM. The other new types
 - Nano 33 IOT
 - Nano 33 BLE [Sense]
has no EEPROM. So the compatibility has one big hole more!
Some ESP2866 type emulates EEPROM at a FLASH page. This should be done please for the both new types w/o EEPROM.
I need this property for storing some SSID/password pairs.

Juraj

#1
Sep 22, 2019, 06:37 pm Last Edit: Sep 22, 2019, 06:38 pm by Juraj
for SAMD (33 IoT) https://github.com/cmaglie/FlashStorage

RudolfAtRTC

Thank you - but sorry, it doesn't help for me. In the readme.md is a question with a very exact answer:

Q: The content of the FlashStorage is erased each time a new sketch is uploaded?
A: Yes, every time you upload a new sketch, the previous content of the FlashStorage is erased.

During program optimisation there are some new uploads...
When I have stored some value pairs, they should stay permanently - even like an EEPROM.
The ESP8266 people have a solution, it looks like a special file, available also after reset/powerup and upload a new sketch.

Juraj

Thank you - but sorry, it doesn't help for me. In the readme.md is a question with a very exact answer:

Q: The content of the FlashStorage is erased each time a new sketch is uploaded?
A: Yes, every time you upload a new sketch, the previous content of the FlashStorage is erased.

During program optimisation there are some new uploads...
When I have stored some value pairs, they should stay permanently - even like an EEPROM.
The ESP8266 people have a solution, it looks like a special file, available also after reset/powerup and upload a new sketch.
the source of the Q&A?

RudolfAtRTC

OK - very simple: I followed your link (to Github cmaglie/FlashStorage). In the "readme.md" there is a chapter "FAQ" with this question/answer.

Juraj

the library is half-baked. the EEPROM emulation should be in a region of flash which can be protected by the EEPROM fuse

Kas6

What about the "Nano 33 BLE Sense", is there any library for EEPROM emulation? or at least a project to write any?
That would be great...

Go Up