Skip to content

ESP32-S2 pullups enabled when idle #6811

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
HelenFoster opened this issue Aug 24, 2022 · 2 comments
Closed

ESP32-S2 pullups enabled when idle #6811

HelenFoster opened this issue Aug 24, 2022 · 2 comments
Labels
bug espressif applies to multiple Espressif chips
Milestone

Comments

@HelenFoster
Copy link

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.0 on 2022-08-18; Adafruit QT Py ESP32S2 with ESP32S2

Code/REPL

# A1 connected to ground through 10K
# Start REPL: 0.7V
import board, digitalio
d = digitalio.DigitalInOut(board.A1)  # goes to 0V
d.pull = digitalio.Pull.UP  # goes to 0.7V
d.pull = None  # goes to 0V
d.deinit()   # goes to 0.7V

Behavior

A0 is documented to have a 10K pullup, but all the other GPIOs seem to have ~40K pullup. Other boards have the pins floating in this case, right?

Description

No response

Additional information

No response

@dhalbert
Copy link
Collaborator

dhalbert commented Aug 25, 2022

The pins on Espressif boards are reset with a pull-up on. We are using the ESP-IDF's default reset pin routine. Using a pull-up actually causes less power consumption than having the pin float, according to Espressif. See https://github.com/espressif/esp-idf/blob/23d5a582cb27d7c909d52557ca0ddceade510db8/components/driver/gpio.c#L393-L406.

Originally we floated the pin. This also caused some issues with random behavior of NeoPixels attached to pins. The reset was changed to the ESP-IDF default in PR #5892.

@dhalbert dhalbert added this to the Support milestone Aug 25, 2022
@HelenFoster
Copy link
Author

OK, thanks for the info.

@HelenFoster HelenFoster closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2022
@dhalbert dhalbert added the espressif applies to multiple Espressif chips label Aug 25, 2022
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

No branches or pull requests

2 participants