ESP32-H2-DevKitM-1 Board
Support for generic ESP32-H2 boards @author Gunar Schorcht gunar@schorcht.net
\section esp32h2_devkit ESP32-H2-DevKitM-1
Table of Contents
-# Overview -# Hardware -# MCU -# Board Configuration -# Board Pinout -# Flashing the Device
Overview
The Espressif ESP32-H2-DevKitM-1 board uses the ESP32-H2-MINI-1x module.
Since the number of GPIOs and their possible uses on the ESP32-H2 are quite limited, the ESP32-H2-DevKitM-1 should also work for most other ESP32-H2 boards. Any modifications required for specific applications could be overridden by esp32_application_specific_configurations “application-specific board configuration”.

Hardware
This section describes
- the MCU,
- the default board configuration,
- optional hardware configurations,
- the board pinout.
MCU
Most features of the board are provided by the ESP32-H2 SoC. For detailed information about the ESP32-H2 variant (family) and ESP32x SoCs, see section esp32_mcu_esp32 “ESP32 SoC Series”.
Board Configuration
ESP32-H2-DevKitM-1 boards have no special hardware on board with the exception of a WS2812-compatible RGB-LED.
All GPIOs are simply broken out for flexibility. Therefore, the board configuration is the most flexible one which provides:
- 5 x ADC channels at maximum
- 1 x SPI
- 1 x I2C
- 1 x UART
- 2 x PWM with 3 channels each
- 1 x RGB-LED
Since all GPIOs are broken out, GPIOs can be used for different purposes in different applications. For flexibility, GPIOs can be listed in multiple peripheral configurations, but they can only be used for one peripheral at a time. For example, GPIO1, GPIO3, GPIO4 and GPIO5 can be used as ADC channels or as signals for SPI_DEV(0) and PWM_DEV(1).
This is possible because GPIOs are only used for a specific peripheral interface when either
- the corresponding peripheral module is used, i.e.
periph_spi, or - the corresponding init function is called, i.e.
adc_init, or - the corresponding init function is called, i.e.
pwm_init
That is, the purpose for which a GPIO is used depends on which module or function is used first.
For example, if module periph_spi is not used, the GPIOs listed in SPI
configuration can be used for the other purposes, that is, GPIO1, GPIO4 and
GPIO5 can be used as ADC channels or PWM channels.
The following table shows the default board configuration, which is sorted according to the defined functionality of GPIOs. This configuration can be overridden by esp32_application_specific_configurations “application-specific configurations”.
For detailed information about the peripheral configurations of ESP32-H2 boards, see section esp32_peripherals “Common Peripherals”.
Board Pinout
The following figures show the pinout as configured by default board definition.

The corresponding board schematics can be found:
Flashing the Device
Flashing RIOT is quite easy. The board has a Micro-USB connector with reset/boot/flash logic. Just connect the board to your host computer and type using the programming port:
make flash BOARD=esp32h2-devkit ...For detailed information about ESP32-H2 as well as configuring and compiling RIOT for ESP32-H2 boards, see esp32_riot.