This code leverages the ESP32 OTA functions to enable the ez80 to upload VDP firmware binaries. They get written to a second partition on the ESP32 flash and then the bootselector gets changed to this partition and the ESP32 restarts itself.
Another great feature is switching between two VDP versions without uploading anything new, just by changing the bootselector.
For safety reasons this module contains a knockcode. You first have to send a specific byte sequence to unlock it. Otherwise it would be possible to switch the bootselector by accident. The firmware upload is already secured by a mandatory checksum, but better be safer. :)
Current commands:
VDU 23 29 0 117 110 108 111 99 107 unlocks the updater. Code is "unlock".
VDU 23 29 1 <24bit filesize> <n data bytes> <single byte checksum> To upload a firmware binary.
VDU 23 29 2 to toggle between the two partitions.
This code leverages the ESP32 OTA functions to enable the ez80 to upload VDP firmware binaries. They get written to a second partition on the ESP32 flash and then the bootselector gets changed to this partition and the ESP32 restarts itself. Another great feature is switching between two VDP versions without uploading anything new, just by changing the bootselector.
For safety reasons this module contains a knockcode. You first have to send a specific byte sequence to unlock it. Otherwise it would be possible to switch the bootselector by accident. The firmware upload is already secured by a mandatory checksum, but better be safer. :)
Current commands:
VDU 23 29 0 117 110 108 111 99 107
unlocks the updater. Code is "unlock".VDU 23 29 1 <24bit filesize> <n data bytes> <single byte checksum>
To upload a firmware binary.VDU 23 29 2
to toggle between the two partitions.This can be now used with the official agon-flash tool: https://github.com/envenomator/agon-flash