Skip to content

Commit f5eeb8e

Browse files
authored
Add reboot command to readme (#280)
* Add docs for reboot
1 parent 1c2872c commit f5eeb8e

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,48 @@ Partition 1
561561
none
562562
```
563563

564+
## reboot
565+
566+
`reboot` allows you to reboot a device that is in BOOTSEL mode, or in application mode running compatible code (see [Forced Reboots](#forced-reboots)). You can reboot it into application or BOOTSEL mode, and select the Arm or Risc-V CPU on RP2350
567+
568+
```text
569+
$ picotool help reboot
570+
REBOOT:
571+
Reboot the device
572+
573+
SYNOPSIS:
574+
picotool reboot [-a] [-u] [-g <partition>] [-c <cpu>] [device-selection]
575+
576+
OPTIONS:
577+
Reboot type
578+
-a, --application
579+
Reboot back into the application (this is the default)
580+
-u, --usb
581+
Reboot back into BOOTSEL mode
582+
-g <partition>
583+
Select diagnostic partition
584+
-c <cpu>
585+
Select arm | riscv CPU (if possible)
586+
Selecting the device to reboot
587+
--bus <bus>
588+
Filter devices by USB bus number
589+
--address <addr>
590+
Filter devices by USB device address
591+
--vid <vid>
592+
Filter by vendor id
593+
--pid <pid>
594+
Filter by product id
595+
--ser <ser>
596+
Filter by serial number
597+
-f, --force
598+
Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. After executing the
599+
command (unless the command itself is a 'reboot') the device will be rebooted back to application mode
600+
-F, --force-no-reboot
601+
Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. After executing the
602+
command (unless the command itself is a 'reboot') the device will be left connected and accessible to picotool, but without the
603+
USB drive mounted
604+
```
605+
564606
## seal
565607

566608
`seal` allows you to sign and/or hash a binary to run on RP2350.

0 commit comments

Comments
 (0)