How to Setup ESP-IDF in Linux and Windows || ESP32 Getting Started
0 views
Jul 28, 2021
Purchase the Products shown in this video from :: https://controllerstech.store ________________________________________________________________________________________ ESP32-IDF Download :::: https://github.com/espressif/idf-eclipse-plugin/blob/master/README.md ESP32 Playlist :::: https://www.youtube.com/playlist?list=PLfIJKC1ud8ghS_i2Yky2actXWbQoqrscN introduction 0:00 Linux Setup 1:00 Windows Setup 16:13 ________________________________________________________________________________________ ******* SUPPORT US BY DONATING****** https://paypal.me/controllertech *******Join the Membership******* https://www.youtube.com/channel/UCkdqtSMnhYuMsJkyHOxiPZQ/join Join the Discord Server https://discord.gg/D32JE5wKyD
View Video Transcript
0:00
[Music]
0:09
hello everyone
0:11
welcome to controllers tech today in
0:14
this video
0:15
we will see how to set up the eclipse id
0:18
for esp32
0:20
in both linux and windows i know this is
0:23
out of the blue
0:24
but i was looking for some resources for
0:26
esp
0:27
and i couldn't find the ones for the
0:29
eclipse
0:30
so i have decided to make this video
0:32
about setting up esp
0:34
idf the first half of the video will
0:37
cover the setup in linux
0:39
and the second half will cover the
0:41
windows part
0:42
you can check the timing in the
0:44
description to navigate to the part you
0:46
need
0:48
i have esp32 room kit and here it looks
0:52
like this
0:53
so my setup will be related to this one
0:56
i think you can do the same for the
0:58
rover kit also
1:00
so let's start with the setup in linux
1:03
first
1:04
i am using linux mint which is debian
1:07
based
1:07
but the steps for other distributions
1:10
are provided as well
1:12
all right let's go to espressif.com
1:18
here go to support technical documents
1:25
check the getting started
1:30
here we have the getting started guides
1:32
for different boards
1:34
i have esp32 room kit
1:37
so i am choosing that this guide also
1:40
supports all these boards
1:42
so if you have either of these you can
1:45
follow the guide
1:46
click on step by step installation
1:52
let's open the linux steps in a new tab
1:59
first of all we need to install some
2:01
basic tools
2:03
and you can copy the commands based on
2:05
your linux base
2:13
we will let it install let's go back to
2:16
the installation steps
2:24
now go up and open the steps to
2:26
configure the eclipse plugin
2:35
now we need to install everything in
2:38
this list
2:43
let's start with java
2:54
choose the proper package according to
2:56
your distro
3:13
the next in the list is python and it's
3:16
mostly pre-installed in all the linux
3:18
distros
3:20
you can check it by typing python i have
3:23
python 3 installed
3:25
so python 3.
3:33
here is the version 3.8 point 10.
3:40
let's download the next in the list that
3:43
is the eclipse id
4:04
i am not going to use git so i am
4:06
skipping it
4:07
and skip the last one also we will do it
4:10
from the id
4:12
itself
4:18
let's start by installing the java
4:38
now extract the eclipse folder go to the
4:40
eclipse folder
4:42
and open the terminal here
4:55
here is the installation script and we
4:58
need to run it
5:11
choose the c c plus plus
5:17
choose the latest java that you have
5:19
installed just now
5:21
and click install
5:38
it will take some time as it downloads
5:41
few more things
5:45
all right it's done let's start the id
5:53
i am keeping this workspace for now
6:08
now go to help and click install new
6:10
software
6:14
click add
6:20
copy this name and address and paste it
6:23
in the respective positions
6:35
check the expressive idf
6:40
it will install all these
6:50
ok click next accept the license
6:55
and click finish you can check the
6:58
status at the bottom right
7:09
let's restart the id
7:15
next we need to install the idf
7:22
again go to help and download and
7:24
configure idf
7:32
choose the branch i am choosing master
7:35
as it's the most updated one you can
7:38
read about
7:39
branches by going to this link now we
7:42
need to choose a directory
7:44
where we want to install this
8:00
all right click finish and let it
8:03
download and install
8:07
it will take a lot of time
8:11
we can check the progress also
8:16
it will ask you to install the new tools
8:18
so click yes
8:20
now we need to provide the location of
8:22
whatever it is asking for
8:25
idf directory is correct to find the
8:28
location of git
8:30
we can just type which followed by git
8:36
let's give this location here if you
8:39
don't have git installed
8:41
just give some random location at that
8:43
place
8:47
i have python version 3.8 installed
9:02
click install tools and let it install
9:05
for some time
9:08
by the time let's check the pin out for
9:10
the esp32 room kit
9:23
actually it have a user led on the top
9:26
and i am looking for the gpio pin used
9:29
for that led
9:33
this will do as you can see it's gpio2
9:52
all right the installation is finished
9:54
now so let's create a project
10:03
choose expressive idf project
10:09
give some name to this project and click
10:16
next
10:24
we will run some example project for now
10:27
so check this box and choose the blink
10:30
project
10:45
all right here is our main file
10:48
this default theme doesn't look good so
10:51
let's change it first
10:55
go to eclipse marketplace search for the
10:59
theme
11:04
this one is good you can try other
11:07
themes too
11:08
i have used this one before so i am
11:11
choosing this
11:20
in the meantime let's build our project
11:26
once
11:28
during the first build it will create
11:30
the c cache
11:31
so it will take some time
11:39
build is complete and theme installation
11:42
is also finished
11:44
let's restart it
11:57
i am going with the light theme
12:02
this looks decent enough
12:09
the g p i o far l e d on board is 2.
12:21
the blink period is set to 1 second by
12:23
default
12:24
and i am changing it to 500 milliseconds
12:28
if you build it now it won't take much
12:30
time
12:31
as it's only going to update few cache
12:36
i have just connected the e s p to my
12:39
computer
12:40
and now if you take a look at the d
12:42
message here you can see the port it is
12:45
connected to
12:46
its t-t-y usb 0.
13:05
now we need to change the ownership of
13:07
the port
13:19
all right it's done
13:23
now we will add the target here
13:29
give some name for the target and choose
13:32
the parameters
13:46
actually this should have been the first
13:48
step
13:50
you need to do this before building the
13:52
project
13:57
i will just clean this project and build
13:59
it again
14:08
all right it's done time to flash it
14:21
and its building again for some reason
14:24
let's wait for it to flash
14:34
ok its done flashing
14:39
you can see the led blinking every 500
14:43
milliseconds now
14:50
i want to show one more thing here we
14:53
can view these log messages
14:58
to view them click on command shell
15:00
console
15:05
then choose serial port create a new
15:10
connection
15:26
and there you go we can see the messages
15:29
on the console itself
15:38
there is a better way to open a terminal
15:41
click on this terminal icon choose the
15:44
port
15:44
and click ok
15:50
and there you have the messages i added
15:53
this part later
15:54
so don't worry about continuity
16:00
so this is it for the linux part of this
16:02
video
16:04
i hope you will get it working leave
16:06
comment in case of any doubt
16:09
the rest of the video will cover the
16:11
setup in windows
16:14
now we will see how to set up express
16:16
idf in windows
16:18
and how to create our first project
16:23
all right let's go to espressif.com
16:33
here go to support technical documents
16:40
check the getting started here we have
16:43
the getting started guides for different
16:45
boards i have esp32 room kit
16:49
so i am choosing that
16:56
click on step by step installation
17:02
open the instructions for the windows
17:11
here they have mentioned that the
17:13
easiest way to setup is to download the
17:15
idf tools installer
17:18
let's go ahead and download it i am
17:21
going to go with the online installer
17:38
its going to install all these programs
17:44
it will perform some checks and if it
17:47
asks you to apply fixes
17:48
make sure you do apply them
17:59
select download idf and click next
18:06
i am choosing the master branch as it is
18:08
the one with the latest updates
18:20
we need eclipse so that's checked
18:26
i don't want the start menu shortcuts
18:29
for these things
18:36
all right everything seems fine so click
18:40
install
18:44
it will take some time for me it took
18:47
around 5 minutes for download plus
18:54
installation
18:59
so everything is finished now
19:09
let's run the eclipse id choose the
19:12
workspace location
19:14
and click launch workspace location is
19:17
where all your projects will be saved
19:26
now create a new express idf project
19:30
give some name to the project and click
19:33
next
19:34
we will create the project from the
19:36
examples so check this
19:38
box and select the blink project
19:43
here is our main file let's check the
19:46
pin out for the esp32 room kit
19:50
actually it have a user led on the top
19:53
and as you can see
19:54
it's g-p-i-o-2
19:59
so define the blink g-p-i-o as 2.
20:03
also this is the time period for the
20:05
blink
20:06
and i am setting it to 250 milliseconds
20:10
now before building the project we need
20:13
to add the target board
20:15
let's open the device manager to see the
20:17
communication
20:18
port
20:26
here you can see its com 6.
20:32
give some name to this target select the
20:35
port
20:35
and click finish
20:43
everything looks fine so build the
20:46
project
20:55
it will take some time for the first
20:57
build as it builds the c
21:00
cache
21:09
all right it's done and all our errors
21:11
are also gone
21:17
click run to flash it to the board
21:27
it's done and you can see the led
21:30
blinking
21:30
every 250 milliseconds
21:37
there is one more thing i want to show
21:42
here
21:45
if you want to view these logs all you
21:47
need to do is
21:48
open the terminal by clicking on this
21:50
icon
21:53
make sure the port is correct click ok
21:59
and here you can see the messages from
22:01
esp logs
22:04
they are printing every 250 milliseconds
22:07
as the loop is running so this is it for
22:10
this video i hope you understood the
22:13
process
22:14
i will think about continuing the esp
22:17
series
22:17
but for now i am not planning on it
22:20
let's leave that to the future
22:23
leave comments in case of any doubt keep
22:26
watching
22:27
and have a nice day ahead
22:48
you
#Operating Systems
#Programming
#Software