See the ESP32-S3-DevKitC-1 - Getting Started Guide for more information about setting up the ESP32-S3-DevKitC-1 development board hardware.
To communicate with your board, you need to download and install the required toolchain.
- Navigate to the ESP-IDF directory (
cd ./vendors/espressif/esp-idf
) - Run the
install.sh
script which installs the required tools (./install.sh
) - Run the
export.sh
to add the required tools to the environment PATH (. ./export.sh
)
Note: ESP32-S3 compiler is supported by ESP-IDF v4.4.x only - you must use the supported compiler version to build FreeRTOS application. To check the version of your compiler, run the following command.
xtensa-esp32s3-elf-gcc --version
Above command should print following output:
xtensa-esp32s3-elf-gcc (crosstool-NG esp-2021r2-patch3) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You can use CMake to generate the build files, build the application binary and Espressif's IDF utility to flash your board.
cmake -DVENDOR=espressif -DBOARD=esp32s3_devkitc -DCOMPILER=xtensa-esp32s3 -S . -B build-directory -GNinja
Note: If you want to generate the test application build files, add the -DAFR_ENABLE_TESTS=1
flag.
Use Espressif's IDF utility to build the application:
./vendors/espressif/esp-idf/tools/idf.py -B build-directory build
Or use the generic CMake interface to build the application:
cmake --build build-directory
Use Espressif's IDF utility (freertos/vendors/espressif/esp-idf/tools/idf.py) to flash your board, run the application, and see logs. To erase the board's flash, go to the freertos directory and use the following command:
./vendors/espressif/esp-idf/tools/idf.py -B build-directory erase_flash
You can use the IDF script to flash your board:
./vendors/espressif/esp-idf/tools/idf.py -B build-directory flash
To monitor:
./vendors/espressif/esp-idf/tools/idf.py -B build-directory monitor -p /dev/ttyUSB0
-
Refer the Espressif ESP-IDF programming guide to enable JTAG Debugging on ESP32-S3 based boards.