ESP32 - Getting Started with ESP-IDF using Visual Studio Code [Easiest Method]

  Переглядів 227,670

Yuri R

Yuri R

День тому

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

КОМЕНТАРІ: 416
@YuriR
@YuriR 2 роки тому
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: ukposts.info/have/v-deo/hmlkhqyRsWyVppc.html New videos are coming soon! And much more! Thanks for the support and yes, I'm still alive!🙂
@thuyetmai9650
@thuyetmai9650 2 роки тому
Thank you so much!!
@isharaudayangawimalaweera3642
@isharaudayangawimalaweera3642 3 місяці тому
Thank you very much. Its very helpful and for me this was the only solution. Thank you very much 💗
@reddevilfan100
@reddevilfan100 3 роки тому
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
@YuriR 2 роки тому
Thank you for the comment! I'm glad it helped you! New videos are coming soon, I hope you like them!
@garywilliams4214
@garywilliams4214 Рік тому
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! 😃 😃 😃
@boudebzabadra9749
@boudebzabadra9749 3 роки тому
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
@YuriR 2 роки тому
Thanks for your comment! Glad to know it was useful! Next video in a few days :)
@behnamghiaseddin7766
@behnamghiaseddin7766 2 роки тому
I have never seen any video more useful than yours about ESP. you really directly guide to common problems everyone has!
@YuriR
@YuriR 2 роки тому
Thank you so much for your comment! I'm glad the videos are helpful :)
@erickanjosdelima9022
@erickanjosdelima9022 3 роки тому
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
@YuriR 2 роки тому
Thanks for the support! More tutorials coming soon :)
@nikhilpen
@nikhilpen 3 роки тому
Thanks for the detailed walk thru. Great content and production. Looking forward to other ESP32 beginner content.
@YuriR
@YuriR 2 роки тому
Thanks for the comment! New ESP32 videos coming soon!
@tm_digita
@tm_digita 3 роки тому
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
@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!
@vogesdg
@vogesdg 3 роки тому
You are an execent teacher, thank you. You made it so simple! been batling with VSCode and ESP for months now.
@YuriR
@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!
@BrianCanning
@BrianCanning 3 роки тому
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
@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!
@svarodzic
@svarodzic 8 місяців тому
Nice! Thanks, bro!
@ramradhakrishnan9382
@ramradhakrishnan9382 2 роки тому
Thank you, Yuri, for an excellent presentation. I particularly liked the even modulation and pace of delivery.
@YuriR
@YuriR 2 роки тому
Thank you! I'm glad you liked!
@CH33SER
@CH33SER 3 роки тому
The quality of this tutorial is top notch. Definitely subscribing!
@YuriR
@YuriR 2 роки тому
Thank you so much for the comment and support!
@nafihahmd
@nafihahmd 3 роки тому
You deserve more subscribers. So I am in. +1 sub. Keep up the good work man.
@YuriR
@YuriR 2 роки тому
Thank you for your kind words and support. New videos coming soon! :)
@kapdivyang
@kapdivyang 3 роки тому
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
@YuriR 2 роки тому
Thank you for the kind words and subscription! New videos are coming soon this week!
@venkateshgovindaiah5826
@venkateshgovindaiah5826 Рік тому
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
@YuriR Рік тому
Thank you so much! Will definitely do one!
@fadhilaasyam5895
@fadhilaasyam5895 Місяць тому
Just developed for Air Cond monitoring, your tutorial is very helpful.
@rejanerodrigues837
@rejanerodrigues837 3 роки тому
Yuri R. Thankyou for sharing your experience with us. 💡✨
@YuriR
@YuriR 2 роки тому
Thanks Rejane!
@mikeprice2038
@mikeprice2038 2 роки тому
Well done sir! I am staring to get into IoT hacking and the esp32 is the first board I have purchased. I can't wait to watch more of these.
@YuriR
@YuriR 2 роки тому
Thank you so much! Next videos coming soon! :)
@roldanmarco1856
@roldanmarco1856 3 роки тому
Thank you! Please continue this series
@YuriR
@YuriR 2 роки тому
Thank you! New videos coming soon! :)
@LeoHouseDrums
@LeoHouseDrums 3 роки тому
Que massa meu! Excelente qualidade teu vídeo! Boa sorte nessa nova empreitada!!
@YuriR
@YuriR 2 роки тому
Thanks for the comment! I really appreciate it!
@clarissaargentirocha8537
@clarissaargentirocha8537 3 роки тому
Very good! I'm anxious for the next video.
@YuriR
@YuriR 2 роки тому
Thank you! New video coming this week :)
@vitaliyyvitaliyy1884
@vitaliyyvitaliyy1884 3 роки тому
Hello. This is the best video on this topic to date !!! Thank you very much!!!
@YuriR
@YuriR 2 роки тому
Thank you for your kind words! I really appreciate it!
@JosepeFrancoGerent
@JosepeFrancoGerent 3 роки тому
Congratulations man!!! Great video!
@YuriR
@YuriR 2 роки тому
Thanks Josepe!
@HopWorksET
@HopWorksET Рік тому
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
@YuriR Рік тому
I'm glad it helped Gary! Thanks for all the comments and welcome to IDF :)
@matthewfelgate
@matthewfelgate 3 роки тому
Thanks for this video. It helped me understand how people get started with coding IDF.
@YuriR
@YuriR 2 роки тому
Thanks Matthew! I'm glad you liked it! More IDF videos coming soon.
@mouradmkhakh8903
@mouradmkhakh8903 3 роки тому
Thanks for your time. Waiting for the next video. Good luck
@YuriR
@YuriR 2 роки тому
Thanks for the comment! New video coming soon!
@jerrychan1471
@jerrychan1471 3 роки тому
Excellent instructional video, thanks for your detailed explanations. Subscribed!
@YuriR
@YuriR 2 роки тому
Thank you so much for the comment and support!
@manieshsh
@manieshsh 2 роки тому
This was great. Please make more.
@YuriR
@YuriR 2 роки тому
I'm glad you liked, new videos coming soon :)
@manieshsh
@manieshsh 2 роки тому
@@YuriR thanks yuri. Best of luck for the channel. 😊
@tingwang4133
@tingwang4133 3 роки тому
Very helpful! Thank you for sharing the video!
@YuriR
@YuriR 2 роки тому
Thank you for the comment!
@jorgerive7335
@jorgerive7335 2 місяці тому
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 ?
@prutser67
@prutser67 3 роки тому
By far the best explanation I have seen. The only missing part is JTAG debugging.
@YuriR
@YuriR 2 роки тому
Thank you for your kind words. Keep in tune for the next video coming in a few days 😁
@isharaudayangawimalaweera3642
@isharaudayangawimalaweera3642 3 місяці тому
Wonderful video. Very useful video tutorial. Thank you very much ❤
@eyupdelikanl6436
@eyupdelikanl6436 Рік тому
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
@YuriR Рік тому
Glad you liked it! More videos coming soon :)
@wei48221
@wei48221 3 роки тому
Thank you for this awesome tutorial. Very helpful..
@YuriR
@YuriR 2 роки тому
Thanks for the comment, I'm glad it helped!
@jucilenesiqueira6848
@jucilenesiqueira6848 7 місяців тому
thank you.
@mark1463
@mark1463 Рік тому
Thanks for the video, you really helped me, also as a good brazilian I noticed your accent!
@nhatcomnhom
@nhatcomnhom 3 роки тому
Thank for your tutorial is help me so much in my project, It easy than esp-idf extension:)))))) nice work bro 😎 +1sub
@YuriR
@YuriR 3 роки тому
Thank you! I'm glad it helped! New videos coming soon!
@nhatcomnhom
@nhatcomnhom 3 роки тому
@@YuriR i hope it ‘s about gatt server library :)))
@semihk09
@semihk09 2 роки тому
@@YuriR I'm still waiting for your new video.
@harerudez4788
@harerudez4788 3 роки тому
Nice work! That worked for me! Thanks.
@YuriR
@YuriR 3 роки тому
Great to hear!
@SureshKumar-bp8xx
@SureshKumar-bp8xx 3 роки тому
Hi Yuri Great Video, made my life simpler Thanks Suresh
@YuriR
@YuriR 2 роки тому
Thanks Suresh, I'm glad it helped!
@vwarrier
@vwarrier 11 місяців тому
Thanks for this excellent tutorial
@wretchedfibs4306
@wretchedfibs4306 2 роки тому
Thanks for the vid. It really put some things together for me.
@YuriR
@YuriR 2 роки тому
Thank you. Glad it helped!
@pramitchaudhury1821
@pramitchaudhury1821 Рік тому
Great vedio Yuri keep going ❤️❤️❤️
@YuriR
@YuriR Рік тому
Thank you so much! More videos coming soon!
@kapdivyang
@kapdivyang 2 роки тому
Hi... Hope all well at your end...Waiting for your next video. Take care
@YuriR
@YuriR 2 роки тому
Thank you for your comment and concern. Everything is ok :) I was just super busy with work. New videos are coming soon!
@joebelson7122
@joebelson7122 Рік тому
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
@tmjromao
@tmjromao 3 роки тому
Excellent ! Many thanks for sharing. Yes ESP mesh would be a good topic to explore.
@YuriR
@YuriR 2 роки тому
Thanks for the comment! Yes, ESP Mesh is in the plans for the future videos :)
@MicaCZ
@MicaCZ 3 роки тому
Great tutorial, thank you!
@YuriR
@YuriR 2 роки тому
Thanks for the comment Mica!
@thomasbarnekow1281
@thomasbarnekow1281 3 роки тому
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
@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.
@ThanhDatzz
@ThanhDatzz 3 роки тому
It's is a great video tutorial. Thank you.
@YuriR
@YuriR 2 роки тому
Thanks for the comment! I'm glad you liked it.
@deepindersingh6117
@deepindersingh6117 Рік тому
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 :-)
@NahuelTaibo
@NahuelTaibo 6 місяців тому
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
@mathewsjacob
@mathewsjacob 10 місяців тому
Thank you, Yuri, for an wonderful presentation. Can you make a tutorial about Matter protocol in ESP32
@lancemarchetti8673
@lancemarchetti8673 9 місяців тому
Fantastic presentation
@YuriR
@YuriR 9 місяців тому
I am glad you liked it.
@JRabba1995
@JRabba1995 10 місяців тому
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
@franky12
@franky12 3 роки тому
Super video and first class introduction to the ESP toolchain! Unfortunately so far the first and last video on your channel... 😢😢😢
@YuriR
@YuriR 2 роки тому
Thank you so much for the comments! I'm back :) more videos coming soon!
@vandungnguyen5404
@vandungnguyen5404 2 роки тому
thank you very much, from vietnamese with love
@YuriR
@YuriR 2 роки тому
Thank you for the kind words!
@olivierortigues4437
@olivierortigues4437 5 місяців тому
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.
@TheIceCraftWhysomad
@TheIceCraftWhysomad 4 місяці тому
Thank you for the video
@jatustudiobox3986
@jatustudiobox3986 2 роки тому
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
@YuriR 2 роки тому
Hi Jatu, thanks for the comment! Unfortunately it doesn't apply for the ESP8266 :(
@waynehohman3040
@waynehohman3040 3 роки тому
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
@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.
@hondaman900f
@hondaman900f 2 роки тому
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
@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!
@user-hq3kq4zl5b
@user-hq3kq4zl5b Місяць тому
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?
@Factory400
@Factory400 3 роки тому
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
@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🙂
@josepedraza6686
@josepedraza6686 3 роки тому
Thanks for explain and share you knowledge! I tried setup IDF with platformio without success.
@YuriR
@YuriR 2 роки тому
Thank you for the comment and for liking the video!
@mohamedsiddik0
@mohamedsiddik0 5 місяців тому
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.
@ratibory4239
@ratibory4239 3 роки тому
Bro! Thanks so much!
@YuriR
@YuriR 2 роки тому
No problem, thanks for the comment!
@thomasseidel4647
@thomasseidel4647 Місяць тому
This is very Help full and cool
@andyseeker7492
@andyseeker7492 3 роки тому
Hi, very informative video! I have a short question about the error shown at 7:41, on my Win7 machine I also have these lines, saying "sys eent.h" file missing, I would like to ask if this matters? Because later I would develop with the RTOS package.
@YuriR
@YuriR 2 роки тому
Thanks for the comment! It shouldn't matter. This error means that VS Code is not finding those files, but it doesn't mean that the compiler doesn't know where they are. So you should be ok. RTOS videos coming in the future :)
@ThePatrol101
@ThePatrol101 2 роки тому
@@YuriR But isn't there some way to add it ? It is annoying to get this error. Greetings
@YuriR
@YuriR 2 роки тому
Hi @ThePatrol101 yes, you can add this line to your c_cpp_properties.json in the "includePath" section: "C:/esp/.espressif/tools/xtensa-esp32-elf/**" Adjust the path to your case (Just basically locate your xtensa-esp32-elf folder and add it there). :)
@TheJay6621
@TheJay6621 2 роки тому
Super Handy... Thanks a ton Brother..
@YuriR
@YuriR Рік тому
No problem 👍:)
@s.sivaneshwaran9479
@s.sivaneshwaran9479 Рік тому
I like this tutorial. you explain more in this video.
@YuriR
@YuriR Рік тому
Glad you liked it!
@mohamedyassinegarali8849
@mohamedyassinegarali8849 Місяць тому
i enjoy it 🎉❤
@MatteoCordray
@MatteoCordray 3 роки тому
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
@YuriR 2 роки тому
Thanks for sharing your solution!
@ahmadal-tarabeen9253
@ahmadal-tarabeen9253 Рік тому
Great video man! I still have the problem at min 6:55 but after the fix I still have one line under the "driver/gpio.h" Please help me with it
@marcelverhoeven3514
@marcelverhoeven3514 10 місяців тому
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?
@mikaelhoseth1144
@mikaelhoseth1144 2 роки тому
Very nice. I have a question to you. I have been working with Arduino IDE for about 11 Years, also tried platformIO. I have now fallen a bit in love with ESP-chips for greater tasks, and i read that using arduino IDE aint the way to go for stability. How is the library support using IDF and VScode? can i include same libraries as the arduino IDE? How is the difference in coding overall?
@YuriR
@YuriR 2 роки тому
Hi Mikael, thank you for the comment and great question. ESP chips are great indeed! You can do a lot of cool things with them. You are absolutely correct. Arduino IDE is great for quick and simple applications. But once you start to develop more complex and advanced code, it becomes very difficult to manage and understand what is exactly happening behind the scenes inside the microcontroller. IDF on the other hand, let's you do things with a microcontroller that you can't even dream of with the Arduino IDE. Think professional applications and advanced electronic products. IDF is a bit more difficult to program and mostly used by professional embedded programmers, as you need to learn things like C/C++, memory management, task concurrency and other things. They are all learnable, and I will cover a lot here in the channel :) Regarding the libraries, unfortunately they are not directly compatible, but you can port them to IDF, which also forces you to understand how a particular library works in your program and gives you more control over the code's stability. I hope that clarifies a bit :)
@stevengreenberg7634
@stevengreenberg7634 Рік тому
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.
@ongsiauhwa6466
@ongsiauhwa6466 3 роки тому
hi, nice video ! By the way, any plan to explain debugging (in Vscode) ? and also will you do Eclipse ide as well? Thank you
@thanks600
@thanks600 3 роки тому
+1 this one ☝️
@YuriR
@YuriR 2 роки тому
Thank you for the comment! Keep in tune for the new video this week! :)
@nyquist7975
@nyquist7975 3 роки тому
Great! big thanks man
@YuriR
@YuriR 2 роки тому
No problem, thank you!
@SpottedEagleOwls
@SpottedEagleOwls 3 роки тому
You are a genius
@YuriR
@YuriR 2 роки тому
Thank you!😅 More videos coming soon!
@olcay002
@olcay002 3 роки тому
Thank you, wonderfull video. İ want to ask a question, if you help me i am very happy. i want to use arduino library with vsc as a component, but i cant do that.
@Dawleb
@Dawleb 3 роки тому
Use Platformio plugin fo VSC :)
@YuriR
@YuriR 2 роки тому
You could manually port the specific Arduino libraries that you want to use for your project, that may not be a simple job thought. I might make a video about this in the future. Another option would use PlatformIO as suggested by Dawleb.
@user-dg3ut2mc6i
@user-dg3ut2mc6i 3 роки тому
Супер! Спасибо. Слушать можно на любом языке. Просто включаешь субтитры и переводишь на русский.
@YuriR
@YuriR 2 роки тому
Thanks for the comment! Great to know!
@WaldoMantilla
@WaldoMantilla 3 роки тому
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
@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!
@oldazcat2503
@oldazcat2503 2 роки тому
Yuri, this is an awesome tutorial! Could you possibly do a similar version for linux as well as the esp-idf extension?
@YuriR
@YuriR Рік тому
Hi Oldazcat2, thank you so much! Will possibly do it in the future!
@j.r.1649
@j.r.1649 3 роки тому
Hi Yuri, I wonder why you don't use the platformIO-Extension of VSCode instead? I have made great experience with it and I actually don't see the advantages of ESP-IDF..
@YuriR
@YuriR 2 роки тому
Hi J.R., Platform IO is a great tool! I personally prefer having maximum control over the code and the project's environment, so I understand everything that's happening behind the scenes. And yes, I think Platform IO is a good alternative.
@Bianchi77
@Bianchi77 3 роки тому
Cool video, thanks :)
@YuriR
@YuriR 2 роки тому
Thank you! :)
@rajbirsingh4879
@rajbirsingh4879 2 роки тому
At "04.50" the two commands "terminal.integrated.shell.windows" and "terminal.integrated.shellArgs.windows"are now deprecated. What is the solution now?
@butsukete1806
@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
@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
@YuriR 2 роки тому
Hi Rajbir, sorry for the delay. I made a quick video with the fix, you can check it here: ukposts.info/have/v-deo/hmlkhqyRsWyVppc.html
@jairofuentes8316
@jairofuentes8316 3 роки тому
Please do a series!
@YuriR
@YuriR 2 роки тому
Coming soon! :)
@gionibegood6950
@gionibegood6950 3 роки тому
hey Yuri, when is the next movie? I am interested in compiler optimisation for esp32
@YuriR
@YuriR 2 роки тому
Thanks for the comment, the next video is coming in a few days :) I'll consider covering compiler optimization! Thanks for the suggestion.
@IamXoUoX
@IamXoUoX 3 роки тому
Very informative thanks! Just one question why not use ESP_IDF VS code extension? Is there any difference?
@Rita-xj4ot
@Rita-xj4ot 2 роки тому
esp-idf extension is the hardest extension i ever installed.
@YuriR
@YuriR 2 роки тому
Thanks for the comment. The ESP IDF Extension is great tool as well, it's up to you to choose. Personally, I prefer doing everything myself, as I have more control over everything that's happening behind the scenes.
@dehCremus
@dehCremus 3 роки тому
Thanks for the video! However, my VS code terminal won't recognize the python venv of esp-idf. I added its path, but idf.py still uses the regular python interpreter. Also when I changed the blink.code-workspace settings. Do you know the solution?
@3nt3_
@3nt3_ 2 роки тому
source venv/bin/activate
@YuriR
@YuriR 2 роки тому
Thanks for the comment. I've added a link with a fix for an issue inside the latest VS Code versions. You could try following that, and check if VS Code has permissions to load the environment variables (it shows a popup asking for permissions and you have to allow it). I hope it helps!
@akparanthama2146
@akparanthama2146 8 місяців тому
For me it doesnt show "terminal.integrated.shell.windows". How to fix?
@andrikjustme2871
@andrikjustme2871 10 місяців тому
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.
@maikovisky
@maikovisky 3 роки тому
Parabéns meu galo. Legal a ideia. Pena que foi um pouco tarde para mim, já tinha feito isso.
@YuriR
@YuriR 2 роки тому
Thanks Maiko!
@jmporter34
@jmporter34 2 роки тому
Hi Yuri, thanks for the great video! You explain everything very clearly. I just downloaded and started duplicating your instructions in the latest version of VS Code (1.56.2). When I added "terminal.integrated.shell.windows": "cmd.exe" in the workspace, it popped up: "This is deprecated, the new recommended way to configure your default shell is by creating a terminal profile in `#terminal.integrated.profiles.osx#` and setting its profile name as the default in `#terminal.integrated.defaultProfile.osx#`. This will currently take priority over the new profiles settings but that will change in the future.". I'm not sure what that means exactly. Could you offer a suggestion please ?
@jmporter34
@jmporter34 2 роки тому
I figured it out with some help from an answer by user arielhad on stackoverflow.com. Again, this seems to only be necessary for VS Code 1.56.2 and up. Instead of adding the "terminal.integrated..." settings in the workspace as described in the video, do the following: Go to your settings.json (File > Preferences > Settings (or press Ctrl+,) then click the leftmost icon in the top right corner, "Open Settings (JSON)"), add a comma to the end of the last line of settings there, and add this: "terminal.integrated.defaultProfile.windows": "Command Prompt", "terminal.integrated.profiles.windows": { "Command Prompt": { "path": [ "cmd.exe" ], "args": [ "/k", "c:/esp/esp-idf/export.bat" ] }
@jmporter34
@jmporter34 2 роки тому
And one last thing, the UKposts comment editor added a bunch of line feeds where they didn't belong. The "args" line doesn't need the blank lines that are directly above and below it in the snippet above.
@artemka_d
@artemka_d 2 роки тому
thank you!
@YuriR
@YuriR 2 роки тому
Thanks for the comment and for taking the time to write your solution here. Indeed VS Code had an update and broke the way we configure the terminal. I have just added a video link in the description with this fix! 👍
@jdscott20101
@jdscott20101 10 місяців тому
none of my include statements are working properly. nothing was covered in the video about this. not sure if i did something wrong
@yahmk3978
@yahmk3978 3 роки тому
Thank you!
@YuriR
@YuriR 2 роки тому
No worries, thank you!
@wolverene1234567890
@wolverene1234567890 7 місяців тому
Hi my antivirus flags ESP_IDF as a trojan
@vbdharm
@vbdharm Рік тому
Very Good Videos.. Keep it up..
@wogalwogal
@wogalwogal 3 роки тому
Great Video ty
@YuriR
@YuriR 2 роки тому
Thank you!
@fischkopp8865
@fischkopp8865 2 роки тому
Thanks for the great video Yuri! I have a question: I have added the "includePath" to my espressif installation folder. Although I can see the libraries in this folder, Visual Code is missing the "Add to "includePath"":C:/..." :-( Does someone has a hint why it is missing?
@YuriR
@YuriR 2 роки тому
Hi Fisch, if you added the includePath there, and some red squiggles are still present, you can try the following: Add/Modify the two lines below in your "c_cpp_properties.json" file inside the .vscode folder, under the "configurations" section: First Locate the file xtensa-esp32-elf-gcc.exe (for windows) or xtensa-esp32-elf-gcc (for linux/mac) then substitute the path in the compilerPath parameter below, I'll type how it looks in my case: "compilerPath": "C:/espidf/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/binxtensa-esp32-elf-gcc.exe", "compileCommands": "${workspaceFolder}/build/compile_commands.json"
@fischkopp8865
@fischkopp8865 2 роки тому
@@YuriR Hi Yuri, thank you for your quick response. And short answer: Your answer did the job! Thanks!!!! Long answer: I found out today that the libraries actually were correctly included and I can open them quickly by clicking on them + ctrl. Seems like I did no had to click on "Add to "includePath..."". Nevertheless they were still have a red underline because dependencies are missing for those libraries. For the blink example those dependencies are stdio.h / stddef.h / stdint.h. Those are all header files in the C standard library. However adding the two lines as you suggested did the job! IntelliSense is also working correctly now!
ESP32 - How to create your First ESP IDF project (From Scratch)
13:11
ESP32 - DEBUGGING your ESP-IDF code using JTAG [VS CODE]
19:53
ЗРЯ Я 24 ЧАСА СТОЯЛ НА ГВОЗДЯХ! #нонале
00:35
Челсі VS Евертон - Огляд матчу
07:41
Setanta Sports Premier League
Переглядів 204 тис.
Escape From Spike With Herobrine and Entity
00:27
Garri Creative
Переглядів 10 млн
Mac & Cheese Donut @patrickzeinali @ChefRush
00:53
albert_cancook
Переглядів 127 млн
Installation and Use of the Visual Studio Code ESP-IDF Extension
11:40
Getting Started with PlatformIO
51:54
DroneBot Workshop
Переглядів 593 тис.
ESP-IDF | Введение
45:38
Crazy Geeks
Переглядів 22 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 494 тис.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Tomasz Tarnowski
Переглядів 289 тис.
Bare metal GPIO driver for ESP32 | Toggling an LED
12:43
The EV Engineer
Переглядів 3,9 тис.
Getting started with ESP-IDF programming using VS Code
14:50
Embedotronics Technologies
Переглядів 33 тис.
Windows или Linux: что выбрать?
0:57
CompShop Shorts
Переглядів 900 тис.
Very Big Sound Mobile
0:47
Tech Official
Переглядів 884 тис.
iPhone 19?
0:16
ARGEN
Переглядів 2,9 млн
iPhone 19?
0:16
ARGEN
Переглядів 2,9 млн