how to setup the esp mdf in vs code

abansal22
Posts: 85
Joined: Wed Apr 22, 2020 8:24 am

how to setup the esp mdf in vs code

Postby abansal22 » Sat May 23, 2020 8:25 am

Hello, I want to use the esp mdf framework. I installed the esp idf 4.0 in vs code using the esp idf plugin. is there is any way to use the Mdf in the vs code. does copying the mdf components in the components folder of idf directory will work?

XiotSamuel
Posts: 9
Joined: Sun Aug 29, 2021 1:50 pm

Re: how to setup the esp mdf in vs code

Postby XiotSamuel » Sun Aug 29, 2021 1:53 pm

Try that not work. Anyone can provide step??

sw-dev-code
Posts: 3
Joined: Mon Aug 30, 2021 9:29 am

Re: how to setup the esp mdf in vs code

Postby sw-dev-code » Mon Aug 30, 2021 9:35 am


XiotSamuel
Posts: 9
Joined: Sun Aug 29, 2021 1:50 pm

Re: how to setup the esp mdf in vs code

Postby XiotSamuel » Mon Aug 30, 2021 2:43 pm

Thanks, will take a look on that, and I have some test and following .vscode setting seem work.
  1.  
  2. {
  3.     "configurations": [
  4.         {
  5.             "name": "Win32",
  6.             "includePath": [
  7.                 "${workspaceFolder}/**",
  8.                 "${workspaceFolder}/build/config",
  9.                 "${env:MDF_PATH}/esp-idf/components/**",
  10.                 "${env:MDF_PATH}/components/**"
  11.             ],
  12.             "defines": [
  13.                 "_DEBUG",
  14.                 "UNICODE",
  15.                 "_UNICODE"
  16.             ],
  17.             "windowsSdkVersion": "10.0.19041.0",
  18.             "compilerPath": "C:\\<change to your path>\\.espressif\\tools\\xtensa-esp32-elf\\esp-2020r3-8.4.0\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc.exe",
  19.             "cStandard": "c17",
  20.             "cppStandard": "c++17",
  21.             "intelliSenseMode": "${default}",
  22.             "browse": {
  23.                 "path": [
  24.                     "${workspaceFolder}",
  25.                     "${workspaceFolder}/build/config",
  26.                     "${env:MDF_PATH}/esp-idf/components",
  27.                     "${env:MDF_PATH}/components"
  28.                 ]
  29.             }
  30.         }
  31.     ],
  32.     "version": 4
  33. }
  34.  

sw-dev-code
Posts: 3
Joined: Mon Aug 30, 2021 9:29 am

Re: how to setup the esp mdf in vs code

Postby sw-dev-code » Tue Aug 31, 2021 10:48 pm

Thank you for sharing your configuration!

Return to “ESP-MDF”

Who is online

Users browsing this forum: No registered users and 5 guests