A BSP for ESP32-C3 is released.(link: https://github.com/RT-Thread/rt-thread/tree/master/bsp/ESP32_C3) The BSP is based on the master branch of ESP-IDF and currently supports GPIO and UART. The steps to install and compile the BSP is detailed below. These steps have only been validated on MacOS. The exact same steps should work on Linux. It's not tested on Windows yet.
bsp/ESP32_C3directory. Use Env tool to download ESP-IDF package.
install.baton Windows instead). The script installs ESP-IDF toolchain and should only be run once when the package is downloaded for the first time
cd packages/ESP-IDF-latest ./install.sh # ./install.bat in Windows
IDF_PATHand export environment variables for IDF tools. This command needs to be run every time the BSP is built in a new terminal.
cd packages/ESP-IDF-latest . ./export.sh #. ./export.bat in Windows
install.sh every time, the command for exporting environment variables will also be shown at the end of the prompt.
All done! You can now run: . ./export.sh
scons --menuconfig. Every time after running
scons --menuconfig, new
CMakeLists.txtfor IDF projects needs to be generated with
scons --target=esp-idf. The new
bsp/ESP32_C3/maindirectory. None of the other SCons commands are usable.
idf.py build idf.py flash
After flashing the program you can see the LED blinking and can connect to the UART pins to use the msh shell.
The steps starting from installing ESP-IDF tools are the same as those in Espressif's official get started guide, which can be found at https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32c3/get-started/index.html
You are welcome to try out the BSP and feedback is appreciated. Feedback on these two questions is especially helpful.