Thursday , October 9 2025

VN26 – Stm32F4 Usart DMA ( Transmit + Receive )

VN26 (Video No:26) Bu videoda, (Hal lib V2.11.0) while programming STM32F4 with STM32CubeMX – Keil, How to receive and transmit data by using Usart serial DMA (Direct Memory Access)?

 

<<Video>> Watch
<<Source Code>> Download

Notes;

  • Both RxCpltCallback and  TxCpltCallback functions are used in Usart DMA method.
  • When more than one data are consecutively read with DMA method, previous buffer data might be still read. To get rid of this problem, DMA can be reset.
  • If DMA_stop function are used, both rx ve tx processes stop.
  • If it is required to stop either tx or rx, the codes regarding both tx and rx can be divided in DMA_stop function as I’ve tried to do in the video.

Check Also

VN38 – Stm32f4 HC06 Bluetooth Module

VN38 (Video No:38) Hal lib V2.11.0, STM32CubeMX – Keil and STM32F4, This video contains how …