Install Espressif IDF Extension in VS Code to program ESP32-C3 Run on Linux Mint 21.2 (over Windows 11/VirtualBox)
This video show steps to install Espressif IDF Extension in VS Code to
program
Espressif ESP32-C3-DevKitM-1. Here
VS Code run on Linux Mint 21.2 (over Windows 11/VirtualBox).
Basically, it follow the steps in ESP-IDF Visual Studio Code Extension Installation Guide to
- Install ESP-IDF Extension to VS Code.
- Install Prerequisites for Linux.
- Configure ESP-IDF extension.
- Add 60-openocd.rules for permisssion delegation in USB to added in /etc/udev/rules.d/.
Then follow Basic use of the extension to:
- Create project of Blink example.
- Grant permission to user to access USB port.
- finally flash on ESP32-C3-DevKitM-1.
Fix IntelliSense error of:
identifier "CONFIG_BLINK_PERIOD"
is undefined
identifier "portTICK_PERIOD_MS"
is undefined
in VS Code/ESP-IDF Blink Example.
With auto-generated code with default setting, it can be built, flash and run on ESP32-C3 device without error.
Is it OK, ...NOT.
If you open main/blink_example_main.c, you can notice that IntelliSense report error of:
identifier "CONFIG_BLINK_PERIOD" is undefined
identifier "portTICK_PERIOD_MS" is undefined
To fix it:
Edit .vscode/settings.json
change:
"C_Cpp.intelliSenseEngine": "default",
to:
"C_Cpp.intelliSenseEngine": "Tag Parser",
Next:
~ Create Hello World in VSCode/ESP-IDF Extension manually, run on ESP32-C6 to send text to Serial.
Comments
Post a Comment