|
|
3 tahun lalu | |
|---|---|---|
| .. | ||
| .vscode | 3 tahun lalu | |
| drivers | 3 tahun lalu | |
| images | 3 tahun lalu | |
| main | 3 tahun lalu | |
| .config | 3 tahun lalu | |
| CMakeLists.txt | 3 tahun lalu | |
| Kconfig | 3 tahun lalu | |
| Makefile | 3 tahun lalu | |
| README.md | 3 tahun lalu | |
| README_ZH.md | 3 tahun lalu | |
| SConscript | 3 tahun lalu | |
| SConstruct | 3 tahun lalu | |
| rtconfig.h | 3 tahun lalu | |
| rtconfig.py | 3 tahun lalu | |
| rtt.patch | 3 tahun lalu | |
| sdkconfig | 3 tahun lalu | |
中文 | English
This document records the execution instruction of the BSP (board support package) for the ESP32-C3 development board.
The document is covered in two parts:
We tested 2 development boards, it all works, but due to the different LED pins of the two development boards, so we'll need to select the corresponding development board in the menuconfig.
The mainly-used resources of LUATOS_ESP32C3 are shown as follows:
Each peripheral supporting condition for this BSP is as follows:
| On-board Peripherals | *Support* | *Remark* |
|---|---|---|
| GPIO | Support | |
| UART | Support | Using LUATOS_ESP32C3 development board requires connecting serial port to USB chip UART0_TX and UART0_RX (such as CP2102) |
| JTAG debug | Support | ESP32C3 usb-linked development boards can be debugged |
Download ESP-IDF package
pkgs --update
Go to ESP-IDF package directory and install IDF tools. This command only needs to be run once after the package is downloaded for the first time.
cd packages/ESP-IDF-latest
./install.sh
# Use install.bat in Windows environment
Under the ESP-IDF package directory, export IDF environment variables. This commands need to be run every time when the BSP is built in a new terminal.
. export.sh
# Use export.bat in Windows environment
Configure RT-Thread under the BSP directory
scons --menuconfig
Whenever RT-Thread configuration is changed with scons --menuconfig, a new CMakeLists.txt needs to be generated with the command below
scons --target=esp-idf
Use idf.py to compile and upload the program. Refer to Espressif official documents for reference.
Once the project is successfully downloaded, the system runs automatically, the red LED will blink in 1s on cycles.
Maintainer:
Special thanks to chenyingchun0312 for providing support on the RISC-V part working.