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
{{ message }}
Repository navigation
microcontroller.reset() to bootloader on esp32-s2 #3884
I don't think it is possible to enter DFU (first-stage) bootloader on esp32s2 from software.
I tried to get reset to UF2 bootloader working but I am facing a strange issue #3813.
Activity
microdev1 commentedon Dec 27, 2020
microcontroller.RunMode.BOOTLOADERisn't implemented on the esp32s2.circuitpython/ports/esp32s2/common-hal/microcontroller/__init__.c
Lines 70 to 73 in 1b7fbaf
I don't think it is possible to enter
DFU(first-stage) bootloader on esp32s2 from software.I tried to get reset to
UF2bootloader working but I am facing a strange issue #3813.ladyada commentedon Dec 27, 2020
there is some way to enter the DFU bootloader from usercode because arduino does it...
@me-no-dev do you have any hints we could use to implement? :)
me-no-dev commentedon Dec 28, 2020
@ladyada here is the shutdown handler that does the reboot into the proper mode: https://github.com/espressif/arduino-esp32/blob/idf-release/v4.2/cores/esp32/esp32-hal-tinyusb.c#L458-L479
it is registered here: https://github.com/espressif/arduino-esp32/blob/idf-release/v4.2/cores/esp32/esp32-hal-tinyusb.c#L531
Let me know if this does not help :)
microdev1 commentedon Dec 28, 2020
Thanks! @me-no-dev, this works... the changes are in my
update-run-modebranch. :)dhalbert commentedon Mar 31, 2021
@microdev1 Could you make your changes into a PR?
microdev1 commentedon Apr 1, 2021
This is stuck due to
[email protected]. In my implementation, the function calls used to achieve this are part of[email protected].ThomasAtBBTF commentedon Apr 16, 2021
I just want to point out, that I am very interested that this feature will work in the not to distance future,
dhalbert commentedon Jul 19, 2021
This should be fixed now, with the latest merge, and also with the latest TinyUF2. Update your TinyUF2 bootloader to at least 0.5.0, following the instructions here: https://learn.adafruit.com/adafruit-magtag/install-uf2-bootloader