cancel
Showing results for 
Search instead for 
Did you mean: 

i am sanding data too my serial monitor to uart2 and uart to data transmit and received and transmit to uart6 and uart 6 received and and transmit back my serial monitor plz help i am working stm32f411vet6 microcontroler

kjosh.1
Associate II
 
17 REPLIES 17
kjosh.1
Associate II

i am conected tx and rx , PA2TX ,PA3RX FOR UART2 AND PC6 OR PC7 FOR UART6

kjosh.1
Associate II

muje seniar monitor(user enter any data) se uart2 per data bhejna hai aur uart to se data uart6 per bhejna hai aur uart6 se data vaps serial monitor ko bhejna hai mera bord stm32f411vet6 hai iska code btao plz

Create the code to initialize the two UARTs

Then in your main loop

Receive any pending content from UART2, and Transmit to UART6

Receive any pending content from UART6, and Transmit to UART2

To avoid data loss you might want to use a FIFO buffer to give you some elasticity

Not sure there's a lot of people here who want to do homework assignments

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

not working please give code

plz give code bacuse method not working i am tired

It's hard to fix code you don't show.

This is how I'd approach the example using a board I have to hand

https://github.com/cturvey/RandomNinjaChef/blob/main/f746g_disco_fwd.c

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

https://github.com/cturvey/RandomNinjaChef/blob/main/f411_usart_fwd.c

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

Check this post that I replied to. From PC>UART2>UART1 where UART1 is in loopback. Then UART1>UART2>PC

https://community.st.com/s/question/0D53W00002CeLaOSAV/cannot-receive-full-string-on-uart-receive-st32h745-disco-board

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.