ESP-IDF#3: Program ESP32 in Visual Studio Code - ESP IDF

preview_player
Показать описание
#ESP32 #ESPIDF
This is the third video in the series of learning ESP32 using ESP-IDF framework, In this video we saw how to program ESP32 in visual studio code.

--) 𝗡𝗲𝘄 𝗩𝗶𝗱𝗲𝗼: 𝗖𝗿𝗲𝗮𝘁𝗶𝗻𝗴 𝗮 𝗙𝗿𝗲𝗲𝗥𝗧𝗢𝗦 𝗧𝗮𝘀𝗸 𝗶𝗻 𝗘𝗦𝗣𝟯𝟮 | 𝗲𝘀𝗽-𝗶𝗱𝗳 𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 :----

--) 𝘆𝗼𝘂 𝗰𝗮𝗻 𝘄𝗮𝘁𝗰𝗵 𝘁𝗵𝗶𝘀 𝘃𝗶𝗱𝗲𝗼 𝗮𝗹𝘀𝗼 𝘁𝗼 𝗴𝗲𝘁 𝗺𝗼𝗿𝗲 𝗶𝗱𝗲𝗮 𝗮𝗯𝗼𝘂𝘁 𝗰𝗿𝗲𝗮𝘁𝗶𝗻𝗴 𝗻𝗲𝘄 𝗽𝗿𝗼𝗷𝗲𝗰𝘁 𝗶𝗻 𝘃𝘀 𝗰𝗼𝗱𝗲 :---

New updates(13/9/20)
-------------------------------------

𝐍𝐨𝐭𝐞:-
1) Download Microsoft c/c++ intellisense extension in vs code, I forgot to share in this video

2) If you are getting requirement error at 6.20 run these commands:

--- Don't forget to upgrade your pip
=================================================================================

𝐋𝐢𝐧𝐤 𝐨𝐟 𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭:

𝐮𝐩𝐜𝐨𝐦𝐢𝐧𝐠 𝐯𝐢𝐝𝐞𝐨𝐬:
- FreeRTOS Scheduler
- Writing program on dual core of ESP32
- Context switching

𝐈𝐟 𝐲𝐨𝐮 𝐥𝐢𝐤𝐞 𝐭𝐡𝐢𝐬 𝐯𝐢𝐝𝐞𝐨 𝐩𝐥𝐞𝐚𝐬𝐞 𝐥𝐢𝐤𝐞 𝐚𝐧𝐝 𝐬𝐮𝐛𝐬𝐜𝐫𝐢𝐛𝐞 𝐨𝐮𝐫 𝐘𝐨𝐮𝐓𝐮𝐛𝐞 𝐜𝐡𝐚𝐧𝐧𝐞𝐥.
Рекомендации по теме
Комментарии
Автор

Thanks for this Finally I am able to run my code successfully on vscode anyone is struggling while doing the same, please watch all the steps carefully. If you get stuck anywhere and you can't get any solution I suggest you to uninstall everything and try again .

imransaif
Автор

Thank you! Very useful video, helped me a lot. Now I can program my ESP32 with no issues

federicocanete
Автор

I have a problem with verifying the ESP-IDF tools. In the step "Verify ESP-IDF Tools" I am asked to add "ESP-IDF virtual environment python executable path" (Not shown on your video). I find enter but when I check tools exist, all pass except I get error that verifying python packages requirements failed.

bodyguardsafetysolutions
Автор

Nice video ... Waiting for upcoming videos 👌👍

AvinashBhavsar.
Автор

you are god from heaven sir. great salute. because of your tutorial i did my whole project successfully. Thank you so much sir.

thirumalak
Автор

hi, i keep getting this error at 6:21
Command failed: -r
Traceback (most recent call last):
File "C:\ESP32\esp-idf\tools\check_python_dependencies.py", line 108, in <module>
if idf_python_env_path not in sys.executable:
TypeError: 'in <string>' requires string as left operand, not NoneType


can you help me please

brunobuss
Автор

Appreciate it! I was looking exactly for this!

MegaUncleDrew
Автор

Finally! Thanks to your video I was able to use Vscode with IDF. Your video is very instructive, although I had to make a myriad of breaks to follow you, I am a complete beginner is this, but I was very important to use VSCode. Thanks a lot!

ROBMART
Автор

Great video thank you. Many of your #includes are showing a warning in the VSCode editor (squiggly underlines on lines 9-14) any tips on why, and how to fix this?

puffinx
Автор

Thanks for the video, whats the best way to learn how to program an ESP32 with 0 programming experience... I'm keen to start learning how to build projects based on ESP32

MPowerMotor
Автор

Can you help me with an issue on time 6:23, error - Command failed: "python" -r
The following Python requirements are not satisfied:

AvinashBhavsar.
Автор

Nicely explained!!
Keep up good work.
Please zoom text commands on terminal.

samuraininza
Автор

Great video. How do you resolve the following:Command failed: "python" -r
Traceback (most recent call last):
File "E:\ESP32\esp-idf\tools\check_python_dependencies.py", line 108, in <module>
if idf_python_env_path not in sys.executable:
TypeError: 'in <string>' requires string as left operand, not NoneType
[From 6:16 action in video]?

TheBestRTaken
Автор

Can u post a video of JTAG debugging in esp idf(vs code).

praveenkumar-sjjk
Автор

Thank you! Can we get rid of the red lines at the include lines somehow?

MohammedNoureldin
Автор

I get error :"CMake Error: The source directory "E:/ESP32/lab2/hello_world" does not appear to contain CMakeLists.txt."
can you show your cMakeLists.txt file, please?

thanhvinhnguyen
Автор

PLease Help me on this i am getting python not accesible issue
in verify esp tool first line is asking for python env:
Add your ESP-IDF virtual environment python executable absolute path. Example:

ejazmobashir
Автор

I had got troubles on the introducing VS code extension, so I have installed ESP-IDF again but a different directory from the first time.
Then fixing new pathes, however, VS code Terminal show me the old directory of ESP-IDF.
Would you help me to fix it?

ablax
Автор

Great video! I followed the steps in the previous video and got the helloworld example to work but I get an error from vscode when trying to verify the ESP-IDF Tools saying that, "Python pip is not found in current environment". Any ideas about what went wrong? I also don't have the following directory:

loganfansler
Автор

SIR GETTING THESE MANY OF ERRORS, I have FOLLOWED UR FIRST TUTORIAL AND GOT HELLOW ON SERIAL MONITOR BUT STUCK HERE


esp32ulp-elf-as' is not recognized as an internal or external command,
operable program or batch file.
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' is not recognized as an internal or external command,
operable program or batch file.

'dfu-util' is not recognized as an internal or external command,
operable program or batch file.
Command failed: dfu-util --version
'dfu-util' is not recognized as an internal or external command,
operable program or batch file.
Error: Command failed: dfu-util --version
'dfu-util' is not recognized as an internal or external command,
operable program or batch file.

Checking ESP-IDF Python requirements using C:\Users\Rohit
Python requirements from are satisfied.

The following Python requirements are not satisfied:

graphviz
psutil>=5.5.1
pylint>=1.9.4
requests>=2.21.0
typing>=3.6.6
pywin32; platform_system == "Windows"
xmlrunner>=1.7.7
Please check the documentation for the feature you are using, or run "C:\Users\Rohit -m pip install -r c:\Users\Rohit
Diagnostic information:
IDF_PYTHON_ENV_PATH: (not set)
Python interpreter used: C:\Users\Rohit
Warning: python interpreter not running from IDF_PYTHON_ENV_PATH
PATH: Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Users\Rohit Menu\Programs\Python 3.7;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\Program Files\JetBrains\PyCharm 2019.1.3\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\bin;;C:\Program VS Code\bin;C:\Users\Rohit Devar\AppData\Roaming\npm
Command failed: "C:\Users\Rohit -r "c:\Users\Rohit

__RohitDevar