Modern Embedded Systems Programming Course

This is the companion web-page to the YouTube video course about programming embedded systems the modern way. The course is taught by Quantum Leaps' Miro Samek.

Here you can find various resources for the course as well as links to all released videos and project downloads.

The course consists of focused, fast-paced, hands-on lessons that teach you how to program embedded microcontrollers in C. The course begins with the fundamentals, but gradually covers increasingly advanced concepts all the way to the contemporary modern embedded programming practice.

The course is specifically designed not just to be watched, but to be actively followed along on your own computer (Windows based PC) and a small, self-contained, very inexpensive evaluation board. This companion web-page provides the project downloads that you can open in a specific embedded toolchain and run on your PC at home.

The goal of the course is not just to teach C--other sources do it already quite well. But there are virtually no courses that would step down to the machine level and show you exactly what happens inside a microcontroller.

So, starting from Lesson 1 you will actually see how the ARM Cortex-M processor executes your code, how it manipulates registers, and how an embedded microcontroller can "do" things in the real world, such as turn on and off an LED.

This deeper understanding will allow you to use the C language more efficiently and with greater confidence. You will gain understanding not just what your program does, but also how the C statements translate to machine instructions and get a sense for how fast the processor can execute them. Also, you will get some familiarity with the ARM Cortex-M core, which will look really good on your resume.

The course has been going from January 2013, but it is never too late to join. Stay tuned...

Course Resources

The following list provides links to useful resources about the embedded board and the development toolchains used in the course.

Resource
TivaC LaunchPad board (EK-TM4C123GXL).
To be able to run the projects provided below, you need to use this exact board and no other boards, even if based on the same ARM Cortex-M4 CPU, will do.
Troubleshooting TivaC LaunchPad
(fixing common problems with TivaC LaunchPad and related software)
Tiva TM4C123GXL LaunchPad User Manual
(applies also for Stellaris EK-LM4F120XL LaunchPad)
Tiva TM4C123GH6PM Data Sheet
(also applies to LM4F120H5QR)
Tiva/Stellaris In-Circuit ICDI Manual
(USB drivers installation instructions)
ARM-KEIL MDK (Microcontroller Development Kit)
(scroll down to MDK Editions and choose the MDK-Lite, size-limited evaluation)
The ARM-KEIL MDK is used staring from Lesson 21.
TI Code Composer Studio
(choose the Windows version and make sure to select the ARM GCC compiler during installation)
The CCS toolset and GNU-ARM compiler is used staring from Lesson 19.
IAR Embedded Workbench for ARM
(choose Kickstart, size-limited evaluation)
The IAR toolset is used up to Lesson 18.
LM-FLASH programmer
(click on "Get Software" to download the flash programmer for your TivaC LaunchPad).
The LM-FLASH tool can be used to recover an unresponsive TivaC Lauchpad board. To recover the board, launch lmflash, click on the "Other Utilities" tab at the top, and select "Debug Port Unlock, Fury, DustDevil, TM4C123 and TM4C129" radio button. Click on the "Unlock" button and follow the instructions.

Course Videos

The following table lists all lessons released so far together with the accompanying notes (transcripts) and project files. The list is in the reversed time order, with the newest lessons on top. The complete Playlist of this course is available on YouTube.

Running Time Video Title (watch on YouTube) Transcript Toolchain Project Video Download
23:42 Lesson 31: OOP part-3-Polymprphism in C++ notes31 ARM-KEIL uVision lesson31
qpc
video31
24:02 Lesson 30: OOP part-2-Inheritance notes30 ARM-KEIL uVision lesson30
qpc
video30
31:29 Lesson 29: OOP part-1-Encapsulation notes29 ARM-KEIL uVision lesson29
qpc
video29
38:02 Lesson 28: RTOS part-7 notes28 ARM-KEIL uVision lesson28
qpc
video28
43:03 Lesson 27: RTOS part-6 notes27 ARM-KEIL uVision lesson27
qpc
video27
29:31 Lesson 26: RTOS part-5 notes26 ARM-KEIL uVision lesson26
qpc
video26
25:35 Lesson 25: RTOS part-4 notes25 ARM-KEIL uVision lesson25
qpc
video25
19:15 Lesson 24: RTOS part-3 notes24 ARM-KEIL uVision lesson24
qpc
video24
37:36 Lesson 23: RTOS part-2 notes23 ARM-KEIL uVision lesson23
qpc
video23
23:26 Lesson 22: RTOS part-1 notes22 ARM-KEIL uVision lesson22
qpc
video22
18:37 Lesson 21: Foreground Background Systems notes21 ARM-KEIL uVision lesson21
qpc
video21
16:58 Lesson 20: Race Conditions notes20 TI CCS (Eclipse) lesson20
CMSIS
video20
22:19 Lesson 19: GNU-ARM and Eclipse notes19 TI CCS (Eclipse) lesson19
CMSIS
video19
15:28 Lesson 18: Interrupts Part-3 notes18 IAR EWARM lesson18
CMSIS
video18
19:52 Lesson 17: Interrupts Part-2 notes17 IAR EWARM lesson17
CMSIS
video17
15:59 Lesson 0x10: Interrupts Part-1 notes16 IAR EWARM lesson16
CMSIS
video16
27:35 Lesson 15: Startup Code Part-3 notes15 IAR EWARM lesson15
CMSIS
video15
25:44 Lesson 14: Startup Code Part-2 notes14 IAR EWARM lesson14
CMSIS
video14
23:27 Lesson 13: Startup Code Part-1 notes13 IAR EWARM lesson13
CMSIS
video13
32:11 Lesson 12: Structures and CMSIS notes12 IAR EWARM lesson12
CMSIS
video12
28:34 Lesson 11: <stdint.h>, Endianness, Mixing Types in Expressions notes11 IAR EWARM lesson11 video11
27:42 Lesson 10: Stack Overflow and Other Pitfalls of Functions notes10 IAR EWARM lesson10 video10
19:08 Lesson 9: Modules, Recursion, AAPCS notes9 IAR EWARM lesson9 video9
17:06 Lesson 8: Functions and the Stack notes8 IAR EWARM lesson8 video8
15:22 Lesson 7: Arrays and Pointer Arithmetic notes7 IAR EWARM lesson7 video7
17:06 Lesson 6: Bit-wise operators in C notes6 IAR EWARM lesson6 video6
14:30 Lesson 5: Preprocessor and volatile notes5 IAR EWARM lesson5 video5
16:45 Lesson 4: Blinking the LED notes4 IAR EWARM lesson4 video4
12:23 Lesson 3: Variables and Pointers notes3 IAR EWARM lesson3 video3
11:00 Lesson 2: Flow of Control notes2 IAR EWARM lesson2 video2
17:06 Lesson 1: Counting notes1 IAR EWARM lesson1 video1
  9:17 Lesson 0: Getting Started notes0 video0
Translations
Turkish Gömülü Sistemler Programlama Dersleri
Russian ???с ??ог?амми?ования ?с??аиваем?? Сис?ем