Skip to content

Update VDP from ez80 / MOS#106

Merged
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom
astralaster:update_vdp
Oct 27, 2023
Merged

Update VDP from ez80 / MOS#106
breakintoprogram merged 1 commit intobreakintoprogram:mainfrom
astralaster:update_vdp

Conversation

@astralaster
Copy link
Copy Markdown
Contributor

@astralaster astralaster commented Oct 10, 2023

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

@breakintoprogram breakintoprogram added the enhancement New feature or request label Oct 18, 2023
@astralaster astralaster force-pushed the update_vdp branch 3 times, most recently from f82f8c7 to a927e80 Compare October 21, 2023 21:06
@astralaster astralaster marked this pull request as ready for review October 21, 2023 21:07
@astralaster astralaster force-pushed the update_vdp branch 2 times, most recently from 5b2671c to 7db596f Compare October 24, 2023 07:34
@breakintoprogram breakintoprogram self-assigned this Oct 27, 2023
@breakintoprogram breakintoprogram merged commit 90a8c54 into breakintoprogram:main Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants