#0 Modern Embedded Systems Programming: Getting Started - YouTube

Channel: unknown

[0]
welcome to the embedded systems programming course
[3]
my name is Miro Samek and i'd like to teach you how to program embedded
[7]
microcontrollers in C
[11]
this course is structured as a series of short, focused, fast-paced hands-on
[16]
lessons
[17]
in this first lesson, we will get started by installing a free embedded development toolset
[21]
development toolset
[22]
and ordering a very inexpensive development board
[24]
so you can actually run your code on a real microcontroller
[28]
your own embedded board is certainly a lot of fun
[31]
but you can also follow along even without the board because I will show
[35]
you how to use an instruction set simulator
[40]
The C language that you are going to learn is a so-called high-level
[43]
programming language
[45]
but I will also frequently step down to the low level of machine code and
[49]
show you exactly what happens inside the embedded process
[53]
you will actually see how the processor executes your code, how it manipulates data
[58]
and how a computer can do things in the real world
[61]
such as
[62]
turn on an off the L_E_D_
[65]
this deeper understanding will allow you to use the C language more
[68]
efficiently and with greater confidence
[71]
you will gain understanding not just what
[73]
your program does but also how this C statements translate to machine
[77]
instructions and how fast the processor can execute them
[82]
the processor we are going to use in this course is called ARM Cortex-M4F
[88]
but what you'll learn will apply to the whole Cortex-M family starting
[92]
from Cortex-M0 through M0+, Cortex-M3 and M4
[99]
the Cortex-M processor family I've chosen for this course is the most
[102]
popular, modern, and energy-efficient family of processor cores you can find
[107]
in embedded microcontrollers today
[109]
and for many years to come
[111]
also familiarity with arm Cortex will look really good on your resume
[116]
so let's get started! The first thing you need is the embedded toolset
[122]
for this course I selected the professional toolset from IAR
[126]
systems called EWW ARM
[128]
which stands
[129]
for embedded workbench for ARM
[131]
the commercial version of this toolset is one of the most expensive on the market
[135]
but IAR also offers the free size-limited but not time-limited
[141]
evaluation version of the software, which I will show you how to download and
[145]
install in a minute
[147]
before we do this, though, I'd like to mention that I'm not associated with
[151]
IAR or any microcontroller vendor for that matter
[155]
I've simply selected the free evaluation version of their toolset
[159]
because it has all the features I needing discourse such as: state of
[163]
the art C and C++ compiler
[165]
a nice debugger
[167]
ARM instruction set simulator
[170]
to download IAR EWARM
[172]
point your browser to iar.com
[175]
select the Service Center and click on the Downloads link
[181]
on the Download page click on the latest size-limited version of the ARM
[185]
toolset
[186]
On the next page scroll down
[189]
and click on the download software link
[196]
this download can take a while because the file is over nine hundred megabytes
[200]
in size
[208]
After the download completes
[210]
show the file in folder
[213]
double click on it
[215]
and run the installer
[231]
Click on Install IAR Embedded Workbench
[242]
click next
[244]
accept the license and click next
[250]
click next
[253]
click next
[257]
click install
[260]
again this can take a while
[262]
because now you're copying files to your hard drive
[272]
this dialog box asks if you want to install the license dongle on your system
[283]
finally the installation completes
[285]
click finish
[291]
exit from the IAR navigation pane
[301]
when the IAR embedded workbench comes up for the first time you will be
[305]
presented with the registration dialog box. click register
[311]
this will open at the IAR registration form on your browser that
[315]
you need to fill out
[317]
here the most important step is to select the code-size limited license
[321]
type
[325]
you need to fill out all the required fields
[374]
and finally you can click on submit registration
[385]
the IAR installation requires a confirmation of your email address
[390]
when you receive the email from IAR open it and click on the registration
[394]
link
[398]
this opens a web page with your license number which you need to copy to the
[402]
clipboard
[404]
Next, switch to the IAR Embedded Workbench, and select the Help->License
[408]
Manager menu
[412]
finally copy the license number into the provided space and click next
[425]
click next to activate the license
[435]
alright, your license is now installed and the tool is finally ready to use
[442]
In the last step of this lesson I will show you how to order an
[445]
inexpensive evaluation board
[447]
called Stellaris Launchpad from Texas Instruments
[450]
i repeat that this step is optional because you can use the ARM instruction
[454]
set simulator in the IAR toolset to follow along in most of the upcoming
[459]
lessons
[461]
i'd also like to mention that I'm not associated with texas instruments
[464]
or any other microcontroller vendor
[467]
i simply selected this particular TI board
[470]
because it is completely self-contained
[473]
the board is powered from a USB connector and has a complete hardware
[476]
debugger which will enable us to look inside the processor
[480]
the Launchpad has a thirty two-bit ARM Cortex-M4 microcontroller
[485]
with peripherals
[486]
and bright multi-color LED
[488]
two user switches and connectors for experimentation in future
[492]
expansion
[493]
evaluation boards like this used to cost hundreds of dollars just a few years ago
[497]
but now TI sells this board for only twelve ninety nine US dollars
[504]
so if you wish to order this board point your browser to TI.com
[511]
in the search box, type Stellaris Launchpad
[515]
click on that buy-now link
[523]
click on add to cart and proceed to checkout
[532]
this concludes the setup part of the course. In the next lesson you will learn
[536]
how to create your first project in the IAR toolset
[539]
and watch it run in the simulator
[541]
and on the Launchpad board
[545]
if you have any questions or comments about this course please visit state
[548]
machine dot com
[549]
slash quickstart
[551]
where you can find all currently available lessons, class notes, and
[554]
projects