ESP-IDF, MSYS2, and Visual Studio Code

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

ESP-IDF, MSYS2, and Visual Studio Code

Postby mikemoy » Sun Apr 08, 2018 3:09 am

I've been using platform.io plugin for MVSC for all my ESP-IDF projects and it has worked well. However I now need to be on the latest release, so i switched to using the MSYS2 environment here:
https://espressif-docs.readthedocs-host ... setup.html

I really like this setup but now cannot figure out how to get MVSC to work like it did with platform.io.

I have looked for a solution to this, but after 2 hours of trying this and that from the web, I came up empty handed.
It would be great if espressif would add a section to the install guide along with using Eclipse as well, because I find using MVSC just as great.

If anyone has pulled this off, would some kind sole share a step by step guide to help me please.


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

Re: ESP-IDF, MSYS2, and Visual Studio Code

Postby mikemoy » Sun Apr 08, 2018 5:14 am

@WiFive, Thank you so much for that!!! It worked like a charm.


For anyone else, this tip will help speed up the make process.
In the tasks.json file, go to the "build app" section, and change it to this.

"label": "build app",
"group": "build",
"command": "make",
"type": "shell",
"args": [
"-j8",
"app"
],

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: ESP-IDF, MSYS2, and Visual Studio Code

Postby Deouss » Mon Apr 09, 2018 12:42 am

That's insane... I must try that. I understand this would be pure non arduino IDF ESP framework with C/C++ code - right?

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

Re: ESP-IDF, MSYS2, and Visual Studio Code

Postby mikemoy » Mon Apr 09, 2018 2:07 am

That's insane... I must try that. I understand this would be pure non arduino IDF ESP framework with C/C++ code - right?
Yes! Its awesome, I am shocked that this is not part of their docs.

Who is online

Users browsing this forum: No registered users and 134 guests