linguini1 commented on issue #16271:
URL: https://github.com/apache/nuttx/issues/16271#issuecomment-3263858196

   > > @linguini1 Have a bootloader that puts the RP2040 into BOOTSEL when it 
detects something like 1200 baud on a UART line
   > 
   > In my RP2040 board I have implemented this over USB CDC-ACM instead of 
UART. This comes at the cost of having a background demon that listens for 
LINE_CODING events (let me improperly call them "baud rate changes"), though.
   
   > This way I can run `stty -F /dev/serial/by-id/usb-<your_device_id> 1200` 
on the host and have the board reboot to bootloader, and then it's just a 
matter of a few shell commands to wait for the USB drive to appear and copy the 
new UF2 file to it. I've wrapped all these actions in a couple of 
[Just](https://just.systems/man/en/) recipes for ease of use, so I can get away 
with things like `just build && just bootsel-flash` :)
   
   I really like this approach! If it can be Kconfig selected as whether to run 
at boot or not for the RP2040s, I think it's great. That way the Pico can have 
a single connection (USB shell) for testing and booting in a hardware test 
setup. Thanks for sharing that!
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to