Giter Site home page Giter Site logo

Comments (3)

2bndy5 avatar 2bndy5 commented on August 16, 2024 1

just passing this along:

If fhe SDK allows it, add a command to the USB protocol to reboot to the bootloader.

It would seem that it does support this. I haven't found any example yet, but I found this macro in search of how to redirect UART I/O to USB (or vice versa). I imagine that using this defined baudrate is how the unofficial ArduinoCore-pico is automatically resetting the board when re-programming the pico (or other RP2040 based boards).

There's also this library which seems like it would be commonly used by CircuitPython/MicroPython firmware to let the user reset-to-bootloader when the reset button is double clicked.

from rp2040-dmxsun.

kripton avatar kripton commented on August 16, 2024 1

Fixed with dd2dc2c
@2bndy5: This seems to be some kind of "official" way to do it. It can be enabled in the pico-sdk by adding some #defines to a project, assume it's using the stdio_usb interface. See raspberrypi/pico-sdk@383e88e

Update Oh, wow, I actually didn't read your comment properly. Otherwise I would have included that the day you posted it. my bad!
Actually it is in the pico-sdk but since we are using CDC + other interfaces on the USB interface, so I had to re-implement this.

from rp2040-dmxsun.

kripton avatar kripton commented on August 16, 2024 1

Reboot-to-Bootloader is now also available via the HTTP API (integrated webserver):
https://github.com/OpenLightingProject/rp2040-dongle/blob/79556f4ebf31f9bb41bdc5a23bae965987fad62d/src/webserver.cpp#L31

from rp2040-dmxsun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.