cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_UART_RxCpltCallback() Not called in STM32F411VET

SDall.11
Associate III

Hi, I've an STM32F411VET and CubeMX 5.5.0.

I need to read data from uart2, but callback (HAL_UART_RxCpltCallback) isn't called.

- In POLLING mode the usart2 works fine but this method isn't appropriate for me.

- In INTERRUPT mode, I can send data but don't receive any and obviously HAL_UART_RxCpltCallback isn't called.

- In DMA mode with circular buffer, I can send and receive data, but HAL_UART_RxCpltCallback isn't called.

In all tests I've called:

HAL_UART_Receive_IT() or HAL_UART_Receive_DMA() with read lenght of 1 or 4 bytes.

I've created the test projects from CubeMX activating "Usart 2 global interrupt", but after 8 hours of tests withouth satisfaction I start to give up.

Can you help me?

Thanks.

Best regards.

1 REPLY 1
Pavel A.
Evangelist III

Please see these DMA examples. They are good and working.

https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx