Page 1 of 2

Setting up Visual Studio Code for ESP32 IDF

Posted: Wed Jul 11, 2018 1:43 pm
by Deouss
I posted a small guide how to setup VS Code and ESP-IDF on Windows
System uses CMake and is independent from f.ex PlatformIO
It will compile full blown FreeRTOS projects ;)

Link:
Setting up Visual Studio Code for ESP32 IDF

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Thu Jul 12, 2018 6:20 am
by luisonoff
Thank you Deouss!
Very well done and nicely explained.
I actually expected it to be much simpler... what is the difference between powershell and cmd? and how do I know which one I am using? Is it necessary to edit the environment variables even if we use the Espressif installer that adds some paths?

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Thu Jul 12, 2018 11:40 am
by Deouss
I updated the section about environment variables.
There is a batch file that automatically pulls the branch from git and sets the IDF_PATH for you ;)

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Sat Jul 14, 2018 4:50 pm
by Deouss
Just small update.
I seem to be having problem with intellisense feature. Not getting the smooth response.
Maybe someone has better idea how to. I also found some VSC c++ Getting Started Guide
Will look into it...

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Sun Jul 15, 2018 5:17 am
by Deouss
According to VSC c++ guide - I need the exact path to compiler and debugger binary file
I haven't set up debugging yet but maybe someone could help here with where are the above files.

It looks like VSC does not need all those very long listings for include paths and intellisense works good.
I supplied just one extra path "$(env:IDF_PATH}" and all works smooth so far
As far as CMake - maybe there are some extensions - I didn't check yet

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Sat Aug 04, 2018 4:19 am
by kolban
First class documentation sir. With your permission, I'm adding a solid reference to your work in my book of notes. Your paper is a must read for anyone working in VSC with ESP-IDF.

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Sat Aug 04, 2018 4:53 am
by Deouss
No problem ) I'm open to suggestions how to improve projects with VS Code.

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Sat Aug 04, 2018 5:14 am
by kolban
Have you had an opportunity to test to see the opportunity of interacting with gdb and JTAG (for debugging) under VSC?

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Sat Aug 04, 2018 5:30 am
by Deouss
Not yet. I haven't gotten that far and I am not sure how to properly debug the code.

Re: Setting up Visual Studio Code for ESP32 IDF

Posted: Fri Nov 16, 2018 7:24 am
by amruta
Check this.
https://github.com/VirgiliaBeatrice/esp ... utorial.md

It doesn't need updating environment variables also it includes debugger setup.
It uses msys bash with vs-code