You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.if_missing([] { return"missing address"; })) % "Filter devices by USB device address" +
272
-
#if defined(_WIN32)
273
-
option('f', "--force").set(settings.force) % "Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. Unless the command itself causes a reboot, the device will be rebooted back to application mode" +
271
+
.if_missing([] { return"missing address"; })) % "Filter devices by USB device address"
272
+
#if!defined(_WIN32)
273
+
+ option('f', "--force").set(settings.force) % "Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. Unless the command itself causes a reboot, the device will be rebooted back to application mode" +
274
274
option('F', "--force-no-reboot").set(settings.no_reboot_if_forced) % "Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. Unless the command itself causes a reboot, the device will be left connected and accessible to picotool, but without the RPI-RP2 drive mounted"
275
-
#else
276
-
option('f', "--force").set(settings.force) % "Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. Unless the command itself causes a reboot, the device will be rebooted back to application mode. In either case the RPI-RP2 drive may briefly appear during the forced command" +
277
-
option('F', "--force-no-reboot").set(settings.no_reboot_if_forced) % "Force a device not in BOOTSEL mode but running compatible code to reset so the command can be executed. Unless the command itself causes a reboot, the device will be left connected and accessible to picotool, with the RPI-RP2 drive mounted"
278
275
#endif
279
276
).min(0).doc_non_optional(true);
280
277
@@ -421,6 +418,9 @@ struct reboot_command : public cmd {
421
418
(
422
419
option('a', "--application").clear(settings.reboot_usb) % "Reboot back into the application (this is the default)" +
423
420
option('u', "--usb").set(settings.reboot_usb) % "Reboot back into BOOTSEL mode "
421
+
#if defined(_WIN32)
422
+
+ option('f', "--force").set(settings.force) % "Force a device not in BOOTSEL mode but running compatible code to reboot."
423
+
#endif
424
424
).min(0).doc_non_optional(true) % "Reboot type" +
425
425
device_selection % "Selecting the device to reboot";
// not exclusive, because restoring un-exclusive could fail; also if we're rebooting, we don't much
@@ -2124,8 +2115,13 @@ int main(int argc, char **argv) {
2124
2115
" appears to be a RP2040 PicoProbe device not in BOOTSEL mode.");
2125
2116
printer(dr_vidpid_micropython,
2126
2117
" appears to be a RP2040 MicroPython device not in BOOTSEL mode.");
2118
+
#if defined(_WIN32)
2119
+
printer(dr_vidpid_stdio_usb,
2120
+
" appears to be a RP2040 device with a USB serial connection, not in BOOTSEL mode. You can reset it into BOOTSEL mode via 'picotool reset -f' first.");
2121
+
#else
2127
2122
printer(dr_vidpid_stdio_usb,
2128
2123
" appears to be a RP2040 device with a USB serial connection, so consider -f or -F.");
0 commit comments