background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Программирование МК STM32. УРОК 1. Установка Keil μVision"

input logo icon
"videoThumbnail Программирование МК STM32. УРОК 1. Установка Keil μVision
Table of contents
|

Table of contents

0:00
Введение
1:01
Отладочная плата
4:20
Скачиваем Keil
9:15
Скачиваем библиотеку SPL
10:37
Установка IDE
14:53
Создадим проект
17:03
Добавим в проект необходимые файлы из библиотеки
25:39
Настроим кодовую страницу
27:12
Подключим плату
34:45
Настройка ножек порта
41:32
Испытаем код на практике
Video tags
|

Video tags

STM32
Микроконтроллеры STM32
STM32F4
МК STM32
Программирование МК
Программирование STM32
Программирование СИ
Программирование микроконтроллеров
Программирование
Keil μVision
STM32F407
STM32F407VG
STM32F4DISCOVERY
STM32F4DISVOVERY
Keil
Установка Keil
Установка Keil μVision
Настройка Keil μVision
Настройка Keil
Keil μVision STM32F4
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:08
Hello everyone, dear friends, today we
00:00:11
will start with you trying
00:00:15
to program for
00:00:20
stm32 microcontrollers, but I
00:00:26
have two of these microcontrollers from this series, or rather
00:00:30
not microcontrollers, 2 debugging boards
00:00:34
stm32 f4 discovery and stm32 f3
00:00:39
discovery, but we will probably still
00:00:43
try to write for f4, but just
00:00:48
the controller there it’s worth writing f 407, we
00:00:53
’ll write in Kelly, or rather in the Kane environment in the
00:00:58
C language,
00:01:00
let’s first see what
00:01:05
this controller is like, like
00:01:10
this, or
00:01:11
rather, it’s not a controller, a controller, here’s
00:01:14
how many ports it has, but apparently this is the
00:01:18
maximum, it’s not specifically for 407
00:01:21
model, the principle is the same, there are still
00:01:24
a lot of ports, which then means that
00:01:30
this board also has a programmer, that
00:01:33
is, we do
00:01:35
n’t need to purchase a programmer separately for this board, that
00:01:38
is, it is built into it, and there are
00:01:40
two
00:01:41
switches that can be
00:01:44
used for external
00:01:46
programming, but we will mainly
00:01:49
use it, of course, and for
00:01:51
internal purposes, well, here are four more
00:01:54
test LEDs connected to port
00:01:58
twelfth
00:01:59
on pin 12 3, most likely to port d on
00:02:03
pin 1213 1415,
00:02:07
but with which we
00:02:10
will first try to write something,
00:02:14
then there are here is
00:02:16
also a description of this microcontroller, all
00:02:19
this can be easily
00:02:22
downloaded from this website, there is a lot of all kinds of
00:02:24
documentation there, so if you wish, all this
00:02:27
is there in general, what it is is
00:02:28
written here, that is, that
00:02:32
its frequency is up to 160 8 megahertz, which is a
00:02:38
lot I giving lessons for vr
00:02:43
microcontrollers, it is
00:02:45
never possible to achieve such a frequency, maximum 20,
00:02:49
well, a bunch of other things, that is, flash
00:02:54
memory up to one megabyte, then
00:03:00
various interfaces, for example, 1
00:03:03
bus oh party, there are three copies here 4
00:03:08
of the variety, then here is
00:03:14
the interface for the camera, the interface for the
00:03:17
TFT display and a lot of things,
00:03:21
you can also look at it all on the website and
00:03:23
we will also need a book like this
00:03:27
reference manual, which specifically
00:03:31
describes the purpose of each output of
00:03:35
each device and how to
00:03:38
use it, what they know how to
00:03:42
turn on what, for example, if we open it
00:03:45
here here is the general input and output housing,
00:03:49
that is, these are our general-purpose ports,
00:03:54
and for example, here we will open their
00:03:58
registers, and here it is clearly described which
00:04:02
register is
00:04:05
responsible for what, and also the state, for
00:04:10
example, of each of each of the
00:04:14
register cells, well, to this we'll be back,
00:04:18
of course, let's visit the site after all,
00:04:21
we need a programming environment
00:04:23
without it, we can't program it in any way, you
00:04:27
can download it on the Kayla website and you
00:04:32
can also get a link from the original
00:04:35
site and stack and stack now the site has
00:04:38
changed,
00:04:39
of course I was used to the old
00:04:43
interface, well what can we do, well, in some
00:04:48
roundabout ways,
00:04:50
you can still go to the previous ones, for example, the library and shame of
00:04:53
feathers, which we will also need, we wo
00:04:56
n’t be able to download from here, but maybe
00:04:59
we can, but I couldn’t, I did
00:05:02
n’t find any links here searching for it is in
00:05:04
no way possible now they switch to the hall interface,
00:05:07
so from then the translation is now
00:05:10
practically no longer distributed, but
00:05:15
nevertheless we will touch on it anyway, it’s more
00:05:19
convenient than a regular cmc from so good, a
00:05:23
lot of things have already been said, of course, well,
00:05:26
let’s do the product microcontroller
00:05:32
then our f4
00:05:39
is described here, but the first 400
00:05:41
models begin, well, ours on the third page of the
00:05:44
st company has
00:05:49
a lot of microcontrollers on the third page, so this is
00:05:55
what we have,
00:05:56
open it here, we can
00:06:00
see specifically all its
00:06:03
characteristics, here is a bunch of
00:06:09
all sorts of documentation is here and somewhere
00:06:14
closer to the bottom there are
00:06:18
links to various libraries, here are the
00:06:22
gold programming environments and
00:06:25
so on, a lot of different things,
00:06:32
well, some also download the
00:06:36
st-link utility for some reason, I don’t know, I do
00:06:41
without it, I program
00:06:44
directly from the Kane Driver environment it’s
00:06:49
already practically built into the body, but it’s not like the
00:06:53
system is just in the folder where it’s located,
00:06:55
I’ll show you later here we have a kane here
00:06:59
from here we’re downloading it now, of
00:07:04
course we most likely won’t have a
00:07:08
link
00:07:09
dunlop but there will be a link gol that site that
00:07:14
is go to the site kiev dot com here
00:07:20
here is such a site well we
00:07:26
need the
00:07:28
programming environment directly here ndk
00:07:31
vertices 5 do not and install
00:07:51
but here something is shown on it
00:08:08
here you need to fill in all these
00:08:10
fields, otherwise you
00:08:13
will not be able to download
00:08:15
but you can, accordingly, download all this
00:08:20
from various other third-party
00:08:25
resources, and there are also products
00:08:29
without restrictions, so to speak, but I don’t
00:08:31
do this, I don’t want to violate any
00:08:34
rights, that is, it’s better to download officially
00:08:37
kay bosom, I’ll tell you, it’s not completely
00:08:41
free, but up to some Since then it’s
00:08:44
free, that is, in my opinion, there’s
00:08:45
only one limitation. In general,
00:08:49
we can’t flash a code of
00:08:52
more than 32 kilobytes into the controller, but I think that’s
00:08:54
quite enough. Well, in short, here we
00:08:57
fill out the whole thing and download it
00:09:02
accordingly, then click submit and there will be
00:09:06
a link, well, I have already been downloaded,
00:09:11
it’s here so I won’t download it,
00:09:13
in general, I showed you now where to
00:09:16
download this, this library,
00:09:18
this library needs to be downloaded, here’s the
00:09:23
best way to
00:09:25
enter the link manually using the
00:09:32
web stack, and you’ll see, I think the
00:09:38
screen resolution is normal, I think it will be obviously
00:09:40
n then catalog ace p.f.
00:09:59
257 900 they seem to be like this and we
00:10:10
get to the site and the stack of the old type
00:10:14
and here at the end we have
00:10:20
a link to this library,
00:10:23
click dunlop and the download has started, it weighs
00:10:29
111 megabytes, well, accordingly, I
00:10:33
’ll cancel the download since that’s all I have uploaded
00:10:36
Well, let's since we have everything uploaded,
00:10:40
install the Kale version at the moment
00:10:47
518 and
00:10:50
it installs very easily, you do
00:10:56
n't need to do anything here, but in my opinion,
00:10:58
as far as I remember, I will need it,
00:11:05
I may already have it installed, only
00:11:09
this is a different operating system, I'm like
00:11:12
this I’ll fix the daddy so that I can still
00:11:15
show you, here we are
00:11:17
filling out everything again, well, let me remember that I
00:11:21
filled out the first name on the contrary, the last
00:11:29
name,
00:11:34
here any company can be written, it doesn’t
00:11:38
matter, well, it’s best to still have your address and
00:11:42
then you will receive news
00:11:49
Well, or rather, it’s working and, accordingly,
00:11:58
Kale began to install,
00:12:11
we agree with the drivers, although perhaps
00:12:14
we will have these drivers and unnecessary you
00:12:18
link
00:12:19
this is another programmer, but perhaps it won’t
00:12:22
work without them, but I think it won’t
00:12:25
hurt us, they click finish, this is where
00:12:36
we get to, well, for now
00:12:39
we installer it we can launch it and then just like this,
00:12:44
even if we have the key installed and let’s
00:12:50
launch the key, here’s our constant measure,
00:12:58
click, but since not all controllers are here yet,
00:13:04
click here check for the blades,
00:13:10
wait here, the progress indicator
00:13:14
shows us everything, having updated, we now
00:13:21
see that our tree has grown,
00:13:25
other branches have appeared, we need st
00:13:29
microelectronics
00:13:31
here f4 407 v.g.
00:13:36
and here you are gtx and click here
00:13:40
from install the installation process is
00:13:43
long so I’ll skip it,
00:13:51
well, as we see, the indicator is
00:13:56
almost at the end of our
00:14:00
download, we’ll
00:14:04
need one more package later, I’ll tell you which
00:14:07
installation went
00:14:23
but the installation is completed so now we
00:14:29
still need it, it installed itself, this is the
00:14:35
kit we needed, so now
00:14:38
when this kit is installed, this kit
00:14:42
is installed, and this is
00:14:44
all we need, these are the two
00:14:47
kits, we are all leaving for now and
00:14:53
creating a new project,
00:14:59
we can create it anywhere, there is a
00:15:04
place for
00:15:05
you, your own here, but here the folder is
00:15:10
not automatically created by itself, as
00:15:13
studio stuck
00:15:14
here it needs to be created; the folder can be
00:15:19
any name,
00:15:21
but I think it is desirable, of course, for mines to
00:15:25
be in English. Now enter the
00:15:28
file name and click save, select
00:15:37
the microcontroller that will be
00:15:42
used in the project, this is the
00:15:45
same microcontroller we click ok here
00:15:51
we need to select the following points
00:15:57
but at any time we can change it
00:16:00
will be here somewhere or here or
00:16:04
here there
00:16:07
will be a button at any time we will
00:16:10
come here and aim from the bark as well as
00:16:16
the driver no enemy device startup and
00:16:23
here are all ours maybe we now have
00:16:28
groups, well, it’s not very good, but
00:16:34
I like this name, let’s rename it and
00:16:36
the jeweler, you
00:16:43
can also create another folder here in
00:16:48
which we will put the
00:16:50
user libraries, we will
00:16:53
put our main files in this group pelle pelle
00:17:00
slurped the Jew and a similar folder
00:17:05
we should also create in the project folder
00:17:12
just like these subgroups, we
00:17:16
have to create the same ones
00:17:18
and there aren’t necessarily folders there, but I
00:17:22
think it’s more convenient,
00:17:23
we can’t go wrong, then in the user folder we
00:17:39
’ll create a new file,
00:17:47
let it be empty, return it
00:17:57
to the project and connect it here folder user
00:18:06
everyone connected file here it is our
00:18:13
file then we need to unpack the library and shame
00:18:19
before which we downloaded,
00:18:22
here it is
00:18:24
already unpacked I’m here, well, let’s
00:18:28
open the project here,
00:18:30
well, I just use total commander,
00:18:32
what do you use, I don’t know, but it
00:18:36
doesn’t matter, that is now
00:18:43
we will copy from here the standard libraries with you,
00:18:49
these are
00:18:56
well, and it is advisable to select all this like this
00:19:01
and in the properties to remove read-only
00:19:05
you will most likely have
00:19:07
Smith already, and then that’s not
00:19:14
all, now we will need more
00:19:24
where can we get a file like this, well, yes,
00:19:34
when we unpack the library here
00:19:38
libraries, besides this is there, there is
00:19:40
also cmc from here, which means we
00:19:45
take it, go to the device further there, stst m, and
00:19:52
so on here in the cloud, and
00:19:58
we will need such a file, well, let's Is it possible to put his user
00:20:09
on Perrier in general now,
00:20:20
but it is also necessary to remove the
00:20:24
read-only attribute from him; I have already
00:20:27
removed it; you will most likely be
00:20:33
banned for almost all the files there, that is, up to the
00:20:36
read-only checkbox, all this is
00:20:38
required remove
00:20:40
well, now
00:20:46
you and I are adding a file to the peer group and these are
00:20:58
all in the src folder,
00:21:05
only one file here we don’t need
00:21:10
this iPhone se we don’t have such support
00:21:15
there is no such device
00:21:18
now we also need to
00:21:30
insert the file here besides that we are with you
00:21:40
copied this one because the file is all
00:21:50
now further we will need to
00:21:54
register the paths to our
00:22:00
folders for all otherwise the project will not be able to
00:22:04
see the files here on
00:22:06
target one we right-click and
00:22:09
select the menu in general for further the
00:22:14
target one here we go all C plus
00:22:18
plus
00:22:19
click these three dots opposite the
00:22:22
dish patch and accordingly add the
00:22:25
path
00:22:27
user then pelle
00:22:37
and separately these are all the folders in it, this is what
00:22:44
we should
00:22:49
get somewhere, but you can name it there,
00:22:51
I did it all in my own way, that is, it’s not so
00:22:55
important here we press ok now we still need
00:23:08
some code first and main
00:23:13
this is any predatory file this function
00:23:19
has
00:23:22
this is the main function in which
00:23:26
practically
00:23:28
the program begins
00:23:30
and in it we also need to insert
00:23:38
looping conditions for us, that is, an infinite
00:23:44
loop while
00:23:46
one like it is always known that there is only
00:23:49
one, but this is all exactly the same as according to verification,
00:23:53
here we also need
00:23:58
to connect the file with you, like this, with the right
00:24:05
button, we live in the cloud file, this is
00:24:09
exactly the file that you
00:24:13
and I put in,
00:24:14
well, actually this another file is connected
00:24:17
if we hadn’t put it in, it’s very
00:24:20
small, let’s check if
00:24:25
it’s the right file, here we click on the open document,
00:24:30
and we have it so big, if
00:24:34
the path hadn’t been specified and the file hadn’t been put in, then
00:24:36
the file
00:24:38
that was offered to us would have been completely small If only Kane wouldn’t
00:24:41
go, we’ll look for our controller here, we’ll need to
00:24:46
uncomment this whole
00:24:48
thing,
00:24:53
then we’ll find where our
00:25:00
std translation library is connected, here it is,
00:25:09
this design should have been commented on once,
00:25:15
as well as the frequency, here we
00:25:21
’ll make 8 million places 25
00:25:26
since we have the same clock
00:25:31
generator, here all this is written for
00:25:34
different types of controllers,
00:25:36
but we have it anyway, and we still have to
00:25:43
add a good opportunity to write
00:25:47
comments in Russian,
00:25:50
or for anyone who is comfortable, here we
00:25:53
select Russian windows-1251 functions
00:25:59
Horace vodka that's why we go
00:26:01
here using the key according to the settings and in two or three
00:26:05
we select like this but we can also with
00:26:11
you but you can leave any font
00:26:16
and I'd better still
00:26:21
go here, I'll go here and click on this one and
00:26:26
change it here the larger
00:26:30
font is not because your eyesight is rather weak,
00:26:33
it’s so that
00:26:34
what I’m going to show you can see more clearly,
00:26:38
because a lot of people complain that if
00:26:41
the font is small, sometimes it’s impossible in the video
00:26:44
about reading the letters, but this one itself
00:26:50
wasn’t even there chickens have been delivered to smoking,
00:26:53
and accordingly, you can see that
00:26:55
my font has increased, so you can
00:27:03
try to collect it, it will be contributed either by
00:27:10
this or by this one, it doesn’t matter, but
00:27:12
before collecting it, I’ll now turn on my
00:27:15
video camera, firstly, I’ll show you the scarf,
00:27:17
and I’ll also give you a link to my video
00:27:22
where there was an unpacking of this board, I
00:27:26
ordered it on Aliexpress, in general, the
00:27:28
seller did everything perfectly and even the fact
00:27:34
that it was returned to him, he
00:27:36
sent it to me again, it was renewed at the buyer’s expense,
00:27:38
everything is explained there, it’s even explained how to
00:27:42
install the driver, well, let me
00:27:44
tell you again here we connect this
00:27:50
tab and thus, accordingly,
00:27:57
we see that here the LED is
00:28:00
blinking,
00:28:02
this means that it is not fully
00:28:06
connected to the computer,
00:28:09
let's go to the computer, the driver is located
00:28:13
here in the kale folder arm st-link
00:28:19
usb driver
00:28:21
but who has a 64-bit system, then
00:28:24
one of the two has this driver, then we
00:28:25
start installing this oil from 4, we agree
00:28:36
again, we agree to as you and I
00:28:41
see, there are two green daws, the driver
00:28:45
is installed,
00:28:47
and now let’s move on to the board,
00:28:51
accordingly, we see that
00:28:54
this LED is now glows with a constant
00:28:58
light, that is, our device
00:29:01
has been found, well, let's now go
00:29:04
directly to Kiev, let's launch our
00:29:08
project again, let's go here to the
00:29:15
bend settings instead of this, this is the
00:29:20
device offered to the keels, we
00:29:23
select our is the link debugger, click
00:29:27
ok, let's now try to assemble the
00:29:32
project with you, respectively, the
00:29:39
first since the project has been going on for a long time, we
00:29:43
plus we see that you and I have 40
00:29:46
errors here, well, there’s a cross here,
00:29:52
which means most likely something is wrong, but
00:29:55
sometimes Cale puts crosses
00:29:57
when everything is like that, I thought this was the same
00:30:01
case, but this is not the same, that is we see
00:30:03
that we didn’t connect another file when
00:30:07
we put this file here from the library,
00:30:18
this one should have been put in another file,
00:30:22
well, you’re standing in the library, but
00:30:26
not from the library folder,
00:30:29
but from a slightly different folder, now I
00:30:33
’ll show you
00:30:38
this libraries there is lived
00:30:43
here from any example, even the
00:30:47
very first one we will open, we need a
00:30:49
file similar to this one
00:30:51
but with this suffix konce but
00:30:58
accordingly I don’t know, preferably
00:31:00
vernon should also not be readable
00:31:03
so look at yours and of course we’ll
00:31:09
connect it the project in ours,
00:31:29
this is how we see it is connected, let's
00:31:32
try to assemble it again, accordingly,
00:31:36
now the normal
00:31:39
assembly is normal, still errors, let's
00:31:49
see what errors we have,
00:31:56
and
00:32:00
now for some
00:32:02
reason I
00:32:05
turned off the recording and I had to
00:32:13
re-record the video from a certain place,
00:32:16
and here we are
00:32:19
I forgot to delete this file, so it must be
00:32:27
deleted, now we don’t have any
00:32:31
errors, not a warning,
00:32:34
if suddenly we forget to add
00:32:40
one more
00:32:41
line here, then we will have
00:32:44
a warning, now I’ll delete it,
00:32:48
and we see what is absolutely necessary
00:32:52
to have a free line this is what Kane really likes for
00:32:56
something Kayle
00:32:58
likes stock everything now let's try to
00:33:06
flash the controller
00:33:08
again we see that we have some kind of error
00:33:12
but this is all due to the fact that I most likely
00:33:19
re-recorded
00:33:20
the video
00:33:37
everything is fine
00:33:41
well in general this is no longer the case the error
00:33:44
turns out to be over it was just a kale
00:33:46
restart, but usually it’s not necessary, but for some
00:33:50
reason like this, this is not an error
00:33:54
for us, it’s just a key for us, it warns
00:33:57
that it is limited by the code
00:34:00
that we can flash
00:34:03
the microcontroller with and that the maximum
00:34:06
size is 32 kilobytes. Now
00:34:14
we have started debugging, but now we have nothing to look at,
00:34:18
we have practically no code and the
00:34:21
debug board controller does not
00:34:26
respond to our code in any way because
00:34:28
nothing happens here, we do nothing
00:34:32
almost 8 million times per second, well,
00:34:39
let nothing be done here, here
00:34:42
we are a little let's write with you firstly
00:34:45
we need to our port d which we
00:34:51
looked at according to the scheme to enable clocking
00:35:11
this is done like this
00:35:21
it was another lower one hear DPR and
00:35:42
I probably didn’t turn on the Russian language
00:36:01
Doroshin windows-1251
00:36:05
accordingly let’s increase the font size a little
00:36:23
here gp and o .d.
00:36:35
Well, let’s take a look at the
00:36:41
registers,
00:36:47
what
00:36:51
settings they have, how to use them,
00:37:01
how many books I have, here’s our
00:37:06
reference for Pavel and here are the registers,
00:37:17
but the very first register is motor, but it’s
00:37:20
clear that it’s fashionable and there was a register,
00:37:26
here we have it, that is This is the register that
00:37:29
is responsible for the state of the port,
00:37:31
we need an output, well, as we
00:37:36
looked at, you and I
00:37:37
will have yes and the legs of the legs are 1213
00:37:43
1415, well, let’s light one LED,
00:37:47
this one, which is 15,
00:37:53
respectively, the whole thing, we are now
00:37:57
selling water for equals 0 x, we
00:38:14
can, in principle, turn it on, so now,
00:38:21
how would we turn on
00:38:34
the eight,
00:38:35
we can do it correctly, this is 1000, this
00:38:40
eight, and then all the zeros will be 80
00:38:50
times two times two times two, that’s how much the
00:38:53
next register will be now,
00:39:05
but this register is responsible
00:39:09
for us pulling up the
00:39:10
resistance so that the collector does not hang in
00:39:14
the air,
00:39:15
but at one the collector will
00:39:18
hang in the air and at zero it
00:39:19
will not hang, let it not broadcast to the entire desk,
00:39:23
here is our etc. Let's
00:39:46
then sign
00:39:52
this one about speed p, it is responsible for the
00:39:58
speed of the port, but for us an hour the speed with
00:40:01
you is not critical here there are four speeds, let
00:40:06
's turn on this love spit, but this one is
00:40:20
not needed since we only have it for the entrance,
00:40:27
let's go further and also for the entrance
00:40:33
we check the state of the port when,
00:40:36
for example, the voltage is one at the input, we
00:40:38
get therefore only p
00:40:41
for read only,
00:40:42
but this one here is our register,
00:40:46
it is responsible for what voltage we are with,
00:40:49
that is, high or low, let's
00:40:51
set it on the legs, let's set it with
00:40:59
you have
00:41:02
high voltage for 20 legs, it
00:41:11
also turns out that 1000 we have an eight,
00:41:27
well, somewhere like this, let’s assemble the project, this is
00:41:34
how we see the project, now I’m going
00:41:37
much faster, we changed the main file and we
00:41:40
only have one main and it’s going to be flashed,
00:41:54
turn it on, just like we did We see that the LED is
00:42:00
not lit for some reason,
00:42:03
now we’ll check, well, what’s wrong here,
00:42:13
most likely not, but here
00:42:18
we have a decree, well, of course, we don’t have this one, we need to
00:42:27
turn it on, on the contrary, 01 needs to be set here,
00:42:31
we turned on the register for not even the
00:42:35
input we alternative functions have been turned on and we
00:42:38
need this one, here it won’t be an eight,
00:42:41
but here we’ll have a four, 0100, it looks like
00:42:56
we’ll put it together again, we’ll quickly
00:43:03
flash it, we’ll turn it on
00:43:10
anyway, nothing
00:43:13
lights up, it’s strange,
00:43:18
let’s try to turn all the legs on
00:43:21
to the output, it
00:43:40
seems like everything that's right, why
00:43:45
doesn't our code work? Right
00:44:01
now it seems to be working,
00:44:07
our green LED is lit,
00:44:13
as we can see, let's try
00:44:22
some other light up here,
00:44:29
let's make a four, that is, here we have the
00:44:33
next
00:44:35
one of them, we have a four
00:44:44
it will be 0100,
00:44:45
this one here 14, you can, in principle,
00:44:51
look at the diagram what kind of LEDs we have and where they are,
00:44:58
here we have 15
00:45:04
green, in general, it should say something,
00:45:07
we still have the wrong one that should light up when
00:45:09
according to D-12,
00:45:10
but now it’s on like- it’s strange that
00:45:14
all this works, whatever, let’s press them here
00:45:21
and write some of them, but here’s the thing
00:45:28
nolix, we have a decimal number here,
00:45:33
so anything can happen on the paws,
00:45:37
let’s still return it, let’s try the
00:45:39
original code with you here, just like
00:45:44
we first did
00:45:45
the four, probably so 4 to four
00:45:52
we need four from here
00:45:58
0100 and here there will already be
00:46:03
more zeros then don’t forget to put
00:46:09
this this prefix means that
00:46:13
our number is hexadecimal that’s why we
00:46:18
don’t know what was going on on the desks but the
00:46:27
green light is still on, most likely I I did
00:46:30
n’t collect the code, so
00:46:37
we need to light up the blue LED with you,
00:46:40
now finally everything is
00:46:44
correct, we have lit exactly the
00:46:47
LED that we need, which is
00:46:49
located on the 15th paw of the desk D,
00:46:55
well, we managed to cope with grief in half,
00:46:58
well, I think that’s it Today we
00:47:03
can finish our lessons, in general,
00:47:06
congratulations on your first victory in
00:47:09
programming stm32 microcontrollers
00:47:13
in the form of the 407 controller
00:47:18
on the discovery board,
00:47:21
see also my lessons on
00:47:24
vr programming
00:47:28
also see, I also have something
00:47:32
interesting on the channel, subscribe
00:47:36
to the channel, go to I’ll give you
00:47:39
a link to the VKontakte group, let’s discuss it, if there’s something so
00:47:44
incomprehensible to anyone, like it for everyone

Description:

Программирование на СИ в среде Keil μVision. Начинаем работать с микроконтроллером STM32F407VG на плате STM32F4DISCOVERY. Знакомимся с данной платой и микроконтроллером. Устанавливаем среду программирования Keil 5 μVision, а также некоторые дополнительные библиотеки. Устанавливаем драйвер платы. Создаем новый проект в Keil, подключаем библиотеки, и пишем простенький код по зажиганию светодиода а плате. В ходе написания исходного кода мы столкнемся с определенными трудностями, в основном связанными с невнимательностью и увидим, к каким последствиям это приводит. Купить отладочную плату STM32F4-DISCOVERY можно здесь http://ali.pub/178fif Навигация по видео: 00:00 Введение 01:01 Отладочная плата 04:20 Скачиваем Keil 09:15 Скачиваем библиотеку SPL 10:37 Установка IDE 14:53 Создадим проект 17:03 Добавим в проект необходимые файлы из библиотеки 25:39 Настроим кодовую страницу 27:12 Подключим плату 34:45 Настройка ножек порта 41:32 Испытаем код на практике Ссылка на видео по распаковке посылке с платой и с первым знакомстве с ней https://www.youtube.com/watch?v=OgHFTzka6pA Текстовая версия урока здесь https://narodstream.ru/stm-urok-1-ustanovka-keil-%CE%BCvision/ Группа в контакте http://vk.com/club116656325 Группа в Одноклассниках http://ok.ru/group/52987126153436 Группа в Facebook https://www.facebook.com/unsupportedbrowser Мой сайт "Программирование МК" https://narodstream.ru/ Форум https://narodstream.ru/forum Вы можете помочь проекту: ЮMoney https://yoomoney.ru/to/41001176473465 Webmoney Z341906933112 Карта Сбербанка (МИР) 2202201799288929 Можно в USDT 1) Сеть:TRC20 Адрес: TBBPFk5Widf1CYvF7Xk5ssKXeiPJHwtMgS 2) Сеть: BSC BNB Smart Chain (BEP20) (комиссия намного меньше) Адрес: 0x2e38754DF1e54649Bf0D5CD6fD6D8c96a9f22f17 3) Сеть: Huobi ECO Chain (HECO) (комиссия еще меньше) Адрес: 0x2e38754DF1e54649Bf0D5CD6fD6D8c96a9f22f17

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Программирование МК STM32. УРОК 1. Установка Keil μVision" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Программирование МК STM32. УРОК 1. Установка Keil μVision" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Программирование МК STM32. УРОК 1. Установка Keil μVision" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Программирование МК STM32. УРОК 1. Установка Keil μVision" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Программирование МК STM32. УРОК 1. Установка Keil μVision"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Программирование МК STM32. УРОК 1. Установка Keil μVision"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.