I don't know how useful this feature is, but you can reboot Pico Micropython as if "machine.reset()" was called, without having a Micropython session open, or during eg. a while loop is active. Only 8 lines of C code needed to be added once to "pico/micropython/lib/tinyusb/src/tusb.c". After that this command can reboot the USB cable connected Pico:
More details on how the changes allow to use "flash" tool with the changes here:
https://www.raspberrypi.org/forums/view ... 5#p1831365
- Peek_2021-03-05_17-58.gif
- Peek_2021-03-05_17-58.gif (72.25 KiB) Viewed 1430 times