Hello,
I'm working with two different STM32 microcontrollers:
- Sender: STM32F4CCUx
- Receiver: STM32F4VET6
I am sending a packet (which is a structure of size 4) from the sender to the receiver using UART, with both microcontrollers utilizing the UART callback function for transmission and reception.
Here is the process I’m following:
- The sender sends a packet using
HAL_UART_Transmit_IT
. - The receiver is configured with
HAL_UART_Receive_IT
. - Both microcontrollers handle data in their respective callback functions.
However, on the receiving side, the data is either jumbled or incorrect.
Details:
- The packet is a structured type with multiple fields.
- I’ve ensured that the baud rate and UART configurations match on both microcontrollers.
- The callback functions seem to be triggering correctly.