Receive data from COM port using Interrupts on STM32L475.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-28 11:15 AM
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?
- Labels:
-
Interrupt
-
STM32L4 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-28 11:20 AM
Posted examples to the forum.
Should be code examples under the HAL trees. Unpack CubeL4 archives or look in CubeMX repositories ​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-04 01:00 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-04 03:35 PM
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.​
Up vote any posts that you find helpful, it shows what's working..