Posted on October 10, 2014 at 08:24
I'm upgrading to the new HAL libraries and got struck with UART interrupt when trying to implement ECHO,
I generated code using STMcubeMX for UART3
added in the msp init of the uart
HAL_NVIC_Set...
Posted on October 11, 2014 at 20:17
Mayla,
Thanks, As you said receive has to be called periodically in the main and not in callback. transmit has to be called in the receive callback .
final code looks like this in main.
while ...
Posted on October 10, 2014 at 14:38Mayla , Thanks for the quick reply. I saw that example and it works. But you need to wait till the USART reception is complete . In the example there is while (UartReady != SET){} which waits for all the usart ...