picotool icon indicating copy to clipboard operation
picotool copied to clipboard

Support "reset" command for non BOOTSEL device with STDIO USB reset interface

Open kilograham opened this issue 3 years ago • 6 comments

SDK 1.1.0 adds (optional) support for code exposing STDIO USB to be reset via another USB vendor interface. This obviously makes sense for the the "reset" command, though we should probably add a -f, --force or whatever option to make this happen.

kilograham avatar Mar 06 '21 02:03 kilograham

IIRC that new USB vendor interface allows resetting to BOOTSEL or resetting to flash boot, so perhaps picotool should expose both those options?

lurch avatar Mar 08 '21 09:03 lurch

picotool already does

kilograham avatar Mar 08 '21 13:03 kilograham

I guess that must be only in the Graham-version? https://github.com/raspberrypi/picotool/commits/master

lurch avatar Mar 08 '21 14:03 lurch

the picotool reboot already supports options to specify which type of boot you want (flash boot or usb boot), has since the get go; it is in master

kilograham avatar Mar 08 '21 17:03 kilograham

Ahh, I was getting confused by the already-existing-reboot (i.e. over PICOBOOT?) and the new-USB-vendor-reboot. Also, I'd never thought to run picotool help reboot which is the only place where this is ever mentioned :stuck_out_tongue_winking_eye:

lurch avatar Mar 08 '21 18:03 lurch

And based on our internal discussions, I wonder if picotool reboot also ought to have an option for "reboot into BOOTSEL mode but only enable PICOBOOT, don't enable the MSD interface" ? :shrug:

lurch avatar Mar 08 '21 18:03 lurch