AnsweredAssumed Answered

HAL_UART_Receive_DMA can't work in STM32L476RG nucleo

Question asked by paker earth on Jan 20, 2017
Latest reply on Jan 20, 2017 by paker earth

Hi all


I used the example "UART_TwoBoards_ComDMA".

Just comment #define TRANSMITTER_BOARD, because I only have one device connecting to PC.


After run it, I couldn't see LD2 flashing.

It should be toggled because while (UartReady != SET) loop.


If I add some code "HAL_UART_Transmit_DMA(&UartHandle, (uint8_t*)aTxBuffer, TXBUFFERSIZE);" between HAL_UART_Receive_DMA() and while (UartReady != SET) loop.

It will show messages on my PC terminal, but LD2 still didn't flash.

I don't know where is the code running.

I tried to input some datas, unfortunately HAL_UART_RxCpltCallback() has no respond.


If someone could show me a example using HAL_UART_Receive_DMA could work in STM32L476 nucleo.

or tell me how to debug the problem.

Thank you all in advance.