diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-06-13 11:40:41 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-06-16 10:59:11 -0400 |
commit | b9e195f098c3dd2e61410aa85e2784c9cbc01e5d (patch) | |
tree | 4ad7a4a084f8db2a908961a3e0f9d962fe75602d /scripts | |
parent | e98a29bef37f2198fd8376f6cf72e66bc2796edf (diff) | |
download | kutter-b9e195f098c3dd2e61410aa85e2784c9cbc01e5d.tar.gz kutter-b9e195f098c3dd2e61410aa85e2784c9cbc01e5d.tar.xz kutter-b9e195f098c3dd2e61410aa85e2784c9cbc01e5d.zip |
flash_usb: Use hexid "2e8a:0003" for rp2040 already in bootloader mode
Use a USB hex id to indicate that the device is already in bootloader
mode. This makes the rp2040 flashing code similar to the other
boards.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/flash_usb.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/flash_usb.py b/scripts/flash_usb.py index b45afeff..4004ad55 100755 --- a/scripts/flash_usb.py +++ b/scripts/flash_usb.py @@ -315,17 +315,19 @@ def flash_stm32f4(options, binfile): RP2040_HELP = """ Failed to flash to %s: %s -If the device is already in bootloader mode, use 'first' as FLASH_DEVICE. -This will use rp2040_flash to flash the first available rp2040. +If the device is already in bootloader mode it can be flashed with the +following command: + make flash FLASH_DEVICE=2e8a:0003 Alternatively, one can flash rp2040 boards like the Pico by manually entering bootloader mode(hold bootsel button during powerup), mount the device as a usb drive, and copy klipper.uf2 to the device. + """ def flash_rp2040(options, binfile): try: - if options.device.lower() == "first": + if options.device.lower() == "2e8a:0003": call_picoboot(None, None, binfile, options.sudo) else: flash_picoboot(options.device, binfile, options.sudo) |