esp-idf under Vscode/Platformio

chriskuku
Posts: 9
Joined: Fri Mar 29, 2024 5:49 pm

esp-idf under Vscode/Platformio

Postby chriskuku » Fri Mar 29, 2024 5:59 pm

Hi. I'm new to this forum and to ESP32 programming. I installed Vscode and platformio. Was able to compile and upload a project with the arduino framework under Platformio.

Since there is ESP-IDF als available as a Vscode extension, I'm wondering if this is an alternative to platformio or whether it runs under platformio.

Then there is a commandline tool ``idf.py``. I would prefer to develop under VScode. Is there a Wiki or how-to available?

I git cloned also https://github.com/espressif/esp-idf.git and ran the install.sh script.

Thanks for helping in advance,

Christoph

chriskuku
Posts: 9
Joined: Fri Mar 29, 2024 5:49 pm

Re: esp-idf under Vscode/Platformio

Postby chriskuku » Sun Mar 31, 2024 5:54 am

I've gotten so far that I installed the ESP-IDF extension under Vscode, and as far as I could tell when clicking on "install" in the extension browser the installation process found ESP-IDF that I installed before in my system. As a result I got the following picture. When clicking on install, I'm getting "Invalid ESP-IDF". I'm stuck now at this point.
Bildschirmfoto 2024-03-31 um 07.47.36.png
Bildschirmfoto 2024-03-31 um 07.47.36.png (356.48 KiB) Viewed 1246 times

mikemoy
Posts: 622
Joined: Fri Jan 12, 2018 9:10 pm

Re: esp-idf under Vscode/Platformio

Postby mikemoy » Sun Mar 31, 2024 4:02 pm

When you create a project in platformIO you have a choice to develop for Arduino or IDF.

DrMickeyLauer
Posts: 163
Joined: Sun May 22, 2022 2:42 pm

Re: esp-idf under Vscode/Platformio

Postby DrMickeyLauer » Sun Mar 31, 2024 4:16 pm

The ESP-IDF Extension is indeed an alternative to PlatformIO. Its major benefit is that you can move forward and backward between using VSCode as IDE and the command line. It adds very little (which is good) on top of ESP-IDF.

Who is online

Users browsing this forum: Google [Bot], ok-home and 245 guests