-
On the Windows environment, you can use the Flash download tool to download the firmware (The bin file).
-
Run
flash_download_tool.exe
-
Choose
ChipType
asESP32-H2
,LoadMode
asUART
, then pressOK
.
- Click to select the
.bin
file to be flashed. - Enter the download address offset for the firmware to be flashed.
- Choose the COM port to which the development board is connected.
- Click “Start” at the bottom-left corner to begin the flashing process.
-
-
On the Ubuntu environment, you can use the esptool to download the firmware (The bin file). For example:
esptool.py -p /dev/ttyUSB0 write_flash 0x0 bootloader.bin 0x8000 partition-table.bin 0x10000 ssc.bin
1、The following pins level requirements must be met when the ESP32-H2 series chips need enter the download mode
:
VDD -> 3V3 (The Power Supply)
GND -> GND ("Common ground" with power supply)
GPIO8 -> pull up (default floating)
GPIO9 -> pull down (default pull up)
EN -> pull up (Enables the Chip, Do not leave the `EN` pin floating)
TXD0 -> RX
RXD0 -> TX
After ensuring the correct wiring connections, you can proceed with the firmware programming
-
Please refer to the 《ESP32-H2 Datasheet》 about “2.4.1 Chip Boot Mode Control” instructions.
-
Please refer to the 《ESP32-H2 Datasheet》 about
"2.4 Strapping Pins"
instructions
2、The following hardware conditions must be met for the ESP32-H2 chip to start:
-
The ESP32-H2 chip working voltage range is
3.0 V ~ 3.6 V
;if you use a single power supply, the recommended voltage of the power supply for ESP32-H2 family is3.3 V
, and its recommended output current is350 mA
or more. -
When using ESP32-H2 series Chips, you need require an external
32 MHz
crystal oscillator for chip startup. If using the ESP32-H2 series modules , there is no longer need to external starting crystal oscillator. The hardware working conditions of ESP32-H2 chip can refer to the《ESP32-H2-MINI-1》
- For more hardware design details, please refer to the 《ESP32-H2 Series Hardware Design Guidelines》.
3、Poweron Sequence:
- The
Chip_EN
pin can be enabled only after the power supply reaches50 us
after2.8 V
. Please refer to the《ESP32-H2 Datasheet》 about"2.3 Power Scheme"
- For hardware design reference on
"Power-up Timing and System Reset"
, please refer to the 《ESP32-H2 Hardware Design Guidelines》
4、If the download fails, Please refer to the following methods for troubleshooting:
- After the serial port tool is powered on, please pull down the
Chip_EN
pin and reset it , the serial port will print logs. If print the “waiting for Download
” logs , it proves that the chip is in download mode.
- After entering the download mode, if the COM port is in waiting for Power-on synchronization state on the “Flash Download Tool” , please check whether the COM port is correctly selected or occupied. And whether the UART0 download interface is correctly connected.
Note:
- If you want to use ESP32-H2 module to design hardware automatic download circuit, please refer to the ESP32-H2-DevKitM-1 Schematics Diagram
- For more hardware design references , please refer to the 《ESP32-H2 Hardware Design Guidelines》
- If your computer environment does not recognize ESP32-H2 devices, Please refer to the Establish Serial Connection with ESP32-H2" guide (It applies to all ESP chips)