can someone help me to write and read data to/from flash memory?
I have tried to save two arrays into programspace, but my code won’t compile. Do I have to declare the datatype again when I want to write to the array?
Also, can floating point numbers be stored in flash memory?
Hi Andy,
thanks for your reply. I need to store some calibration data in non.volatile memory. The reference section says:
"Data in Program Space PROGMEM
Store data in flash (program) memory instead of SRAM. There's a description of the various types of memory available on an Arduino board.... " and it describes how to store data there.
I tried the above code and it compiles all right.
So I don't exactly understand what you mean. Would you mind explaining me in more detail ?
It looks like you are still trying to write to flash at runtime. You can’t do that, you can only access constants. e.g. data declared at global scope like this: