snowsh
Well-known member
Sorry for the vague title.
I am having some trouble working out how to store some large arrays...
as an example I have a library array:
I am intending to keep these libs on the SD card. In use I only need to call one of the 128 instances to use in SRAM
I have looked at arduinoJSON, none of the examples there seem to do what I am after.
I have looked at the memory chips to expland my 4.1
I have tried FLASHMEM. PROGMEM....
Im just a bit lost.
I want to be able to keep my library files - there are many - off the main SRAM as I am rapidly running out of memory. anytime I want to update the SRAM array from the library, I could edit values. these need to be stored back to the library so PROGMEM is out. FLASHMEM too I guess?
I am having a hard time finding any examples to work from..... Could anyone point me in the right direction.
Am I correct that the memory upgrade chips will give me more SRAM so I can continue working on a growing project? Will I have to do any messing about to move data around?
I am having some trouble working out how to store some large arrays...
as an example I have a library array:
Code:
uint8_t array[128][16][32].
I am intending to keep these libs on the SD card. In use I only need to call one of the 128 instances to use in SRAM
I have looked at arduinoJSON, none of the examples there seem to do what I am after.
I have looked at the memory chips to expland my 4.1
I have tried FLASHMEM. PROGMEM....
Im just a bit lost.
I want to be able to keep my library files - there are many - off the main SRAM as I am rapidly running out of memory. anytime I want to update the SRAM array from the library, I could edit values. these need to be stored back to the library so PROGMEM is out. FLASHMEM too I guess?
I am having a hard time finding any examples to work from..... Could anyone point me in the right direction.
Am I correct that the memory upgrade chips will give me more SRAM so I can continue working on a growing project? Will I have to do any messing about to move data around?