Skip to main content
NASOK.1
Associate II
March 24, 2023
Question

how to establish Communication between two stm32 board using uart.?

  • March 24, 2023
  • 2 replies
  • 1064 views

I'm using two stm32 board, one is stm32wb55-dk which is main board and another is stm32c011 which acts as companion board.I need to establish communication between both using uart to send from main board to companion.

connected tx of wb to rx of c0 and vice versa

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 24, 2023

Use a common ground, switch the RX / TX over, so TX-A goes to RX-B

Standard HAL_UART_Transmit() HAL_UART_Receive() should work.

Come up with a protocol you want to use.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Foued_KH
ST Employee
March 27, 2023

Hello @NASOK.1​ ,

I recommend you follow this wiki : Getting started with UART - stm32mcu.

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.