-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Reboot to BOOTSEL mode - PICOTOOL #2676
Comments
This issue is so close to what I want that I didn't open a new one. I'm looking for a simple utility that I can give to users of my Pico powered devices to download a UF2 file. I read Loading your RPI PICO without bootsel button Thanks for the support! |
It's possible to program the flash using OpenOCD and the SWD connector, but frankly I think that's going to be way harder to get right than just drag-and-dropping a UF2 onto a "USB stick" (which the Pico will appear as, under practically all OSes). The incantation used by the IDE is here Line 220 in 5e2fbf3
Note this does NOT use the programmed Pico's USB at all. You need a working DebugProbe hooked up to the SWD port on the Pico to be programmed, and to install the OpenOCD app/dependencies to get it running. Why can't you just ship the UF2 file and ask the user to hold BOOTSEL and drag-and-drop the 1 file? No drivers, no apps, no problem... |
Thanks for the help. I was on the wrong track and something you said about 1200 baud helped me figure it out.
I just made a .bat file
IF [%1]==[] (mode) ELSE mode com%1 12
Crude but effective. It throws an error when it is successful but at least the drive pops up.
It could be better if the first mode command could capture the available COM which changes with each Pico I plug in.
Sent via the Samsung Galaxy S22 5G, an AT&T 5G smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Earle F. Philhower, III ***@***.***>
Sent: Thursday, February 6, 2025 10:53:52 AM
To: earlephilhower/arduino-pico ***@***.***>
Cc: Gavin Perry ***@***.***>; Comment ***@***.***>
Subject: Re: [earlephilhower/arduino-pico] Auto Reboot to BOOTSEL mode - PICOTOOL (Issue #2676)
It's possible to program the flash using OpenOCD and the SWD connector, but frankly I think that's going to be way harder to get right than just drag-and-dropping a UF2 onto a "USB stick" (which the Pico will appear as, under practically all OSes). The incantation used by the IDE is here
https://github.com/earlephilhower/arduino-pico/blob/5e2fbf324b8f55fb47c53e13b88b67caad445ab0/platform.txt#L220
Note this does NOT use the programmed Pico's USB at all. You need a working DebugProbe hooked up to the SWD port on the Pico to be programmed, and to install the OpenOCD app/dependencies to get it running.
Why can't you just ship the UF2 file and ask the user to hold BOOTSEL and drag-and-drop the 1 file? No drivers, no apps, no problem...
—
Reply to this email directly, view it on GitHub<#2676 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVR4PP77P4R267EG45K665D2OOHSBAVCNFSM6AAAAABTM7IMJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBQGQ2TQOJYG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
And by the way the problem with pressing the boot select button is that it's not available since the device is packaged in a box with other electronics.
Sent via the Samsung Galaxy S22 5G, an AT&T 5G smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Earle F. Philhower, III ***@***.***>
Sent: Thursday, February 6, 2025 10:53:52 AM
To: earlephilhower/arduino-pico ***@***.***>
Cc: Gavin Perry ***@***.***>; Comment ***@***.***>
Subject: Re: [earlephilhower/arduino-pico] Auto Reboot to BOOTSEL mode - PICOTOOL (Issue #2676)
It's possible to program the flash using OpenOCD and the SWD connector, but frankly I think that's going to be way harder to get right than just drag-and-dropping a UF2 onto a "USB stick" (which the Pico will appear as, under practically all OSes). The incantation used by the IDE is here
https://github.com/earlephilhower/arduino-pico/blob/5e2fbf324b8f55fb47c53e13b88b67caad445ab0/platform.txt#L220
Note this does NOT use the programmed Pico's USB at all. You need a working DebugProbe hooked up to the SWD port on the Pico to be programmed, and to install the OpenOCD app/dependencies to get it running.
Why can't you just ship the UF2 file and ask the user to hold BOOTSEL and drag-and-drop the 1 file? No drivers, no apps, no problem...
—
Reply to this email directly, view it on GitHub<#2676 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVR4PP77P4R267EG45K665D2OOHSBAVCNFSM6AAAAABTM7IMJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBQGQ2TQOJYG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Just tested w/latest release and can't reproduce. Be sure to build and upload with picotool one time before this will work (the picotool USB interface isn't added unless you compile using the picotool upload option). |
Hello,
due security restrictions on my PC a can't use default upload method and I must use Picotool.
But on my Arduino IDE 2.3.4 and older (WIN 11 PC) RP2040 didn't reboot to BOOTSEL mode automaticly and a have to press button and replug USB.
So I added "tools.picotool.upload.use_1200bps_touch=true" into platform.txt and now RP enter to BOOTSEL automaticly.
Please check my solution.
Bye
The text was updated successfully, but these errors were encountered: