ESPRESSIF/ESP32
ESP32 개발(ESP-IDF) - LED 점멸
engineer4ever
2025. 3. 20. 00:03
MCU
|
ESP32 DevKit V1(ESP-WROOM-32)
|
IDE
|
VSC + ESP-IDF
|
목표
|
ESP32 DevKit V1의 LED를 ON-OFF
|
1. ESP-IDF
View - Command Palette

blink - Create project using example blink


LED GPIO 설정
#define BLINK_GPIO 2

flash method - UART


serial port - COM3



Build - 에러남

다음과 같이 c_cpp_properties.json를 수정
{
"configurations": [
{
"name": "ESP-IDF",
"compilerPath": "E:\\WORK\\P_ESP32\\.espressif\\tools\\xtensa-esp32-elf\\esp-12.2.0_20230208\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"includePath": [
"${config:idf.espIdfPath}/components/**",
"${config:idf.espIdfPathWin}/components/**",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}/**"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": false
},
"configurationProvider": "ms-vscode.cmake-tools",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
Build - 에러 없어짐

Flash

