2018-04-06 01:21 AM
Hello,
I use the Nucleo-L476RG to send and read data by the UART, so for that I used STM32CubeMx,
the goal is to send data in a Maximum of baudrate which is 10Mb/s as shown on the picture below, but the code is excuted only if the baudrate is less than 1Mb/s, otherwise I don't recieve any information in RX,
for information, I test sending information by a led, if it flashes, it means that it's OK otherwise, it is NOK,
I don't understand what's kind of problem is about!
Thanks
2018-04-06 03:06 AM
Hello,
how do you handle UART RX reception?
2018-04-06 05:10 AM
Hi, yes I tried many programs for RX(putty, ...) and I can show the message only if UART baudrate is less than 1Mb/s,
I think taht the problem is about TX and not RX,
2018-04-06 05:35 AM
Hello
mgorrab1993
,my question is how to you handle receive on STM32 side? Do you use interrupts, polling, DMA?
2018-04-06 06:44 AM
Hello,
It is a simple way, just I used the USART1 (TX and RX pins), without interrupts, polling, DMA...
The configuration in the picture below can help you, hope!
2018-04-06 08:53 AM
10 Mbps is awfully high for reliable USART communications. Also at higher/maximal rates the error in desired/achieved can be significant.
You might want to find an STM32 supporting a FIFO on the USART (L4+), and you definitely want to be using DMA for these types of rates. You will need to make sure to clear Framing and Noise Errors on the interface if you want to continue receiving data after these events occur.