|
|
il y a 7 mois | |
|---|---|---|
| .. | ||
| main | il y a 1 an | |
| .gitignore | il y a 4 ans | |
| CMakeLists.txt | il y a 9 mois | |
| README.md | il y a 7 mois | |
| build_and_run.sh | il y a 7 mois | |
| sdkconfig.defaults | il y a 4 ans | |
| sdkconfig.defaults.esp32 | il y a 4 ans | |
| sdkconfig.defaults.esp32c3 | il y a 4 ans | |
ESP-IDF is the official development framework for Espressif SoCs, supporting Windows, Linux, and macOS. WAMR (WebAssembly Micro Runtime) can be integrated as a standard ESP-IDF component.
This example demonstrates how to use WAMR with ESP-IDF. Before proceeding, ensure you have the ESP-IDF development environment installed. For the relevant process, please refer to ESP-IDF documents.
A development board with one of the following SoCs:
ESP32
ESP32-C3
ESP32-S3
ESP32-C6
ESP32-P4
ESP32-C5
See Development Boards for more information about it.
Note: Different chips require different ESP-IDF versions, please check ESP-IDF Release and SoC Compatibility before proceeding.
Navigate to the ESP-IDF root directory.
Run the installation script based on your OS:
Linux/MacOS
./install.sh
Windows
./install.bat
If successful, you should see:
All done! You can now run:
. ./export.sh
Switch to the project directory and specify the target chip:
idf.py set-target <chip_name>
Open the configuration menu:
idf.py menuconfig
To modify WAMR settings, navigate to: Component config -> WASM Micro Runtime
Run the following command to compile, flash, and monitor the application:
idf.py -p PORT flash monitor
(To exit the serial monitor, type Ctrl-].)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.