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