aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/flash_usb.py
Commit message (Collapse)AuthorAgeFilesLines
* 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>