ARM Cortex M Microcontroller DMA Programming Demystified

Direct Memory Access Demystified with STM32 Peripherals (ADC, SRAM,UART,M2M,M2P,P2M) and Embedded C code Exercises

  • 0.0 (0 Reviews)
  • 0 Students
  • 82 Lessons
  • FastBit Embedded Brain Academy

Course Overview

The course aims to demystify the Microcontroller DMA controller internals and its programming with various peripherals. Suitable for beginners to intermediate students in the field of Embedded Systems and programming. Please go through the description below to understand the course offering.

Key things you learn,

1) The Multi AHB bus matrix and ARM Cortex M Bus interfaces

2) MCU Master and Slave communication over bus matrix

3) DMA internals: channel mapping / streams/ fifo /Master ports / Arbiter/etc

4) DMA different transfer modes: M2P, P2M,M2M

5) DMA with peripherals like ADC, GPIO, UART_RX/TX and many other peripherals will be updated in this course.

6) DMA programming from scratch. Helps you to troubleshoot DMA issues on other microcontroller or processor platforms. You can speculate and debug problems more quickly when you learn the hard way.

7) And lots of other videos about circular mode/burst transfer /RTOS etc. will be added shortly.


Hardware used:

1) STM32F446RE Nucleo64 board

you can also use other STM32 boards such as the discovery board, evaluation board, or any other board.


Software used:

1) KEIL MDK V5 (free version, for windows)

2) Openstm32 system workbench ( windows/linux/mac) (free)

3) CubeMx software from ST (free)


The installation procedure is covered in the course

Description:

This course is all about understanding the Direct Memory Access Controller of the Micro-controller and how to use it in the embedded applications.


The course uses ARM Cortex M based STM32 Micro-controller for all theory discussion and code exercises. The course discusses generic details of the DMA which you can leverage to other Micro-controllers but you have made changes to the code in order to run on your target if it's not an ST's 32-bit Micro-controller.


The course will help you to raise your confidence in handling your MCU's DMA controller and connecting dots by going through the various levels of discussion.

I really tried to simplify the subject with clean/generic explanations and exercises.

We will discuss why DMA is required and how it benefits ARM to offload data transfer work with exercises.

We will learn different types of DMA transfers like M2M, P2M, and M2P (M: Memory P: Peripheral) and various DMA configurations. Please go through "What will I learn?" section above.

For the beginners/intermediate students, the course will indeed add huge advantage and helps to use DMA successfully in Embedded applications.


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) Master The Rust Programming Language : Beginner To Advanced

See more

FAQ

FAQ area empty

Course curriculum

13 chương 82 bài học 9 giờ 43 phút 7 bài học thử miễn phí
Chương 1 DMA Getting Started and Multi AHB Architecture
Chương 2 Development board used in our courses
  • Note for the students
  • About MCU Development board 4:56
  • STM32F4 Discovery and Nucleo : Board Details 8:44
  • ST-Link Driver Installation 3:26
  • ST Link Firmware Upgrade 4:06
Chương 3 KEIL-MDK-5 Setup For ARM Cortex M based MCUs
  • Note for the students
  • KEIL-MDK-5 Installation 7:49
  • KEIL-MDK-5 Installation Contd. 2:36
  • KEIL-MDK-5 Pack Installation 12:59
  • Locating Pack Installation files 3:05
  • Creating a KEIL Project 12:11
  • Exercise: LED Toggling App using Board BSP APIs 17:34
  • Exercise: LED Toggling App using Board BSP APIs-Nucleo 5:57
  • Exercise : Adding button support using board BSP APIs(Nucleo) 6:36
Chương 4 Installing Open STM32 System Workbench
  • Downloading OpenSTM32 System-Workbench 5:42
  • Installing OpenSTM32 System-Workbench 4:52
Chương 5 STM32Cube Mx Installation and Code Generation
  • Note for the students
  • STM32CubeMX Installation 4:12
  • Creating Projects using STM32CubeMX Part-1 17:09
  • Creating Projects using STM32CubeMX-Part 2 4:19
  • Creating Projects using STM32CubeMX-Part 3 6:55
  • Creating Projects using STM32CubeMX-Part 4 2:01
Chương 6 DMA Exercises: GPIO Polling and Interrupt
  • DMA Programming : Generic Steps to follow 4:30
  • Toggling of LED using DMA(Polling mode)-Part-1 4:42
  • Toggling of LED using DMA(Polling mode)-Part-2 6:15
  • Toggling of LED using DMA(Polling mode) - Part-3 17:29
  • Toggling of LED using DMA(Polling mode)-Part-4 1:17
  • Toggling of LED using DMA (Interrupt Mode)- Part 1 9:07
  • Toggling of LED using DMA (Interrupt Mode)- Part 2 9:14
  • Test Drive
Chương 7 DMA Exercises: UART to SRAM
  • UART to SRAM Data Transfer using DMA (Interrupt Mode) : Big Picture 9:52
  • UART to SRAM Data Transfer using DMA (Interrupt Mode) : Implementation 14:20
  • UART to SRAM Data Transfer using DMA (Interrupt Mode) Contd 6:58
Chương 8 DMA Functional Block Diagram ( What's inside the DMA controller ? )
  • Master and Slave Ports of DMA 6:41
  • DMA Streams 7:51
  • DMA Channel Mapping 9:16
  • DMA Channel Mapping Case Study1 : P2M 4:18
  • DMA Channel Mapping Case Study2: M2M, M2P 4:41
Chương 9 DMA Exercises : ADC to SRAM
  • DMA Exercise : ADC to SRAM Big Picture 5:04
  • ADC and DMA Configuration Settings 12:07
  • ADC and DMA : Understanding Code-1 11:25
  • ADC and DMA : Understanding Code-2 8:58
Chương 10 DMA Arbiter and Stream Priority
  • DMA Arbiter and Stream Priority 4:39
Chương 11 DMA Transfer Modes and FIFO mode
  • P2M Data Transfer 12:39
  • M2P Data Transfer 4:25
  • DMA Exercise : SRAM to UART2_TX Part-1 4:12
  • DMA Exercise : SRAM to UART2_TX Part-2 13:13
Chương 12 DMA Programming from scratch ( Register level programming)
  • Introduction 4:03
  • M2P Data Transfer : Project creation 7:28
  • Button Init steps to Receive an interrupt 5:07
  • Coding for Button init Part-1 10:17
  • Coding for Button init Part-2 6:54
  • Coding for Button init Part-3 9:53
  • Implementing Button interrupt handler 13:32
  • Discussing steps to configure the UART Peripheral 4:04
  • UART PINMUX configuration settings 9:15
  • Code to bring out UART TX RX functionality on gpio pins 10:15
  • Setting up Baudrate and Configuring UART parameters 8:57
  • Testing UART communication 8:04
  • Brainstorming DMA Initialization Steps 6:46
  • Identifying the DMA stream 14:08
  • Configuring DMA Stream direction and data width 5:25
  • Configuring Channel Selection 10:11
  • Testing with UART TX DMA request 6:56
  • DMA stream interrupt(IRQ) discussion Part1 5:10
  • DMA stream interrupt(IRQ) discussion Part2 14:12
  • Coding DMA stream IRQ handler : Part1 7:19
  • Coding DMA stream IRQ handler : Part2 15:25
  • Note for the students
Chương 13 BONUS LECTURE
  • BONUS LECTURE

Requirment

  • Basic knowledge of C and Microcontroller could be added advantage but not mandatory

  • Mind Receptive to new ideas or arguments

Outcomes

  • Please watch free preview videos you will learn something today without even enrolling for this course

  • Fundamentals of Direct Memory Access in a Microcontroller

  • The Microcontroller Architecture and Bus interfaces

  • Bus matrix of the ARM cortex M based MCU

  • Concurrent data access from ARM and DMA

  • DMA control configurations like burst size, FIFO, Alignment

  • DMA Controller internals and Bus interfaces

  • DMA Controller channels,Streams,priority

  • Memory to Memory data transfer using DMA and Exercises

  • Peripheral to Memory and Memory to Peripheral DMA and Programming exercises

  • Peripheral DMA configurations

  • DMA controller interrupts and interrupts handling

  • Debugging

Instructor

...
FastBit Embedded Brain Academy

0.0

  • ... 0 Student
  • ... 7 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all