-
Hello, I have a project using a Pi PICO with a number of peripherals and libraries . I am using the EEPROM emulator library to store configuration parameters. The problem I'm having seems to be caused by the operation of my code (possibly the libraries) since when I use the same hardware with a minimalist EEPROM example withe structs, it works fine. Is there a general approach I can take to prevent other background code (eg running in these various libraries) from interfering with the EEPROM emulator? Does it already pause core execution and stop interrupts as required? Are there any limits as to the size of the structure or the types within a structure that can be used? example struct type I am using:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Turns out to be a brain fart error on my part. This does not work:
This does
|
Beta Was this translation helpful? Give feedback.
Turns out to be a brain fart error on my part.
This does not work:
void StoreParameters(void){ int addr = EEPROM_BASE; EEPROM.put(addr, &padControllerConfig); EEPROM.commit(); }
This does
void StoreParameters(void){ int addr = EEPROM_BASE; EEPROM.put(addr, padControllerConfig); EEPROM.commit(); }