mikaelpatel/Arduino-Shell

Enhance: Allow scripts in EEMEM

mikaelpatel opened this issue · 3 comments

Functions defined interactively should be copied to EEMEM. This would require the interpretor to understand an additional address space. In general all usage of SRAM should be reduced to a minimum.

To implement this requires; 1) ";" to copy to EEMEM instead of the heap, 2) extend with a new instruction fetch handler for EEMEM, 3) reduce usage ";" to SRAM buffer only (not PROGMEM/EEMEM).

Please see commit dfa2fc5.

This is the first step towards persistent scripts in EEPROM (i.e. remain in memory after reboot).

Full persistent script handling implemented. Please see commit 8f62fa1.