Need help: “Arduino as component” on ESP‑IDF v5.4.2 + VS Code extension — build errors
Posted: Thu Jul 03, 2025 12:31 pm
Hello everyone,
I’ve installed ESP‑IDF v5.4.2 on my MacBook laptop via the ESP‑IDF VS Code extension, and I’m able to build and flash basic ESP‑IDF examples successfully. Now, I want to use Arduino as a component, so I created a new project using your provided “arduino-as-component” template—without changing any code, just generated and built—but I’m hit with multiple errors, even clean clones of the template fail.
I’ve also tried switching between CMake 3.30.2 and 4.0.3, but nothing changed. I’m not using a terminal, only the VS Code extension commands like Build, Flash, Add Arduino ESP32 as ESP‑IDF component, etc.
Could you please provide a detailed step-by-step procedure, assuming:
- ESP‑IDF v5.4.2 on either Windows/MacBook
- Using VS Code with ESP‑IDF extension (no terminal)
- “Arduino as component” project created via the extension template
- Errors occur at build time—likely unresolved components or missing settings
I’d appreciate your guidance: what exact VS Code commands, menuconfig changes, or SDK adjustments are required to successfully integrate Arduino into ESP‑IDF in this workflow?
Thank you
I’ve installed ESP‑IDF v5.4.2 on my MacBook laptop via the ESP‑IDF VS Code extension, and I’m able to build and flash basic ESP‑IDF examples successfully. Now, I want to use Arduino as a component, so I created a new project using your provided “arduino-as-component” template—without changing any code, just generated and built—but I’m hit with multiple errors, even clean clones of the template fail.
I’ve also tried switching between CMake 3.30.2 and 4.0.3, but nothing changed. I’m not using a terminal, only the VS Code extension commands like Build, Flash, Add Arduino ESP32 as ESP‑IDF component, etc.
Could you please provide a detailed step-by-step procedure, assuming:
- ESP‑IDF v5.4.2 on either Windows/MacBook
- Using VS Code with ESP‑IDF extension (no terminal)
- “Arduino as component” project created via the extension template
- Errors occur at build time—likely unresolved components or missing settings
I’d appreciate your guidance: what exact VS Code commands, menuconfig changes, or SDK adjustments are required to successfully integrate Arduino into ESP‑IDF in this workflow?
Thank you