cancel
Showing results for 
Search instead for 
Did you mean: 

STM32l476rc using multiple UART ports to send and recieve data.

btaso.1
Associate

Dear community,

I am working on a project, and I am running into problems with the use of 2 UART ports at the same time. I hope, that you can help me.

The project I am working on is a modular system of connected devices. The MCU of every device is STM32l476rc and it is placed on square PCB.

I need to forward the data which are incoming at USART2 to the UART3 .

Main reason why I want to do that is to send commands over UART which is connected to my MCU. The MCU is connected to PC.

PC --- STM32 --- Other Device

I am using CubeMX to configure the MCU and Keil uVision environment. For the UART comms I am using HAL drivers.

the problem that i don't recieve nothing when i send a command . please can someone fix with me the code .

this the code

0693W00000LwxlBQAR.png0693W00000LwxlBQAR.png

1 REPLY 1

Screen shots of small portions of code aren't helpful.

ZIP up the project, with a unique name, and attach as a file.

If you must post snippets, do so in a code window </> not as images.

For concurrent use, expect to use interrupt based code, not polling.

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