is there pgm_write_data?

hey guys!

I was working on a code where I used PROGMEM storage. I can see there is a function called pgm_read_data to read data of a PROGMEM storage but since I want to store and manipulate data as well, I need to write on data too. I thought there might be a function such as pgm_write_data but apparently the PROGMEM data can only be readable! :frowning: :frowning: :frowning:

so how you guys recommend me to store big data and manipulate them?

all answers are appreciated!

thanks guys for your help

so how you guys recommend me to store big data and manipulate them?

An SD card.

IIRC somewhere on here is a thread where a member created a modified bootloader that allowed you to write back to flash memory from your running sketch.

Riva: IIRC somewhere on here is a thread where a member created a modified bootloader that allowed you to write back to flash memory from your running sketch.

current Optiboot enables it https://github.com/Optiboot/optiboot/tree/master/optiboot/examples/test_dospm

but SD card is the recommended solution

a SD card adapter and the SD or SdFat library

Sd card, or maybe I2c eeprom chip. Or spi eeprom. A lot less code if you don’t need to implement a file system.