Is there a way to assign dynamic arrays into flash memory? The preferred method would be for the sketh to declare the pointer, allocate the memory and save the data to the memory. Alternatively, a program from a PC could also be used, provided that the sketch knows where to find the array.
If I declare
float *x PROGMEM;
x = (float *)calloc(1, sizeof(float));
I get a compiler error that tells me:
“error: assignment to read-only variable ‘x’.”
Any help will be appreciated.