Lost UART First Byte on Reception
Hello All ,
I am using UART6 of STM32H7 series MCU for reception of 9 Byte data . UART is losing first byte when receiving data on UART using interrupt.
Setup:
1. I am using full duplex RS485 (Modbus)
2. I have 2 MAX485 IC one for reception & another one for Transmission.
3. Data I am sending : Take for second Reception Image: 02 00 35 01 00 01 00 03 3C
when I do hit RxCpltCallback function in debugger I have observed that I am losing first byte of frame.
I have added two Snaps of Data reception. we can see the first byte is getting filled with 0 after that we are receiving data and at the end we are losing 9th byte.
do you think there is some issue with UART configuration ?
What could be the possible solution for this ?
Thanks & Regards,
Devendra Mishra


STM32Cube Mx Setting :




