Skip to content

ESP32S2: UF2 RunMode is not working #3813

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

Closed
microdev1 opened this issue Dec 9, 2020 · 0 comments · Fixed by #4925
Closed

ESP32S2: UF2 RunMode is not working #3813

microdev1 opened this issue Dec 9, 2020 · 0 comments · Fixed by #4925
Labels
bug espressif applies to multiple Espressif chips
Milestone

Comments

@microdev1
Copy link
Collaborator

The following code when implemented in esp-idf works fine but doesn't in CPY.

Code Reference: TinyUF2 docs.

(void) esp_reset_reason();
esp_reset_reason_set_hint(0x11F2);

I am working on adding reset-to-uf2 bootloader from cpy.

  • esp_reset_reason_set_hint() sets RTC_RESET_CAUSE_REG which is used by TinyUF2 to determine if reset-to-uf2 was requested.
  • I can confirm that RTC_RESET_CAUSE_REG is successfully set and is persistent after esp_restart() is called.
  • The sdkconfig for both cpy and idf are similar.
@tannewt tannewt added bug espressif applies to multiple Espressif chips labels Dec 9, 2020
@tannewt tannewt added this to the Long term milestone Dec 9, 2020
@microdev1 microdev1 changed the title Irregularity between Circuitpython & IDF ESP32S2: UF2 RunMode is not working Jul 17, 2021
@microdev1 microdev1 linked a pull request Jul 19, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug espressif applies to multiple Espressif chips
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants