cancel
Showing results for 
Search instead for 
Did you mean: 

communication between nucleo-f411re and nucleo-h753zi board using U(S)ART

suhfi
Senior

Hi! I am trying to do a simple communication between nucleo-f411re and nucleo-h753zi board using uart communication. but i am unable to set it up. Is it possible?  If yes, what is the easy way to do that. How the connections and wiring look like? 

6 REPLIES 6
mfgkw
Senior II

Hi suhfi,

 

this should possible.

Assuming the boards are  not far from each other lines can be connected directly and need no level shifting to RS232.

Then the roadmap looks like:

- choose a free U(S)ART on the F411

- same on H753.

- connect GND between both

- connect the choosen RX from F411 with the choosen TX from H753.

- connect the choosen TX from F411 with the choosen RX from H753.

- create a project for the F411

- create a project for the H753

- In both projects configure the choosen U(S)ART with the same baud rate, data length and parity with no handshake

- write your app for the F411 to send something and your app on the H753 receives it, or vice versa

- debug..., if it does not work an oscilloscope would be helpful

If it works can be determined with the debugger on the receiving side, or you watch progress with a LCD or an additional serial output to a PC, e.g. VCP via ST-Link.

 

 

I have tried it already. And couldn't get the solution for communication. 

I am attaching both project files. once check and let me know, for any mistakes.

TDK
Super User

There are existing board to board examples using UART, I2C and SPI. I would recommend UART. Try getting those working.

 

If you feel a post has answered your question, please click "Accept as Solution".

I couldn't find much examples on board to board communication through UART, I2C, SPI. But I could find examples with CAN communication, USB CDC device and host. Could you attach examples for my reference. 

Hello @suhfi , 

You can find UART examples for the NUCLEO-H743ZI board on GitHub. These include three distinct demonstrations of UART transmission between two boards, implemented via DMA mode, polling mode, and interrupt mode. Feel free to select the example that best suits your requirements.

Please make sure to carefully follow the instructions in the README file, as it provides useful guidance that should help resolve your issue.

Note: All projects located under Projects\NUCLEO-H743ZI are fully compatible with the NUCLEO-H753ZI board.

Br

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.
suhfi
Senior

I have seen the example code which you have mentioned. I have done the similar process. Attached the files using nucleo-f411re and nucleo-h753zi boards. What is happening with the set of code is:
When connected F4 to PC, serial monitor it is working fine used UART1.

When connected H7 to PC, serial monitor it is working fine used UART2.

But both are connected, Tx-rx, Rx-tx, gnd-gnd. There is no communication happening.

why it is working individually, but not with nucleo-nucleo board communication.

The power of Both the boards are given as Usb cable to CN1 from pc. And for the communication, it is given as uart ports. If there is any wrong with the connections, let me know. Any debugging techniques?