2020-05-13 07:11 AM
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.
2020-05-13 08:20 AM
Please see these DMA examples. They are good and working.