2026-03-10 11:25 PM - last edited on 2026-03-11 5:14 AM by Andrew Neil
I am using stm32f407 and stm32wb series for sending the data usimg uart.
first i send th data using the stm32wb uart to the stm32f407 uart the data is correctly sent.
After receiving the data i will return the data back to the stm32wb from the stm32f407 but this time the data is corrupted.
I am using the hal_uart_receiveto_idle and hal_uart_transmit_it to send and receive the data.
I will share the code please review and tell me if i need to make any changes.
2026-03-11 5:11 AM
Hello @TejasK
Did you connect the GND between the two board?
2026-03-11 5:18 AM
Yes @Saket_Om i have checked the connections one more time gnd is connected between the 2 boards. then what may be the other issue.
2026-03-11 5:20 AM
You haven't told us what board(s) you are using.
Please see: How to write your question to maximize your chances to find a solution
@TejasK wrote:After receiving the data i will return the data back to the stm32wb from the stm32f407 but this time the data is corrupted.
How, exactly, is it "corrupted" ?
Have you used an oscilloscope and/or logic analyser to see what's happening on the wires?
Have you tested & verified the stm32wb and stm32f407 separately?
Tips on debugging serial comms.
2026-03-11 6:24 AM
Don't call these while a transfer is in progress.
2026-03-12 5:08 AM
I have removed these in the code.
2026-03-12 5:25 AM
And what was the result?
You still haven't answered:
Please see: How to write your question to maximize your chances to find a solution - the better the information you supply, the more likely you are to get a good & quick solution
2026-03-16 3:55 AM
2026-03-16 4:04 AM
@TejasK wrote:2. The values received from the gateway side is corrupted.
That doesn't answer the question, "How, exactly, is it 'corrupted'?"
Again, Have you used an oscilloscope and/or logic analyser to see what's happening on the wires?
2026-03-16 4:16 AM