aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/flash_usb.py
Commit message (Collapse)AuthorAgeFilesLines
* flash_usb: Initial support for flashing rp2350 chipsKevin O'Connor2024-11-141-4/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Wait for busnum file to exist when flashing with picobootJack Wakefield2024-09-221-1/+1
| | | | | | | | This solves an issue where the USB directory could exist, but the busnum file itself may not exist immediately. This was encountered when flashing a Pico connected to a Raspberry Pi 5. Signed-off-by: Jack Wakefield <jackwakefield@protonmail.com>
* scripts: Added stm32f070 to mcus supported by flash_usb.pyChris Lombardi2023-08-131-2/+2
| | | | | | Verified with an Monoprice Mini Select v2 using katapult. Signed-off-by: Chris Lombardi <clearchristx@gmail.com>
* stm32f7: add support for stm32f7 and remram boardFrederic Morin2023-05-071-0/+1
| | | | Signed-off-by: Frederic Morin <frederic.morin.8@gmail.com>
* scripts: support CanBoot on RP2040 in flash_usb.pyChris Lee2022-12-191-1/+5
| | | | Signed-off-by: Chris Lee <clee@mg8.org>
* stm32g4: implement build,usb,can,i2c,spi,serial,adc.Matt Baker2022-12-021-1/+1
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* atsamd: Add Kconfig definitions for same51j19 and same54p20 chipsKevin O'Connor2022-10-131-4/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32l4: add stm32l412 support with adc,i2c,spi,usbMatt Baker2022-09-151-1/+2
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* stm32: stm32g0/h7 usb_dfu_bootloader support (#5596)BIGTREETECH2022-06-301-1/+2
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* flash_usb: Use hexid "2e8a:0003" for rp2040 already in bootloader modeKevin O'Connor2022-06-161-3/+5
| | | | | | | | 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>
* flash_usb: update shebang to python3Eric Callahan2022-06-101-1/+1
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* flash_usb: add canboot supportEric Callahan2022-06-101-2/+48
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* flash_usb: Rework flash_rp2040 code to be similar to other boardsKevin O'Connor2022-06-011-26/+29
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Add support for SAM E70Alex Maclean2022-03-261-1/+1
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* flash_usb: use sudo for rp2040 flashingLasse Dalegaard2022-01-311-3/+5
| | | | | | | | | | | The rp2040 can be flashed without sudo when using udev rules to give the user permission, but in a standard configuration sudo is required. Here we make it possible for flash_usb to use sudo for the rp2040 target, and make it the default when using `make flash` for the rp2040. As for other targets, one can set `NOSUDO=1` to not call through sudo. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* rp2040: add make flash supportLasse Dalegaard2022-01-061-1/+43
| | | | | | | | | | | | | | | | This adds `make flash` support for the rp2040 target. Flashing is performed using a custom `rp2040_flash` tool that uses the PICOBOOT protocol. Root is not required. The user specifies the serial device of the rp2040 they wish to flash as the device. This device is reset into bootsel mode and `rp2040_flash` is invoked on the original USB device path. If the device is already in bootloader mode, the user can specify 'first' as `FLASH_DEVICE` which will simply invoke `rp2040_flash` with no bus/address options. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
* stm32: Add support for STM32F072 (used in the TurboCAN board) (#4412)henrikssn2021-06-271-0/+1
| | | | | | | * Add menuconfig option for stm32f072 * Add support for internal temp of stm32f072 * Share the temperature calculation logic between stm32f0x2 MCUs Signed-off-by: Erik Henriksson <erikhenrikssn@gmail.com>
* stm32f4: Add support for HID bootloaderArksine2020-05-281-2/+7
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* stm32f1: Add support for HID BootloaderArksine2020-05-281-1/+26
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* flash_usb: Pass -t $CONFIG_MCU to flash_usb on all targetsKevin O'Connor2019-10-261-6/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Use "-s" option to specify flash offset on atsamdKevin O'Connor2019-10-261-3/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Change dfu-util to reset the board after a flash on stm32f4Kevin O'Connor2019-10-261-4/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Inform user to manually reset after stm32f4 flashKevin O'Connor2019-10-261-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for flashing over usb on stm32f042Kevin O'Connor2019-10-261-1/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for flashing over USBKevin O'Connor2019-10-261-3/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for USB on stm32f103Kevin O'Connor2019-08-051-1/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Improve USB reconnect timingKevin O'Connor2019-03-171-6/+30
| | | | | | | | Instead of waiting one second after entering bootloader mode, wait for the device file to reappear. This should make the flashing more resilient to slight timing difference in the OS. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Run dfu-util via sudoKevin O'Connor2019-03-111-6/+10
| | | | | | | Default to running dfu-util via sudo as most machines will not have the user setup with permissions to access the raw usb device. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Try to make the bossac atsam reboot logic more stableKevin O'Connor2019-03-101-5/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Add a helper script for flashing Klipper over USBKevin O'Connor2019-03-081-0/+185
Add a script to help flash Klipper over USB. This tool can instruct Klipper to enter into bootloader mode and it can help track changes in device name during that transition. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>