Update VDP from ez80 / MOS#106
Merged
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom Oct 27, 2023
Merged
Conversation
f82f8c7 to
a927e80
Compare
5b2671c to
7db596f
Compare
7db596f to
9607086
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 107unlocks 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 2to toggle between the two partitions.This can be now used with the official agon-flash tool: https://github.com/envenomator/agon-flash