Hi,
I often use save-image
/load-image
and resetautorun
. And it’s great! However - when I upgrade uLisp to new version - usually MCU goes into some infinite loop or crashes in this way or another. I do understand that image format changes, it’s not big problem. But what I end up doing is:
- Boot MCU with old uLisp I want to upgrade.
-
makunbound
all stuff (becauseresetautorun
is ON by default on my boards). -
save-image
when workspace is empty to kind of erase old image. - Disconnect terminal and proceed with upgrade.
This makunbound
ing all definitions is bit boring. So my question is:
- whould it be possible to add
erase-image
?
or…
- maybe add version ID to image, and not load it when it was saved with older version?
Or perhaps I’m doing something wrong? How do you deal with images when upgrading uLisp?
Best regards,
rsm