aw / fiveforths

32-bit RISC-V Forth for microcontrollers
https://fiveforths.a1w.ca
MIT License
66 stars 3 forks source link

Add support for saving and restoring RAM to Flash #12

Closed aw closed 1 year ago

aw commented 1 year ago

Since the initial state of this Forth is extremely minimal, and there's no way to "upload" files or paste large chunks without causing a disaster, it would be nice to have the ability to save the defined colon words (from RAM) into Flash... and restore it on reboot (automatically? manually?).

Alternatively I could add support for uploading files over the UART, which would require switching to DMA for handling the input buffer, or implement interrupts for handling input.

For the moment this issue will focus on saving and restoring RAM contents to Flash.

aw commented 1 year ago

This feature needs some more research and thought. Let's put this aside for now.