Course Overview
==> Microcontroller Embedded C Programming: Foundations for Firmware Engineers <==
This should be your very first course to dive into the exciting world of "Embedded Systems
This is our new course mainly targeted for absolute beginners to learn microcontroller programming using the 'C ' programming language.
Please note that "Embedded C" is NOT a separate programming language. 'Embedded C' is rather embedded target aware programming using traditional 'C' programming language. In this course you work closely with hardware such as registers, peripherals, interrupts, and real time constraints.
Some of the critical microcontroller-related 'C' concepts such as
Importance of bitwise operators
Usage of bit manipulation techniques to program MCU peripheral registers
accessing memory-mapped registers using pointers
pointers and casting
structures, bitfields, unions, and bit extraction techniques
representing hardware registers details and configuring them using 'C' structure definitions
Usage of const and volatile type qualifiers
Interpret complex variable definitions involving the combination of const and volatile
The precise usage of const pointers, const data, volatile const, with pointer and non-pointer variables
The behavior of the code during compiler optimization and solution using volatile
Functions and friends
Data types, variables definitions, storage class specifiers and much more
Loops: while, for, do. while
MCU internal architecture and programming peripherals
Interfacing projects
All these concepts are discussed with clear examples and writing code for the target embedded board.
According to 2017 embedded dot com survey still 'C' is one of the most widely used programming languages for embedded code development
This course gives particular emphasis to learn 'C' programming concepts practically for microcontroller use cases.
Hardware:
1. You need ARM Cortex M4 based STM32F407 DISCOVERY board from ST if you want to try out code on the target.
2. Additional interfacing components may be required for interfacing projects
3. You can also be able to follow this course if you have any other boards from ST such as Nucleo or evaluation.
Software:
1. In this course, Eclipse-based STM32CubeIDE is used as the IDE ( works on Windows/Linux/Mac) (FREE)
Learning order of FastBit Embedded Brain Academy Courses,
If you are a beginner in the field of embedded systems, then you can take our courses in the below-mentioned order.
This is just a recommendation from the instructor for beginners.
1) Microcontroller Embedded C Programming: absolute beginners(Embedded C)
2) Embedded Systems Programming on ARM Cortex-M3/M4 Processor(ARM Cortex M4 Processor specific)
3) Mastering Microcontroller with Embedded Driver Development(MCU1)
4) Mastering Microcontroller: TIMERS, PWM, CAN, RTC,LOW POWER(MCU2)
5) Mastering Microcontroller: STM32-LTDC, LCD-TFT, LVGL(MCU3)
6) Embedded System Design using UML State Machines(State machine)
7) Mastering RTOS: Hands-on FreeRTOS and STM32Fx with Debugging(RTOS)
8) ARM Cortex M Microcontroller DMA Programming Demystified(DMA)
9) STM32Fx Microcontroller Custom Bootloader Development(Bootloader)
10) Embedded Linux Step by Step using Beaglebone Black(Linux)
11) Linux device driver programming using Beaglebone Black(LDD1)
Other programming courses
1) Mastering Embedded Rust: Bare Metal, FFI, Crates, Projects (STM32+Rust)
2) Master The Rust Programming Language : Beginner To Advanced
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 5 bài · 5 phút
Chương 2 IDE installation 14 bài · 39 phút
-
Downloading IDE 3:33
-
Key features of the STM32CubeIDE 2:08
-
Installing STM32CubeIDE 0:43
- Installing STM32CubeIDE on Linux Học thử 2:01
- Installing compiler (GCC) for host Học thử 1:43
-
Installing compiler (GCC) for host (WINDOWS) 3:04
-
Installing compiler (GCC) for host (LINUX) 1:26
-
Installing compiler (GCC) for host (MAC) 1:09
-
Importing course projects in to workspace 11:46
-
Creating a project for the HOST 3:41
-
Creating a project for the Target 4:26
-
FPU warning fix
-
Hardware/Software Requirements
-
Meet the embedded target of this course 3:27
Chương 3 Your first 'C' program 7 bài · 32 phút
-
OnlineGDB web tool 0:57
-
Printf and Hello World 11:57
-
Printf exercise solution 3:44
-
Escape sequences in 'C' 3:48
-
Printf exercise solution 4:10
-
Printf exercise solution 3:31
-
Commenting in 'C' 3:39
Chương 4 Data types and variables 13 bài · 1 giờ 9 phút
-
Data types in 'C' 5:09
-
'C' Integer data types and value ranges 5:20
-
Char data type and variable definition 5:39
-
Variable definition exercise 8:29
-
Range calculation for 'char' data type 7:35
-
Integer data type 'short int' and value range 3:05
-
Integer data type 'int' and 'long' 1:17
-
Sizeof 6:06
-
Variables naming rules and definition vs declaration 9:10
-
Declaration vs definition : An illustration 2:49
-
Variables scope and illustration 9:01
-
Variables scope and illustration contd 4:03
-
Summary of local and global variables 1:03
Chương 5 Address of variable 2 bài · 13 phút
-
Address of variables 4:37
-
Address of variables contd. 8:16
Chương 6 Storage classes 5 bài · 25 phút
-
Storage class specifiers in 'C' 6:55
-
Use cases of 'static' with variables 6:16
-
Use cases of 'static' with functions 3:52
-
'Extern' storage class specifier 1:18
-
ASCII codes 6:26
Chương 7 Functions 6 bài · 37 phút
-
Introduction to functions in 'C' 9:51
-
Function prototypes 3:08
-
Returning data from a function 2:13
-
Function exercise 12:37
-
Typecasting in 'C' 7:45
-
Typecasting in 'C' contd 1:39
Chương 8 Microcontroller and Hello World 7 bài · 43 phút
-
Embedded - 'Hello World' 14:06
-
Testing printf over ARM Cortex M4 ITM+SWO line 8:12
-
Issues with IDE 3:52
-
Testing printf over OpenOCD semihosting 5:59
-
Run Sizeof on Embedded Target 1:19
-
Sizeof testing 4:38
-
Compiler settings on STM32CubeIDE 4:46
Chương 9 Build process 1 bài · 9 phút
-
Embedded project build process 8:38
Chương 10 Analyzing Embedded C code 6 bài · 50 phút
-
What is a Microcontroller ? 13:38
-
Code memory of the microcontroller 4:02
-
Code and Data of the program using memory browser 9:32
-
Analyzing ELF file using GNU tools 12:08
-
Disassembly 9:22
-
IDE option for Instruction level debugging 1:00
Chương 11 Data types to manipulate floating point data 3 bài · 13 phút
-
Manipulating decimal numbers in 'C' 2:29
-
Single vs double precision 3:39
-
Working with float and double variables 6:32
Chương 12 Taking input from the user using scanf() 6 bài · 27 phút
-
Scanf introduction 3:54
-
Scanf exercise implementation 12:46
-
Scanf exercise implementation contd. 3:51
-
Scanf exercise 1:00
-
Scanf exercise implementation 2:54
-
Scanf and float with scientific notation 2:45
Chương 13 Pointers 7 bài · 43 phút
-
Pointers in 'C' 2:56
-
Pointer variables and pointer data types 6:22
-
Pointer variables and initialization 5:16
-
Read and Write operation on pointers 3:52
-
Pointer exercise implementation 6:34
-
Significance of pointer data types 8:17
-
Significance of pointer data types 9:43
Chương 14 Importance of <stdint.h> 1 bài · 11 phút
-
Importance of <stdint.h> 10:47
Chương 15 Operators 5 bài · 26 phút
-
Operators in 'C' 10:06
-
Unary operator in 'C' 4:26
-
Unary operators with pointers 1:42
-
Relational operators in 'C' 3:48
-
Logical operators in 'C' 5:58
Chương 16 Decision making 15 bài · 1 giờ 7 phút
-
'if' statement 9:17
-
If statement exercise
-
'if' statement exercise solution 4:30
-
'if' and 'else' 3:21
-
'if' and 'else' exercise implementation part-1 4:55
-
'if' and 'else' exercise implementation part-2 4:10
-
'if' and 'else' exercise implementation part-3 4:57
-
'if -else-if' ladder statements 2:14
-
'if-else-if' ladder exercise 1:10
-
'if-else-if' ladder exercise solution 8:55
-
Conditional operator 6:43
-
Switch case statement in 'C' 4:44
-
Switch case exercise 1:59
-
Switch case exercise solution 7:38
-
Switch case exercise solution contd. 2:55
Chương 17 Bitwise operators 7 bài · 22 phút
-
Bitwise operators in 'C' 5:51
-
Bitwise AND and bitwise OR 1:04
-
Applicability of bitwise operators : Testing of bits 4:25
-
Finding a number even or odd using testing of bits 1:44
-
Applicability of bitwise operators : Setting of bits 2:20
-
Applicability of bitwise operators : Clearing of bits 4:03
-
Applicability of bitwise operators : xor 2:35
Chương 18 Embedded C coding exercise for LED 9 bài · 51 phút
-
Coding to Turn on an LED 5:27
-
Controlling IO pin using software 1:42
-
Processor addressable memory regions 5:46
-
STM32 memory map 3:56
-
Memory mapped peripheral registers and IO access 5:35
-
Procedure to turn ON the LED 2:47
-
Enabling peripheral clock 5:51
-
Calculating peripheral register addresses 4:19
-
LED ON exercise coding 16:05
Chương 19 Bitwise shift operators 5 bài · 17 phút
-
Bitwise right shift operator 3:52
-
Bitwise left shift operator 3:17
-
Applicability of bitwise shift operators 4:17
-
Modifying LED on exercise using bitwise shift operators 2:28
-
Bit Extraction 3:08
Chương 20 Looping 12 bài · 40 phút
-
Looping in 'C' 1:10
-
While loop 2:52
-
While loop exercise 2:12
-
While loop and semicolon 3:31
-
While loop exercise 5:49
-
'do while' loop 3:04
-
'for' loop 4:14
-
'for' loop exercise 3:53
-
'for' loop number pyramid exercise 1:31
-
'for' loop exercise solution 3:44
-
Modifying LED on with software delay 1:44
-
LED toggle using software delay 6:34
Chương 21 Type qualifier 'const' 4 bài · 21 phút
-
'const' type qualifier 8:02
-
Placements of 'const' variables in memory 3:14
-
'const' usage and different case studies 5:15
-
'const' usage and different case studies contd 4:09
Chương 22 Pin-read 2 bài · 13 phút
-
IO pin read exercise 3:11
-
IO pin read exercise implementation 9:38
Chương 23 Optimization 3 bài · 15 phút
-
Compiler optimization and flags 3:58
-
Different compiler optimization levels 3:48
-
Analyzing pin read exercise disassembly with O0 and O2 6:44
Chương 24 'volatile' type qualifier 6 bài · 25 phút
-
Volatile and effect of optimization 6:15
-
When to use volatile qualifier ? 4:06
-
Using volatile to fix issues with the pin-read exercise 2:42
-
Using 'volatile' with ISR Part-1 4:30
-
Using 'volatile' with ISR Part-2 3:25
-
Usage of const and volatile together 4:16
Chương 25 Structures and Bit fields 13 bài · 1 giờ 12 phút
-
Introduction to structures 3:42
-
Accessing structure member elements 9:09
-
Sizeof of a structure 2:43
-
Aligned and un-aligned data storage 1:59
-
Structure padding 9:44
-
Calculating structure size manually with and without padding 3:05
-
Assembly code analysis of packed and non packed structure 5:39
-
Typedef and structure 6:02
-
Structures and pointers 10:43
-
Structure exercise 1:59
-
Structure exercise implementation 7:25
-
Structure and bit fields 7:22
-
Structure and bit fields contd. 2:24
Chương 26 Unions 2 bài · 11 phút
-
Unions 5:31
-
Applicability of unions 5:00
Chương 27 Usage of bit-fields in embedded code 5 bài · 22 phút
-
Bit-field exercise : Creating bit-field structure for peripheral registers 10:20
-
Bit-field structure for RCC_AHB1ENR 0:58
-
Bit-field structure for GPIOx_ODR 1:30
-
Modifying led toggle exercise with structures and bit fields 7:26
-
Testing 1:30
Chương 28 Keypad interfacing 6 bài · 37 phút
-
Keypad interfacing 4:52
-
Why pull-up resistors? 4:44
-
Detecting key press event 2:43
-
Flow chart for implementation 7:37
-
Keypad key read code implementation 11:58
-
Delay analysis 4:38
Chương 29 Arrays 5 bài · 40 phút
-
Arrays in 'C' 6:23
-
Read-Write operation on an array 14:36
-
Passing array to a function 7:36
-
Swapping of arrays 8:54
-
Swapping of arrays contd. 2:14
Chương 30 Strings 6 bài · 1 giờ 2 phút
-
Strings in 'C' 9:41
-
String literal 5:21
-
String variable Vs string literal 18:49
-
Inputting a string 4:33
-
Scanf and scanset 6:58
-
Exercise 16:28
Chương 31 Pre-Processor directives in 'C' 5 bài · 37 phút
-
Pre-Processor directives in 'C' 13:38
-
Conditional compilation directives 13:15
-
'defined' operator 5:15
-
Modifying led toggle exercise with macros 5:04
-
BONUS LECTURE
Requirment
-
Basic understanding of number systems , logic gates , bits and bytes.
-
STM32F407 discovery board is required if you want to try out code on the target
Outcomes
-
'C' programming from scratch
-
Data types,variables, declarations,
-
Importance of Bit-Wise operators in "Embedded" programming
-
Bit manipulation techniques using bit-wise operators and examples
-
Bit extraction and working with memory mapped peripheral registers
-
Other operators of 'C' (arithmatic, logical, relation, assignment )
-
Functions in 'C'
-
Implicit and explicit casting and its importance
-
Pointers and casting
-
Pointers arithmetic and importance of pointer datatypes
-
Accessing memory mapped peripheral registers using pointers
-
Structures and unions
-
Importance of structures in peripheral register access
-
Structure and bit fields
-
Configuring peripheral register addresses using bit fields
-
Structures and pointers
-
interfacing LEDs, Keypad
-
Const and volatile type qualifiers
-
importance of volatile during compiler optimization
-
const data, const pointer, cont volatile explanation with examples
-
Importance of const
-
Loops : for, while, do while
0 Student
4 Courses
0 review