Skip to content

Impact of EEPROM.commit() ? #2715

Answered by earlephilhower
obdevel asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to roll your own flash interface, look at https://github.com/earlephilhower/arduino-pico/blob/master/cores/rp2040/sdkoverride/btstack_flash_bank.cpp . Basically you can allocate a 4k-aligned page in your app code and then use raw SDK calls to access it. It's up to you to decide if you can guarantee nobody else needs to read/execute from RAM while the operation is going on (this includes things like the std:: templates and GCC silently inserting calls to memcpy/bzero for assignment operations).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by obdevel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants