Hi All,
I'm using a MK10FX512VLQ microcontroller for development. Firmware sends data packets to a Windows PC Application through UART. At a specific data packet which is of 9 bytes that is being sent from the firmware via UART to PC app, the data is getting corrupted with the last 3 bytes being overwritten to zero. When the Firmware sends the same data packet to Docklight, the data packet is sent intact without any corruption. But when the same data packet is sent to the PC App, the PC App is receiving a corrupted data. Have tried several methods to debug this issue. But couldn't find a solution. Please suggest solution.
Awaiting replies.
Thanks,
Krithika
已解决! 转到解答。
@kbhat ,
If the data is correct when you look at it in docklight, why wouldn't you assume the problem is in your PC application?
If I understand the flow correctly:
Is therre a checkbyte in your packet that ensures the data is correct (and generates the ack in the PC Software)?
myke
@kbhat ,
If the data is correct when you look at it in docklight, why wouldn't you assume the problem is in your PC application?
If I understand the flow correctly:
Is therre a checkbyte in your packet that ensures the data is correct (and generates the ack in the PC Software)?
myke
Hi Myke,
Thanks for the suggestion. The sequence of FW - PC App that you mentioned is correct. The issue was at the PC App. We added a small delay of 25ms at the serial port read method of the PC App & the issue got resolved.
Thanks for the support.
Regards,
Krithika