cancel
Showing results for 
Search instead for 
Did you mean: 

Receive data from COM port using Interrupts on STM32L475.

VKana
Associate II

I am trying to send data to com port from PC and receive it using interrupt on the MCU. Is there any examples or documentation that I can use as reference?

3 REPLIES 3

Posted examples to the forum.

Should be code examples under the HAL trees. Unpack CubeL4 archives or look in CubeMX repositories ​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
VKana
Associate II

Thank you. When I try to run the example,"UART_HyperTerminal_IT", I see that the RXCallback function is not being called. Could you explain if there is any reason behind that or if there is anything else that has to be enabled? I am using hercules as my terminal

Hard to say, primary reason would be not actually receiving anything.​

Check pin usage and configuration for the board. Clocks and AF mux settings.​

Check board level conflicts.

Output U characters in a loop, scope to check bit timing. Loop to RX externally.

Check for framing or noise errors in status register.

Don't view USART peripheral continuously in debugger, it will show TDR and clear SR RXNE.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..