Can code be executed from an SD card, as if you were expanding the PROGMEM?
Would that use more RAM than it was worth?
Can code be executed from an SD card, as if you were expanding the PROGMEM?
Would that use more RAM than it was worth?
You'd have to get the code from SD into PROGMEM for it to be executed.
I would imagine it would be similar to serving a web page from an SD card:
while(file.available()){
char c = file.read();
client.print(c);
}
But how would you store a file into RAM and then execute it instead of send it?
The AVR cannot execute code from RAM, which is why you have to get the data from SD to PROGMEM.
Well then how would you get it into PROGMEM then?
Write your own combined FAT library and boot loader.
Or just buy a processor with more PROGMEM.