Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I added a couple of functions to be able to switch ESP32 firmwares and EZ80 kernels.
The ESP32 part relies on something that is already existing in VDP1.04 and I added in ElectronHAL. If you flash an image you can go back to the previous one and vice-versa. The ESP32 has memory enough for two firmwares.
The EZ80 part relies on the fact that you have one kernel sitting in ROM at 0x000000 - 0x00ffff and another one in 0x010000 - 0x01ffff. I created a combined MOS-ElectronOS image and flashed it with your existing code without problems. Then the mos-switch function takes care of the rest. As long as the 2nd kernel is compiled with a specific memory layout in mind. You'll find some details in the switch-memory-design.txt.
Maybe we can work together to have this officially supported in your tool. Let me know what you think.