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

ESP32-H2 missing GPIO pins above 20 #500

Closed
bitmagier opened this issue Dec 13, 2024 · 8 comments
Closed

ESP32-H2 missing GPIO pins above 20 #500

bitmagier opened this issue Dec 13, 2024 · 8 comments

Comments

@bitmagier
Copy link
Contributor

The lib exposes GPIO Pins 0..20 for the ESP32-H2 GPIO.
As one can see in section "2.1 Pin Layout" in the Datasheet, there are also the following hardware pins available to use:
Pins: 22, 25, 26, 27

Especially pin 22 and pin 25 are extremely useful, because they are also exposed in the ESP32-H2-WROOM-03 model (which is also used by me).

I suggest to simply add these GPIO pin numbers in esp-idf-hal.

@ivmarkov
Copy link
Collaborator

I don't have a h2 around, so what would be most efficient - if you don't mind - is if you could actually open a PR adding those. This way you could also test if these pins do actually work.

@bitmagier
Copy link
Contributor Author

.. I'm just preparing one.

@bitmagier
Copy link
Contributor Author

#501

@bitmagier
Copy link
Contributor Author

Unfortunately the main build seems to be broken at the moment. I get the same compile-errors locally as the pipeline shows on github.

@ivmarkov
Copy link
Collaborator

Unfortunately the main build seems to be broken at the moment. I get the same compile-errors locally as the pipeline shows on github.

Use a slightly older nightly or the ESP toolchain. What is broken is upstream STD in nightly since ~ 2 days.

@bitmagier
Copy link
Contributor Author

Thanks, my local build works.
Validating pin functionality on hardware-level is the next best thing to to.
Will need some time.

@bitmagier
Copy link
Contributor Author

A added also pins 23+24 (used by Serial debug interface)

I successfully verified hardware functionality for pins 22 and 25.
The other 4 added pins should work too. Since they are not directly recommended to be used, one may play around with them by himself.

@bitmagier
Copy link
Contributor Author

PR #501 is updated, works for me and is ready to be pulled.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants