This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Replies: 23
Views: 2189
I am programming a MSP430F5508 chip and using it for Timer interrupts and then finally sending the processed data in an Array of 130 bytes through the UART.
The first 128 bytes are acccurately transmitted but the two bytes after are corrupted. They can be read properly in IAR when I debug the chip through it. However the transmission is failing. Is it an overrun error? What is it? How to rectify it?
In reply to Dennis Eichmann:
In reply to Hardik Katyarmal:
Dennis Eichmann... Hi thanks for the support!
I solved this problem. It was a char, I had allotted just two bytes to store the size of the data - which after 128 overflows and gives data size = 00 or 01 or 02
However now I am facing another problem. I further increased that index. Now the UART transmission throws some 2 extra bytes of garbage data after all data I have allotted to the UART Buffer.
What can this be because of ?
<Code>