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.