RP2 has no eeprom, is there a work around to store parameters that can be retreived on boot up ? #17054
Unanswered
ADenislebel
asked this question in
RP2040 / Pico
Replies: 2 comments 4 replies
-
What stops you from storing it into a file on the board? The easiest way is to format the parameters as a Python file, which can be imported, like:
Or as a JSON file? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Thanks! After another user pointed out that the open() builtin function
allows writing directly to flash I've
successfully created a Config.txt file where I save my configuration
parameters and read it back upon
boot up. Have a nice day...Denis
…On Mon, Mar 31, 2025 at 5:24 PM Stewart Russell ***@***.***> wrote:
or rather than rewriting a Python file — which requires careful attention
to formatting — maybe read/write a JSON
<https://docs.micropython.org/en/v1.24.0/library/json.html> file instead
—
Reply to this email directly, view it on GitHub
<#17054 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFK5EIJVYNLXL24ZNLI7BL2XGW7JAVCNFSM6AAAAAB2ELLA6OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRYGE2DMOI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a newbie to both the RP2 and Micropython. I'm attempting to port my home automation project from an old 8 bit MCU programmed in C to the first generation RP2 board. My issue is how I can get around not having any EEPROM on the RP2 for storing configuration parameters that could be recalled upon boot up. Looking for a software based work around before I consider adding an external serial EEPROM chip to my hardware.
Thanks Denis Lebel
Beta Was this translation helpful? Give feedback.
All reactions