Communication between two stm32 boards
Hello Everyone,
I'm reaching out for some guidance on a project that I've been working on. Despite considerable effort, I'm still struggling to find an effective solution.
My project involves developing a controller design to manage different models on each STM32 microcontroller. The goal is to synchronize these controllers. I have successfully built the models, and they are functioning well. The key task is for each board to transmit data to another board. This data is crucial for calculations, leading to the generation of new data. This process of data exchange needs to be continuous. The image below shows how the each stm32 work.

Here's the challenge: I'm having difficulties with the data transmission and reception between the boards. The data, which is in double format.
I would greatly appreciate any advice or suggestions on this matter, as I'm starting to run low on ideas.
Thank you in advance!
P.S. This is the code i am using for both boards. Just to check if i can transmit and receive at the same time.

