Skip to content
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

Refactor pin reset on ESP #5894

Merged
merged 2 commits into from Jan 20, 2022
Merged

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jan 20, 2022

This makes it easier to blanket never reset flash and USB pins. It
also allows us to set a custom state after reset. The first case
is for the double tap reset that needs to be pulled low.

Fixes #5893

This makes it easier to blanket never reset flash and USB pins. It
also allows us to set a custom state after reset. The first case
is for the double tap reset that needs to be pulled low.

Fixes micropython#5893
@tannewt tannewt added bug espressif applies to multiple Espressif chips esp32-s3 esp32-c3 labels Jan 20, 2022
@tannewt tannewt requested a review from dhalbert January 20, 2022 20:42
@jerryneedell
Copy link
Collaborator

jerryneedell commented Jan 20, 2022

Tested on feather esp32s2 -- works! Thank you!
Also tested on qtpy esp32s2 -- works there as well
and on metro esp32s2 -- all good.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also verified that both .uf2 and .bin on QT Py ESP32-S2 and Metro ESP32-S2 work. S3 and C3 builds are not working:

common-hal/microcontroller/Pin.c:54:9: error: "CONFIG_IDF_TARGET_ESP32S2" is not defined, evaluates to 0 [-Werror=undef]
     #if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
         ^~~~~~~~~~~~~~~~~~~~~~~~~
common-hal/microcontroller/Pin.c:54:38: error: "CONFIG_IDF_TARGET_ESP32S3" is not defined, evaluates to 0 [-Werror=undef]
     #if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3

@tannewt tannewt requested a review from dhalbert January 20, 2022 23:12
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@dhalbert dhalbert merged commit 5d54d02 into adafruit:main Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug esp32-c3 esp32-s3 espressif applies to multiple Espressif chips
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esp32s2 build 1cd3faa does not boot
3 participants