Page 1 of 1

storing values in EEPROM during flashing

Posted: 11 Dec 2017 19:05
by aleconakad
Hi,

I am driving with Z-Uno a small OLED, on which I am displaying lot of logos and animations. These logos are stored currently in program space. I would like to have them stored in EEPROM instead and loaded to an array variable shortly before being used by the OLED driver.
Could this be done?
Something similar like the rom qualifier.

Thanks in advance.

Re: storing values in EEPROM during flashing

Posted: 11 Dec 2017 19:47
by PoltoS
Sure, you can do that, but you need a temporary sketch to write it (or add that feature in your normal sketch): a sketch using USB to push data to Z-Uno, where Z-Uno will save it to the EEPROM. Combine out USB/Serial example with EEPROM example.

In fact, the Z-Uni bootloader do already have that feature (it can write to any part of the EEPROM). We use it internally to push the new sketch to the board during sketch upload. But not sure if this is well documented. You can check the Z-Uno tool with -h to see