Using to two stm32H7A3ZI-Q to transmit and receive
I am using two stm32H7A3ZI-Q board to transmit and receive data (which is a double).
I am using HAL_UART_Tramsit and HAL_UART_Receive_IT to send and receive the data.
When i connect Tx to Rx on the same board, it sends and receives data fine. The image below, is showing that both boards are working when Tx is connected to Rx on the same board.

When connecting the Tx of board 1 to Rx of board 2 and Tx of board 2 to Rx of board 1 it stops working and it receives nan (Not a Number). The image below is showing this.

I dont think it has anything to do with my calculations because when i send a integer is still happens.
Thank you for your help.
This is how i am sending and receive data

