esp32: ESP32-H2 board definition#19317
Open
rafal-kw wants to merge 1 commit into
Open
Conversation
|
Code size report: |
Supports ESP32_GENERIC_H2 and M5STACK_NANOH2 boards with the esp32h2. Signed-off-by: Rafal Wadowski <rafal@wadowski.com.au>
Josverl
reviewed
Jun 8, 2026
| @@ -0,0 +1,10 @@ | |||
| # Workaround for https://github.com/espressif/esp-idf/issues/14456 | |||
Contributor
There was a problem hiding this comment.
Is this needed on the H2 ?
as it fixes an issue under high WiFi load , and as the H2 does not have WiFi ...
Contributor
|
I can build and flash this to my no-name H2 devboard. for the I2S tests I needed to adjust the pin used in the test, I think you may need similar for the spi_rate test. --- a/tests/extmod/machine_i2s_rate.py
+++ b/tests/extmod/machine_i2s_rate.py
@@ -29,8 +29,13 @@ elif "esp32" in sys.platform:
try:
i2s_instances = ((0, Pin(18), Pin(19), Pin(21), Pin(14)),)
except ValueError:
- # fallback to lower pin number for ESP32-C3
- i2s_instances = ((0, Pin(6), Pin(7), Pin(10), Pin(11)),)
+ if sys.implementation._machine:
+ if "ESP32-H2" in sys.implementation._machine:
+ # fallback to lower pin number for ESP32-H2
+ i2s_instances = ((0, Pin(3), Pin(4), Pin(10), Pin(12)),)
+ else:
+ # fallback to lower pin number for ESP32-C3
+ i2s_instances = ((0, Pin(6), Pin(7), Pin(10), Pin(11)),)
# Allow for small additional RTOS overhead
MAX_DELTA_MS = 8 |
Josverl
suggested changes
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for the ESP32-H2 processor from Espressif in the form of two board definitions - ESP32_GENERIC_H2 and M5STACK_NANOH2.
Testing
Completed testing on the M5StackH2
Generative AI
I used generative AI tools when creating this PR, but a human has checked the
code and is responsible for the code and the description above.