ESP32 - Getting Started with ESP-IDF using Visual Studio Code [Easiest Method]
Ғылым және технология
How to easily install ESP-IDF and configure Visual Studio Code to develop and debug ESP32 applications directly from inside of it. This is the easiest and best method to work with ESP-IDF.
I will also show you 3 of my favourite Visual Studio Code extensions to make your life easy while programming.
This video is part of my upcoming "ESP32 How-to" video series, which will teach you how to program using Espressif's ESP-IDF.
Let me know in the comments if you have any questions.
Don't forget to Subscribe and turn on the Notifications to know about my new ESP32 Series videos!
❗❗❗ UPDATE / FIX ❗❗❗
▶ Visual Studio Code is not accepting the IDF Terminal configuration inside the workspace anymore.
▶ Here is a video link with the fix: • QUICK FIX for IDF Term...
*********************************
*** LINKS From the Video ***
Download ESP-IDF from this link: bit.ly/3mlKrRP
Download Visual Studio Code from this link: code.visualstudio.com/
** Timestamps **
00:00 Introduction
00:30 Installing ESP-IDF
01:25 Building an example
02:05 Installing VS Code
02:24 Configuring VS Code for IDF
05:13 Building the application
05:48 Monitoring the Device
06:15 My 3 Favourite Extensions
09:28 Conclusion
Пікірлер: 413
Hi everyone! It has been a while! As many of you mentioned, the IDF Terminal configuration inside VS CODE is broken here, so I added a new video with the fix: kzread.info/dash/bejne/gG1ntNiTqpnKdcY.html New videos are coming soon! And much more! Thanks for the support and yes, I'm still alive!🙂
@thuyetmai9650
2 жыл бұрын
Thank you so much!!
@isharaudayangawimalaweera3642
6 ай бұрын
Thank you very much. Its very helpful and for me this was the only solution. Thank you very much 💗
I ran across this video at the right time (almost)! I just spent two days setting up prerequisites for esp-idf and still wasn’t sure everything was right. And now I was facing setting up the idf with Visual Studio Code-and I can see, based on your video, that this would have been a painful process with lots of gotcha’s and a lot of things that I probably wouldn’t have figured out! I’ve watched all 3 of your videos, liked all 3 and subscribed! This is a HUGE help-THANK YOU! 😃 😃 😃
This is a fantastic video! I tried installing ESP-IDF through VS code extensions and ran into a million problems, then was just running ESP-IDF through CMD and it worked, but wasn't a huge fan. This is exactly what I was looking for! Hope you continue to make videos like this!!
@YuriR
2 жыл бұрын
Thank you for the comment! I'm glad it helped you! New videos are coming soon, I hope you like them!
I have never seen any video more useful than yours about ESP. you really directly guide to common problems everyone has!
@YuriR
2 жыл бұрын
Thank you so much for your comment! I'm glad the videos are helpful :)
Thank youu for your tutorial, I've been struggling to set up the esp-idf extension for a week. your way is much better :). cannot wait to see your next video
@YuriR
2 жыл бұрын
Thanks for your comment! Glad to know it was useful! Next video in a few days :)
You are an execent teacher, thank you. You made it so simple! been batling with VSCode and ESP for months now.
@YuriR
2 жыл бұрын
Thank you for your kind words! I try to keep it as simple as possible and add as much content in one video as I can :) I'm glad it helped!
One of the best tutorial for the topic on ESP32 , Its easy to follow, precise,and a lot to learn in short video. Excellent tutorial
@YuriR
2 жыл бұрын
Thank you for your kind words! I try to add as much information as possible in one video :) I'm glad you liked. New ones coming soon!
Congratulations Yuri. This tutorial was perfect. unfortunately i had already learned this but it will certainly help many devs with this tutorial. Please do more tutorials like this
@YuriR
2 жыл бұрын
Thanks for the support! More tutorials coming soon :)
Thanks for the detailed walk thru. Great content and production. Looking forward to other ESP32 beginner content.
@YuriR
2 жыл бұрын
Thanks for the comment! New ESP32 videos coming soon!
The quality of this tutorial is top notch. Definitely subscribing!
@YuriR
2 жыл бұрын
Thank you so much for the comment and support!
Just developed for Air Cond monitoring, your tutorial is very helpful.
Thank you, Yuri, for an excellent presentation. I particularly liked the even modulation and pace of delivery.
@YuriR
2 жыл бұрын
Thank you! I'm glad you liked!
Very good! I'm anxious for the next video.
@YuriR
2 жыл бұрын
Thank you! New video coming this week :)
Yuti, appreciate all the hard work you put in to make these tutorials. They are amazing. Please make a tutorial on eSP-Now with IDF. Thank uou
@YuriR
Жыл бұрын
Thank you so much! Will definitely do one!
You deserve more subscribers. So I am in. +1 sub. Keep up the good work man.
@YuriR
2 жыл бұрын
Thank you for your kind words and support. New videos coming soon! :)
Thank you! Please continue this series
@YuriR
2 жыл бұрын
Thank you! New videos coming soon! :)
Yuri R. Thankyou for sharing your experience with us. 💡✨
@YuriR
2 жыл бұрын
Thanks Rejane!
Thanks for this video. It helped me understand how people get started with coding IDF.
@YuriR
2 жыл бұрын
Thanks Matthew! I'm glad you liked it! More IDF videos coming soon.
Hello. This is the best video on this topic to date !!! Thank you very much!!!
@YuriR
2 жыл бұрын
Thank you for your kind words! I really appreciate it!
Very Nice and informative video. I didn't find any video of this quality on the subject. Looking at the quality of the content I don't want to miss any future video, so I subscribed. Thank you very much for sharing.
@YuriR
2 жыл бұрын
Thank you for the kind words and subscription! New videos are coming soon this week!
Thanks for your time. Waiting for the next video. Good luck
@YuriR
2 жыл бұрын
Thanks for the comment! New video coming soon!
Congratulations man!!! Great video!
@YuriR
2 жыл бұрын
Thanks Josepe!
By far the best explanation I have seen. The only missing part is JTAG debugging.
@YuriR
2 жыл бұрын
Thank you for your kind words. Keep in tune for the next video coming in a few days 😁
Great! You just explained in one video that I've been trying to get my head round in months, thanks. Not sure what your plans are for other topics, could I suggest the ESP mesh
@YuriR
2 жыл бұрын
Thank you so much for your comment! The idea is to pack as much information as possible in one video. And yes ESP Mesh is one of the topics coming in future videos!
Que massa meu! Excelente qualidade teu vídeo! Boa sorte nessa nova empreitada!!
@YuriR
2 жыл бұрын
Thanks for the comment! I really appreciate it!
Hocam süpersin 👍👍👍 Aylardır Esp32 için yazmaya ve yüklemeye çalışıyorum fakat olmuyordu. Senin sayende esp serisi bir işlemciye geçiş yaptım ve vereceğin dersler doğrultusunda ilerlemeyi planlıyorum. Çok teşekkür ediyorum. 🙏🙏🙏
@YuriR
Жыл бұрын
Glad you liked it! More videos coming soon :)
This is a very good video that helps setting up an environment for programming ESP devices in my favorite environment, VSCode. And being a hobbyist that has migrated from Adruino IDE to VSCODE, and using Platformio, this is refreshing. Now I just need to get my head around writing my code with ESP-IDF instead of the hand-holding the Arduino core gives me, but this tutorial certainly helps me to get my feet wet with that strategy. Thank you Yuri! I certainly appreciate your contribution!! [liked].[subscribed].[saved]
@YuriR
Жыл бұрын
I'm glad it helped Gary! Thanks for all the comments and welcome to IDF :)
Very helpful! Thank you for sharing the video!
@YuriR
2 жыл бұрын
Thank you for the comment!
This was great. Please make more.
@YuriR
2 жыл бұрын
I'm glad you liked, new videos coming soon :)
@manieshsh
2 жыл бұрын
@@YuriR thanks yuri. Best of luck for the channel. 😊
Excellent instructional video, thanks for your detailed explanations. Subscribed!
@YuriR
2 жыл бұрын
Thank you so much for the comment and support!
Wonderful video. Very useful video tutorial. Thank you very much ❤
Nice work! That worked for me! Thanks.
@YuriR
3 жыл бұрын
Great to hear!
Thank you for this awesome tutorial. Very helpful..
@YuriR
2 жыл бұрын
Thanks for the comment, I'm glad it helped!
Thanks for the video, you really helped me, also as a good brazilian I noticed your accent!
Excellent ! Many thanks for sharing. Yes ESP mesh would be a good topic to explore.
@YuriR
2 жыл бұрын
Thanks for the comment! Yes, ESP Mesh is in the plans for the future videos :)
Thanks for the vid. It really put some things together for me.
@YuriR
2 жыл бұрын
Thank you. Glad it helped!
thank you very much, from vietnamese with love
@YuriR
2 жыл бұрын
Thank you for the kind words!
Great vedio Yuri keep going ❤️❤️❤️
@YuriR
Жыл бұрын
Thank you so much! More videos coming soon!
Hi Yuri Great Video, made my life simpler Thanks Suresh
@YuriR
2 жыл бұрын
Thanks Suresh, I'm glad it helped!
If you are having problems with Python 3.9 (I did), add an environment variable called PIP_EXTRA_INDEX_URL with the value "dl.espressif.com/pypi" (without the quotations). This fixed my build environment after installing
@YuriR
2 жыл бұрын
Thanks for sharing your solution!
Hi... Hope all well at your end...Waiting for your next video. Take care
@YuriR
2 жыл бұрын
Thank you for your comment and concern. Everything is ok :) I was just super busy with work. New videos are coming soon!
Супер! Спасибо. Слушать можно на любом языке. Просто включаешь субтитры и переводишь на русский.
@YuriR
2 жыл бұрын
Thanks for the comment! Great to know!
Thanks for this excellent tutorial
Great tutorial, thank you!
@YuriR
2 жыл бұрын
Thanks for the comment Mica!
Thank for your tutorial is help me so much in my project, It easy than esp-idf extension:)))))) nice work bro 😎 +1sub
@YuriR
3 жыл бұрын
Thank you! I'm glad it helped! New videos coming soon!
@nhatcomnhom
3 жыл бұрын
@@YuriR i hope it ‘s about gatt server library :)))
@semihk09
2 жыл бұрын
@@YuriR I'm still waiting for your new video.
Outdated content. The video is really good, clear and at a good pace. Unfortunatly the esp-idf has changed and it is way more integrated in VS now and easier to use. Anyway there is enough material for a new video to replace this one. Anyway thank you Yuri for your work.
THANKS, after watching your video I'm ready to give it a 2nd try using your "Easy" approach. I had just given up trying to install ESP32 IDF Extension in vscode... BTW, I notice PlatformIO also has support for Espressif boards, but the last time I tried installing PlatformIO I ran out of disk space. It seems to want to install EVERYTHING up front even for boards I know I'll never use... uggh. Thanks again for a great video. I just signed up for your mailing list and am looking forward to watching your other videos. 👍👍
It's is a great video tutorial. Thank you.
@YuriR
2 жыл бұрын
Thanks for the comment! I'm glad you liked it.
Nice! Thanks, bro!
This is very Help full and cool
Super video and first class introduction to the ESP toolchain! Unfortunately so far the first and last video on your channel... 😢😢😢
@YuriR
2 жыл бұрын
Thank you so much for the comments! I'm back :) more videos coming soon!
Fantastic presentation
@YuriR
11 ай бұрын
I am glad you liked it.
ありがとうございます!
Thank you for the video
Please do a series!
@YuriR
2 жыл бұрын
Coming soon! :)
I like this tutorial. you explain more in this video.
@YuriR
Жыл бұрын
Glad you liked it!
Super Handy... Thanks a ton Brother..
@YuriR
2 жыл бұрын
No problem 👍:)
Very Good Videos.. Keep it up..
Hi Yuri, its really rich content. Thanks for your tutorials. Please continue your esp-idf tutorial. And kindly create video for TFT display with LVGL related stuff. Thanks Advance.
Thanks for explain and share you knowledge! I tried setup IDF with platformio without success.
@YuriR
2 жыл бұрын
Thank you for the comment and for liking the video!
Thank you, Yuri, for an wonderful presentation. Can you make a tutorial about Matter protocol in ESP32
Cool video, thanks :)
@YuriR
2 жыл бұрын
Thank you! :)
Great! big thanks man
@YuriR
2 жыл бұрын
No problem, thank you!
I use platformIO extension on vscode. this extension would manage most of the tasks with different type of boards.
You are a genius
@YuriR
2 жыл бұрын
Thank you!😅 More videos coming soon!
Parabéns meu galo. Legal a ideia. Pena que foi um pouco tarde para mim, já tinha feito isso.
@YuriR
2 жыл бұрын
Thanks Maiko!
Greetings from Brasil!
@YuriR
2 жыл бұрын
Thank you, hi Brazil!
Caraca, eu trabalhei contigo no CETA!!!!
Action buttons do not appear to work, perhaps because of the new terminal configuration. I should first mention that everything else in this video worked perfectly, thank you! The action buttons appear where they are supposed to and they open a terminal, which then runs the full IDF environment setup batch file. But by the time all that is done, the button command itself is lost and never runs. Note that I can successfully run any "idf .py" command in that terminal window that just opened from the button. But I could have done that in any regular terminal window. Edit: I should add that I've found that while it never works on the initial click, it *usually* works if you click it a second time in a row. So it's somewhat usable - weirdly flaky though.
Nice tutorial. Did you also look at the VS Code ESP IDF extension? Or did that not exist when you produced this tutorial? It seems the extension makes it even easier.
@YuriR
2 жыл бұрын
Thanks for the comment! Indeed with the new updates on the extension, it looks a lot more reliable! Although I personally prefer having maximum control of the environment and everything regarding the project. But the extension is a good alternative.
Amazing!
@YuriR
2 жыл бұрын
Thank you so much!
Bro! Thanks so much!
@YuriR
2 жыл бұрын
No problem, thanks for the comment!
i enjoy it 🎉❤
Thank you!
@YuriR
2 жыл бұрын
No worries, thank you!
Great Video ty
@YuriR
2 жыл бұрын
Thank you!
Bahh vlw meu grande, teu video me ajudou demais.
@YuriR
Жыл бұрын
Glad it helped!
This is an excellent video, ditch the background music. Waiting for your next video, please show websockets!!
@YuriR
2 жыл бұрын
Thanks for the comment! Still checking what's the best way to have a good balance between background music to make it more dynamic and just the plain voiceover. Thanks for the suggestion!
Great video Yuri, thank you! Do you have any idea why the action buttons sometimes work and sometimes don't? I haven't been able to figure out under what conditions they work or not work. Sometimes, I have to hit Run twice before it works --very strange...Something has to be wrong with my installation, but I haven't figured out what. Could there be conflict between settings in the espressif-idf extenstion configuration and the VS action buttons ?
Thank you
@YuriR
2 жыл бұрын
No worries, Thank you!
Thanks a lot pal. As well it would be better to explait how to make it possible to debug the ESP32 project in the Visual Studio Code.
Is there a reason why you dont use Espressiff's vscode extension? it seems to automate some of the things you explain on the video, like the c_cpp_properties.json configuration
thank you.
excelleent!
@YuriR
2 жыл бұрын
Thank you!
Hello. I want to learn how to program ESP 32 modules. Can you tell me where to start for a newbie? Are there any good courses or books?
Hi Yuri, this video is so great for me. :) Thank you very much. I have some question, can this installation and tools use with ESP8266?
@YuriR
2 жыл бұрын
Hi Jatu, thanks for the comment! Unfortunately it doesn't apply for the ESP8266 :(
none of my include statements are working properly. nothing was covered in the video about this. not sure if i did something wrong
Hi Yuri, Thank you for doing this! It is very helpful and you are kind to help us. Q: How can I setup VSCode so that the ESP-IDF terminal is persistent across any new folder? In video2 we create a new folder, but the Terminal (idf) does not work and hence when the action buttons are clicked they fail due to missing path updates & variable. Any links or simple instruction would be gratefully appreciated. Thank you! joe
Hello Yuri. Thanks for doing this. I am able to upload the code and the serial monitoring is working but the majority of the header files are not being found by VScode so the led isnt blinking. How can I fix that? Thanks again man
Thanks for the great video! Very helpful. I had one problem though in that at the terminal, my system still wants to run Python v2.7. Any idea why that is hanging on?
@YuriR
2 жыл бұрын
Thanks for the comment. Sorry for the delay in replying. Sounds like an environment variable issue. It's possible that your terminal is not loading the IDF variables (that contain the PATH to the correct python version). You could try the Quick Fix link that I've added in the description for the most recent IDF issue on VS Code and see how it goes.
Great video the esp-idf extension fails a lot, I did the terminal configuration in "Preferences: User Settings" so I have not to save a new workspace for each time I open a file, works great!
@YuriR
2 жыл бұрын
Thanks for the comment! That was a great idea, since VS Code stopped supporting the configuration inside the workspace file, and now we should do like you did!
Hi Yuri, Many thanks for this tutorial. It is very helpful. It would be great if you could share the commands used in "Configuring VS Code IDF" for VS code running on mac devices. Apparently these commands are not available for mac devices. Thank you :-)
Excellent presentation! I am doing everything in my power to escape coding in C. Micropython has been allowing me to get the vast majority of applications up and running so much faster while still being able to use inline C or ASM when needed. Any chance you are able to engage Micropython for ESP32??
@YuriR
2 жыл бұрын
Thanks for the comment and support! Micropython is great for quick applications like you said and it's becoming more and more popular these days. However, my main focus in this channel for now is into C/C++ Firmware development, sorry! But maybe in the future🙂
Pls continue with esp32 lessons.
@YuriR
2 жыл бұрын
Thank you for the comment, new ESP32 videos coming soon!
Yuri, this is an awesome tutorial! Could you possibly do a similar version for linux as well as the esp-idf extension?
@YuriR
2 жыл бұрын
Hi Oldazcat2, thank you so much! Will possibly do it in the future!
Yo no hablo ingles pero seguiré este curso
@YuriR
2 жыл бұрын
Thanks! You should be able to watch by enabling the subtitles in your language
At "04.50" the two commands "terminal.integrated.shell.windows" and "terminal.integrated.shellArgs.windows"are now deprecated. What is the solution now?
@butsukete1806
2 жыл бұрын
Deprecated means it still works until some future version. The problem is the startup bat file not finding python. Tried using .espressif/idf_cmd_init.bat instead of esp-idf/export.bat (which gets called by idf_cmd_init), but that didn't work either. Guess it needs some hax to set *PATH correctly.
@claasmeints6158
2 жыл бұрын
I don't know why, but somehow this is how it works with the recommended shell profiles: "terminal.integrated.profiles.windows": { "Command Prompt": { "path": [ "${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe" ], "args": [ "/k", "C:/esp/esp-idf/export.bat && C:/esp/esp-idf/export.bat", ], "icon": "terminal-cmd" }, } } Somehow I need to run export.bat two times
@YuriR
2 жыл бұрын
Hi Rajbir, sorry for the delay. I made a quick video with the fix, you can check it here: kzread.info/dash/bejne/gG1ntNiTqpnKdcY.html
Excellent - thank you! A great tutorial and very nicely produced. In setting up the workspace settings (around 4:50 in your video) VS Code objects with this message: "This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in `#terminal.integrated.profiles.windows#` and setting its profile name as the default in `#terminal.integrated.defaultProfile.windows#`. This will currently take priority over the new profiles settings but that will change in the future.". Will the settings you explain still work?
@YuriR
2 жыл бұрын
Thanks for the comment! Indeed, VS Code now doesn't accept those configurations anymore. Please find a new video link with the fix in the description of this video!
Want to form a mesh using esp32 , expecting u r next video
@YuriR
2 жыл бұрын
Thank you for the comment. I will make a video about ESP32 Mesh in the future. New videos coming soon! :)
Hello Yuri R pls make a tutorial on ESP 32 thanks for this video...
@YuriR
2 жыл бұрын
Hi Parth, thank you for the comment! New videos coming soon :)
Dear Yuri, At time 5:07 you say open an new TERMINAL: but the I get the message IDF_PATH environment variable needs to be set to use this tool What should I do now?