how to solve overrun problem in serial communication for coldfire-523x processor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to solve overrun problem in serial communication for coldfire-523x processor

607 Views
admin
Specialist II

Hello,

Iam working on m66k-523x(coldfire) processor, i am getting overrun problem at every 114th byte for receiving continuously, can u please suggest the solution.

 

Regards,

Raju B

Labels (1)
0 Kudos
Reply
1 Reply

413 Views
TomE
Specialist II

I assume you're polling the serial port. Fix your code to see what it is doing that stops it from getting back to the UART in time. You as a programmer have to guarantee the minimum service interval for the hardware.

Rewrite your code to use interrupts that receive into a ring buffer.

If you're already using interrupts, watch out for the priority levels. You may need to make the serial port interrupt higher than other interrupts that are taking too long.

Tom

0 Kudos
Reply