Repository navigation
Add firmware updates for Pico devices - #65
Merged
Merged
Conversation
Devices built on the Pico core are updated over the PICOBOOT interface of the RP2040 and RP2350 boot ROM, through a minimal libusb binding. The update requests UPDATE_FIRMWARE over Harp, writes the UF2 image only to a device that entered BOOTSEL mode after the reset, reads it back to verify it and reboots the device. A forced update writes to a device already in BOOTSEL mode when it is the only one. Identity reads go through a shared device probe in Harp.Toolkit.Core, used by the root command, the wait after an update and the ATxmega and SoundCard compatibility checks. The update article now covers each core in its own section, page titles and headings across the docs use sentence case, and the XML documentation of the existing update types follows the standard .NET wording. Closes harp-tech#64
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.
The
updatecommand now writes UF2 images to devices built on the Pico core, over the PICOBOOT interface of the RP2040 and RP2350 boot ROM. Once the image is checked over Harp, the update setsUPDATE_FIRMWARE, writes only to the device that appears in BOOTSEL mode after the reset, reads the image back to verify it and restarts the device.--forcecan be used to recover a device already in BOOTSEL mode when it is the only one attached. libusb is deployed for Windows and macOS using thelibusb.runtimepackage, while Linux uses the system library.A new public
DeviceProbeinHarp.Toolkit.Coreexposes a reusable procedure for robust enumeration of device identity, used by the root command, the readiness wait after an update and the ATxmega and SoundCard compatibility checks.Finally, the update article describes each core in its own section with its recovery steps, and page titles and headings across the docs use sentence case. The XML documentation of the existing update types follows the standard .NET wording.
Closes #64