howto automatically restart a Pybv11 after flashing
Posted: Mon Jan 10, 2022 8:15 pm
for an automated CI/CD process I would like to be able to run the following sequence without the need for manual operation:
preferably on windows , but ubuntu is fine if required.
1. set board in bootloader mode
2. download a new firmware v1.xx with dfu-util
3. reset/restart the board
4. upload some scripts
5. run a set up tests
6. download the results
I can get all steps to work , apart from the reset of the board after dfu-util has loaded the new firmware.
setup :
- windows 10/11
- zadig WinUSB(libusb) driver installed ( also tried with libusbK driver to no avail)
- pyboard.py to set the board in pyb.bootloader() mode
- dfu-util version 0.9
- .\Tools\dfu-util\dfu-util.exe --device 0483:df11 --alt 0 --download $filename_dfu
the --reset option and -E eject options do not work as I had expected/hoped.
I assume that a similar config is used in other micropython projects, and hope that someone can share a solution to this,
preferably on windows , but ubuntu is fine if required.
1. set board in bootloader mode
2. download a new firmware v1.xx with dfu-util
3. reset/restart the board
4. upload some scripts
5. run a set up tests
6. download the results
I can get all steps to work , apart from the reset of the board after dfu-util has loaded the new firmware.
setup :
- windows 10/11
- zadig WinUSB(libusb) driver installed ( also tried with libusbK driver to no avail)
- pyboard.py to set the board in pyb.bootloader() mode
- dfu-util version 0.9
- .\Tools\dfu-util\dfu-util.exe --device 0483:df11 --alt 0 --download $filename_dfu
the --reset option and -E eject options do not work as I had expected/hoped.
I assume that a similar config is used in other micropython projects, and hope that someone can share a solution to this,