Multicore and EEPROM #1757
Replies: 1 comment
-
There's almost no reason in the world to use this outside of writing to flash memory outside of the Writing to EEPROM has to freeze the other core because when you write to flash, you can't read from it. So the non-writing core needs to jump to an code-in-RAM busy loop while the writing is going on (hence, the embedded |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a project where I am trying to have an IMU sensor and Fusion algorithm running on
core1
whilecore0
controls everything else (TFT screen, Touch, LVGL, Neopixels, and settings saves via EEPROM).I'm using the multicore because I want the IMU and Fusion to run in a loop as fast as possible independently from what
core0
does (the screen refreshing graphics can slow down the loop pretty badly). I am running into the situation where saving EEPROM freezes the whole program sometimes.I tried using
rp2040.idleOtherCore()
but I'm not sure I'm using it properly. Can someone give me a simple exemple of a loop running oncore1
while saving a value to EEPROM oncore0
?Also, I'm saving the values from core1 to global variable defined at the top of the sketch and it seems to work. Is that okay, or should I use the FIFO (Which I don't quite understand either)
Beta Was this translation helpful? Give feedback.
All reactions