ESP-IDF 4.1 + Visual Studio Community 2019

antwdj
Posts: 7
Joined: Thu Jan 07, 2021 1:40 am

Re: ESP-IDF 4.1 + Visual Studio Community 2019

Postby antwdj » Thu Jan 28, 2021 11:06 am

Were the error message still the same? I mean did visual studio still can not find stdio.h, stdint.h, etc files? When you have finished editing CMakeSettings.json, visual studio need to regenerate the CMake cache. But sometime it does not use the most recent CMakeSettings.json. It's a bit annoying. If you want to force it, try close visual studio, delete the build folder and everything inside .vs folder except tasks.vs.json. And then open visual studio again.

antwdj
Posts: 7
Joined: Thu Jan 07, 2021 1:40 am

Re: ESP-IDF 4.1 + Visual Studio Community 2019

Postby antwdj » Fri Jan 29, 2021 1:56 am

I just tested ESP-IDF 4.0.2 with Visual Studio again. In the environment section of CMakeSettings.json you also need to add this line:

"IDF_CCACHE_ENABLE": "1",

Remove the comma if you put it on the last line in the environment section. This environment variable enable cache when you call a task (eg. Run flash).

vanBassum
Posts: 68
Joined: Sun Jan 17, 2021 11:59 am

Re: ESP-IDF 4.1 + Visual Studio Community 2019

Postby vanBassum » Tue Nov 02, 2021 1:02 pm

Hello,

We have decided on buying a license for visualGDB. So this is probably as far as I will go with this.

vanBassum
Posts: 68
Joined: Sun Jan 17, 2021 11:59 am

Re: ESP-IDF 4.1 + Visual Studio Community 2019

Postby vanBassum » Wed Dec 08, 2021 8:27 am

It's been a while, but I came across an interesting blogpost from Microsoft.
https://devblogs.microsoft.com/cppblog/ ... velopment/

This could be helpfull to use VS as delevelopment environment for the ESP as well.

Who is online

Users browsing this forum: No registered users and 30 guests