nimblemachines / muforth

A simple, indirect-threaded Forth, written in C; for target compiling; runs on Linux, BSD, OSX, and Cygwin
https://muforth.dev/
Other
131 stars 30 forks source link

Feature request/discussion: v6-m/flash.mu4 modification #16

Closed anarchitech closed 3 years ago

anarchitech commented 3 years ago

save-image/read-image in v6-m/flash.mu4 should be renamed save-flash-image/read-flash-image respectively as they are currently (and correctly) tightly coupled to specific notions of where the flash image resides.

Two "new" definitions of save-image and read-image should be crufted together that allow saving an image from a specific address range.

Example: On m4 devices, a mirror copy of flash (8000000) exists starting at address 0. Currently we cannot do the following:

0 4590 read-image
save-image zerocopy.img
anarchitech commented 3 years ago

Fixed by https://github.com/nimblemachines/muforth/commit/55232d39d059d65019b1409a8739002965735038