Page 1 of 1

how to setup the esp mdf in vs code

Posted: Sat May 23, 2020 8:25 am
by abansal22
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?

Re: how to setup the esp mdf in vs code

Posted: Sun Aug 29, 2021 1:53 pm
by XiotSamuel
Try that not work. Anyone can provide step??

Re: how to setup the esp mdf in vs code

Posted: Mon Aug 30, 2021 9:35 am
by sw-dev-code

Re: how to setup the esp mdf in vs code

Posted: Mon Aug 30, 2021 2:43 pm
by XiotSamuel
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.  

Re: how to setup the esp mdf in vs code

Posted: Tue Aug 31, 2021 10:48 pm
by sw-dev-code
Thank you for sharing your configuration!