Mastering Microcontroller and Embedded Driver Development

About Course
Your Search for an in-depth microcontroller programming course ends here !!<<<
Course code: MCU1
Learn bare-metal driver development using Embedded C : Writing drivers for STM32 GPIO,I2C, SPI,USART from scratch
English Subtitles/CCs are enabled for this course.
Update 6: videos are updated with the latest STM32CUBEIDE
Update 5: All drivers are developed in a live session with step-by-step coding and added stm32-Arduino communication exercises using SPI and I2C.
Update 4: Dedicated support team is assigned to address student’s Q/A
Update 3: English Closed captions are fixed
Update 2 : Added Bus matrix / memory map /vector table /interrupt design discussion with code examples.
Update 1: Eclipse IDE setup for ARM Cortex M based MCUs added
The course is designed for beginners to advanced audiences.
Brief Description:
This course Demystifies the internal working of the Microcontroller and its Peripherals.
Coding for the Peripherals STEP-BY-STEP and Developing software drivers entirely from scratch by extracting maximum information from Datasheets, Reference manuals, specs, etc
Protocol Decoding Using logic analyzers, Debugging, Testing along with Hints and Tips.
Long Description:
Learning Embedded System Programming can be a challenge. Since it’s a relatively complex field, there’s no actual gold standard yet for how things are practiced, or taught, which can frustrate people who are just trying to learn new things and couldn’t connect the dots.
This is the motivation behind creating this course to help engineers and students learn different aspects of embedded systems by providing high-quality advanced lectures at a relatively low price.
Master Behind the Scene working;
created this course because I believe your time is precious, and you shouldn’t have to hunt around to get a practical foundation In Embedded System Programming. In this course, you will learn to write your peripheral driver for most commonly used peripherals such as GPIOs, I2C, SPI, USART, etc., and the exciting thing is that you will learn everything from scratch.
No 3rd party libraries!
No blind coding!
Write your driver APIs by dealing with the peripheral registers of the MCU!
Code and Implement APIs from scratch, diving into the datasheet and reference manual of the MCU. I will thoroughly explain how to extract the maximum information from datasheets, Technical Reference manuals to configure and handle peripherals. These techniques you can go and apply to any MCUs you have at your hand.
In this course, I will walk you through step-by-step procedures on configuring various Peripherals like GPIOs, SPI, USART, I2C by taking you into the reference manual and datasheet. We will develop a fully working driver code, interrupt handlers, sample application everything from scratch to understand the big picture.
In each lecture, I assure you that you will learn something new to use in your work or projects. You’ll find yourself handling these peripherals with much more clarity. You will be able to speculate and debug the problem quickly. I’ll show you tricks and tips to debug the most common issues using debugging tools such as logic analyzers.
This is not the Arduino style of programming:
I believe Arduino is for quick prototyping of projects/products but not for mastering the working of micro-controllers and their peripherals. Unlike Arduino programming, where you develop a quick solution and prototyping of products using third-party libraries, this course is entirely different. In this course, no 3rd party libraries are used. Everything we will code by referring to the technical reference manual of the MCU and will create our own library. The Power of this approach is that you can quickly speculate problems and debug like a pro when things go wrong in your project due to bugs. If one thing me and my students are good at is “debugging,.” To achieve good debugging skills, it’s essential to code by understanding how things work behind the scene but not by blindly using some third-party libraries, and that’s the biggest TAKE away from this course.
The course is designed and explained so that it is generic across any microcontroller. The code we develop can be used as templates to quickly build a peripheral driver for your MCUs on-chip peripherals.
Software/Hardware used:
In this course, the code is developed so that it can be ported to any MCU you have at your hand. If you need any help porting these codes to different MCUs, you can always reach out to me! The course is strictly not bound to any 1 type of MCU. So, if you already have any Development board that runs with an ARM-Cortex M3/M4 processor, I recommend you continue using it. But if you don’t have any development boards, then check out the below Development boards.
1. STM32F407xx based Discovery board ( This is the board used in this course)
MCU Vendor: STMicroelectronics
IDE: STM32CUBEIDE (Free)
My promise:
I am confident that this course will save you many hours of studying/experimenting/googling time to learn about MCU programming. I will personally answer your questions about this material, either privately or in a group discussion. If you are not satisfied, for any reason, you can get a full refund from Udemy within 30 days. No questions asked. But I am confident you won’t need to. I stand behind this course 100% and am committed to helping you.
What Will You Learn?
- Understand Right ways of Handling and programming MCU Peripherals
- Develop Peripheral drivers for your Microcontroller
- Understand complete Driver Development steps right from scratch for GPIO,SPI,I2C and USART.
- Learn Writing peripheral driver headers, prototyping APIs and implementation
- Explore MCU data sheets, Reference manuals, start-up Codes to get things done
- Learn Right ways of handling/configuring Interrupts for various peripherals
- Learn about Peripheral IRQs/Vector table/NVIC interfaces and many
- Learn about Configuration/status/Control registers of various Peripherals
- Demystifying behind the scene working details of SPI,I2C,GPIOs,USART etc.
- Explore hidden secretes of MCU bus interfaces, clock sources, MCU clock configurations, etc.
- Understand right ways of enabling/configuring peripheral clocks/serial clocks/baud rates of various serial protocols
- Learn about MCUs AHB, APB bus protocols
- Learn about different MCU clocks like HCLK, PCLK, PLL,etc
- Learn to capture/decode/analyze traces of serial protocols on Logic analyzer
- Learn about Quick ways of debugging peripheral issues with case studies
Course Content
01. Notes and Information
02. Development board used in our courses
03. HardwareSoftware Requirements
04. IDE installation
05. Creating a project using STM32CUBEIDE
06. Embedded Code Debugging Tips and tricks
- 04:55
- 10:18
- 03:48
- 06:17
- 04:32
- 07:56
- 07:25
- 04:32
- 04:42
- 04:59
07. Understanding MCU Memory Map
08. MCU Bus Interfaces
09. Understanding MCU Clocks and Details
10. Understanding MCU Clock tree
- 11:04
- 11:24
- 12:39
- 08:34
- 05:12
- 12:22
- 08:39
11. Understanding MCU Vector table
12. Understanding MCU interrupt Design , NVIC, Interrupt handling
13. Importance of Volatile Keyword
14. GPIO Must know concepts
- 02:21
- 03:00
- 01:13
- 01:15
- 05:53
- 02:47
- 03:11
15. GPIO Programming structure and Registers
- 02:44
- 00:57
- 05:39
- 11:42
- 02:39
- 04:58
- 00:34
- 02:46
- 01:07
16. GPIO Registers SPEED, PULL UPDOWN, IDR and ODR
17. GPIO Alternate functionality register and example of usage
18. GPIO peripheral clock control
19. GPIO driver development overview and Project creation
20. Updating MCU specific header file with bus domain and peripheral details
- 03:38
- 02:13
- 06:00
- 03:02
- 01:52
- 04:48
21. Structuring peripheral registers
22. Writing Clock enable and disable macros
23. GPIO driver API requirements and handle structure
- 01:47
- 05:15
- 06:47
- 09:00
- 03:03
24. GPIO driver API Implementation Clock control
25. GPIO driver API Implementation GPIO init and de-init
26. GPIO driver API Implementation GPIO data read and write
27. Exercise
- 11:15
- 06:13
- 11:13
- 09:46
- 02:45
- 01:13
28. GPIO pin Interrupt configuration
- 06:54
- 05:11
- 01:06
- 15:01
- 09:41
- 10:19
- 12:12
29. Exercise GPIO interrupts
30. MCU IO Pin specifications
31. SPI introduction and bus details
32. SPI bus configuration and functional block diagram
33. STM32 NSS pin settings and management
34. SPI CPOL and CPHA discussion
35. SPI serial clock discussion
36. SPI Driver API requirements and configuration structure
37. SPI Driver API Implementation Clock control
38. SPI Driver API Implementation SPI init
39. SPI Driver API Implementation Send Data
40. Exercise SPI Send Data
- 02:03
- 04:14
- 04:15
- 07:22
- 05:30
- 14:55
41. Exercise STM32 master and Arduino Slave communication
42. SPI Driver API Receive data
43. Exercise SPI receive data
44. SPI interrupts
45. SPI interrupt mode APIs
46. SPI Driver API IRQ handling
47. Common problems in SPI
48. I2C introduction and I2C signals
49. I2C modes
50. Understanding I2C Protocol
51. I2C master and slave communication
52. STM32 I2C functional block diagram
53. I2C driver API requirements and config structures
54. I2C serial clock discussion(SCLK)
55. I2C Driver API I2C Init
56. I2C Driver API I2C Master send data
- 10:27
- 06:17
- 02:15
- 04:26
- 03:03
- 01:59
57. I2C pull up resistance , rise time and bus capacitance
58. Exercise
59. I2C Driver API I2C Master receive data
60. Exercise
61. I2C Interrupts and IRQ numbers
62. I2C interrupt based APIs
63. I2C IRQ handler implementation
- 08:41
- 04:42
- 08:10
- 03:07
- 03:55
- 12:04
- 03:35
- 04:18
- 03:26
64. Exercise
65. I2C slave programming
66. Exercise
67. Common problems in I2C
68. UART Essentials
69. UART functional block and Peripheral Clock
70. UART Communication
- 03:17
- 04:29
71. USART driver development
- 05:06
- 02:15
- 10:05
- 01:54
- 01:29
- 05:26
72. USART oversampling and baudrate
73. Exercise
74. USART interrupts
75. Exercise RTC on LCD
- 18:38
- 19:58
- 21:40
- 07:08
- 06:59
- 09:25
- 18:15
- 12:34
- 04:59
- 06:10
- 08:22
- 10:13
- 13:08
- 13:57
- 17:57
