-
Notifications
You must be signed in to change notification settings - Fork 2
Espressif ESP32 DevKitC and the ESP WROVER KIT
Install the ESP32-DevKitC development platform following the Amazon documentation: https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html
Follow the ESP32 documentation for the Windows based toolchain setup. https://docs.espressif.com/projects/esp-idf/en/latest/get-started/windows-setup.html
This Github repository can be copied into the MingW32 "home"\esp folder.
Trust X is connected to ESP32-DevKitC power supply, I2C interface, GPIO for software reset and an optional JTAG debugging interface.
You can find the design files here.
ESP32 | Trust X Signal Name |
---|---|
GPIO 22(IO22) | SCL |
GPIO 21(IO21) | SDA |
GPIO 18(IO18) | Reset |
3.3V | VCC |
GND | GND |
JTAG debugging on ESP32-DevKitC can be done using an additional USB to MPSSE cable. FTDI C232HM-DDHSL-0 cable is the supported cable for JTAG debugging. Link: https://www.ftdichip.com/Products/Cables/USBMPSSE.htm
The connection from FTDI cable to ESP32 DevKitC is as follows:
C232HM-DDHSL-0 Wire Color | ESP32 GPIO Pin | JTAG Signal Name |
---|---|---|
Brown (pin 5) | IO14 | TMS |
Yellow (pin 3) | IO12 | TDI |
Black (pin 10) | GND | GND |
Orange (pin 2) | IO13 | TCK |
Green (pin 4) | IO15 | TDO |
After the hardware is wired up, follow the Amazon instruction to install the software for debugging setup. https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_espressif.html
FTDI driver: http://www.ftdichip.com/Drivers/D2XX.htm
OpenOCD configuration: https://github.com/espressif/openocd-esp32/releases
Zadig.exe: https://zadig.akeo.ie/
Start command prompt, navigate to <BASE_FOLDER>\demos\espressif\esp32_devkitc_esp_wrover_kit\make and start openOCD command:
openocd.exe -f esp32_devkitj_v1.cfg -f esp-wroom-32.cfg
Open a new command prompt, navigate to your msys32 directory, and run mingw32.exe. In the mingw32 terminal, navigate to <BASE_FOLDER>\demos\espressif\esp32_devkitc_esp_wrover_kit\make and run make flash monitor.
Open another mingw32 terminal, navigate to <BASE_FOLDER>\demos\espressif\esp32_devkitc_esp_wrover_kit\make and run the following command to trigger the breakpoint in the main function.
xtensa-esp32-elf-gdb -x gdbinit build/aws_demos.elf
Note: The ESP32 supports a maximum of two break points.
Configure the serial terminal in the "home"\esp\amazon=freertos-1.4.2\demo\espressif\esp32_devkitc_esp_wrover_kit_trustx\make\sdkconfig
The default COM setting is 8. Please change it to the value according to your enumerated serial port.
#
# Serial flasher config
#
CONFIG_ESPTOOLPY_PORT="COM11"
Start the MingW32 environment and navigate to "home"\esp\amaozon=freertos-1.4.2\demo\espressif\esp32_devkitc_esp_wrover_kit_trustx\make\ directory. Execute the following command to compile, flash the image and start the serial monitor.
make flash monitor