ESP32-DevKitC
ESP32-DevKitC
Vendor: Espressif Systems
RF SoC: ESP32
Sample firmware
esp32-wroom-32_hello_world_zephyr_2.7.0.bin
: Zephyr RTOS hello world sample for ESP32esp32-wroom-32_bootloader.bin
: ESP32 example bootloaderesp32-wroom-32_partitions_singleapp.bin
: ESP32 example partition table
References
Identify ESP32 (built-in USB-CDC)
The following test plan identifies the ESP32 MCU over UART, using the CP201X USB-CDC adapter included in the ESP32 DevKitC board.
Connect the DevKitC USB port to any of the PLT’s USB DUT or Peripheral USB ports.
YAML test plan
title: "Identify ESP32 DevKitC over built-in CP210X USB-CDC"
suite:
- title: "Defines"
steps:
- command: define DUT_UART "UART2"
- command: define CP210X_VIDPID "10c4:ea60"
- title: "Extract ESP32.MCUID"
steps:
- command: uartCfg %DUT_UART% 115200
title: "Setup DevKitC on-board UART adapter"
id: "%CP210X_VIDPID%"
- command: identify ESP32_UART %DUT_UART%
title: "Identify ESP32 MCU ID"
Identify and Program ESP32 (UART)
Connection
PLT signal |
ESP32 |
---|---|
|
ESP32:TXD (GPIO1) |
|
ESP32:RXD (GPIO3) |
|
n.c. |
|
ESP32:EN |
|
ESP32:3V3 |
|
ESP32:GND |
|
ESP32:GPIO0 |
YAML test plan
title: "Identify, Erase, and Program ESP32 over UART"
suite:
- ident: TPM
title: "Defines"
steps:
# UART0 (HD78)
# - command: define DUT_UART "UART0" # UART channel for ESP32 UART interaction
# - command: define DUT_POWER "UART0" # Power rail to control ESP32
# UART1 (HD78)
# - command: define DUT_UART "UART1" # UART channel for ESP32 UART interaction
# - command: define DUT_POWER "UART1" # Power rail to control ESP32
# UART2 (USB-CDC)
- command: define DUT_UART "UART2" # UART channel for ESP32 UART interaction
- command: define DUT_POWER "3V3" # Power rail to control ESP32
#- command: define FTDI_VIDPID "0403:6001" # FTDI (generic)
- command: define FTDI_VIDPID "0403:6010" # FTDI FT2232 series
- ident: FT2232H
title: "Setup FT2232H UART (USB-CDC)"
steps:
- command: usb detect
id: "%FTDI_VIDPID%"
- command: uartCfg %DUT_UART% 115200
id: "%FTDI_VIDPID%"
interface: "0" # FTDI Channel A
# interface: "1" # FTDI Channel B
- ident: ESP32
title: "Program ESP32 over UART"
steps:
- command: power %DUT_POWER% on
title: "Power on ESP32."
- command: sleepms 100
- command: power %DUT_POWER% off
title: "Power cycle sequence to put ESP32 into programming mode."
- command: sleepms 100
- command: power %DUT_POWER% on
title: "Power on ESP32."
- command: sleepms 100
- command: identify ESP32_UART %DUT_UART%
- command: program ESP32_UART %DUT_UART% 0x1000:esp32-wroom-32_bootloader.bin,0x8000:esp32-wroom-32_partitions_singleapp.bin,0x10000:esp32-wroom-32_hello_world_zephyr_2.7.0.bin
title: "Program bootlader, partition table, and binary."
- command: power %DUT_POWER% off
title: "Power off ESP32."