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

Should GPIO2 have a pull-up? #55

Open
TheButlah opened this issue Nov 6, 2022 · 3 comments
Open

Should GPIO2 have a pull-up? #55

TheButlah opened this issue Nov 6, 2022 · 3 comments

Comments

@TheButlah
Copy link
Contributor

In the reference manual for the ESP32-C3, the strapping pins are as follows:
Screenshot_20221105_230600

It looks like GPIO2 should be pulled up, but this board appears to not do so. Is this intentional?

@pedrominatel
Copy link
Member

pedrominatel commented Nov 7, 2022

Hi,

This project was based on the ESP32-C3-DevKitM-1.

The GPIO2 is floating on the DevKitM and on the Rust Board is connected to the RGB LED.

Are you facing some unexpected behavior when using the GPIO2 pulled down during the boot?

@TheButlah
Copy link
Contributor Author

TheButlah commented Nov 7, 2022

I have my own PCB that I used the rust board as a reference for. I'm having USB problems (present in my v0.3.0 but not v0.1.0 strangely, and yet no modifications to the USB part of the circuit were made), and I thought that maybe the GPIO2 was the cause.

Hence the question - I see in section 6 of the esp32-c3-mini reference that they connect GPIO2 to a pull-up, so I thought that maybe my v0.1.0 and the rust board both got lucky, but my v0.3.0 was unlucky. I am not an EE just a hobbyist btw, I could be totally wrong.

Is it true that a floating pin is fine?

@pedrominatel
Copy link
Member

Please take a look at page 21 in the datasheet.

image

Depending on the state of the GPIOs, you can face an issue during the boot process.

Can you confirm the initial state of the following GPIOs?

  • GPIO9
  • GPIO8
  • GPIO3
  • GPIO2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants