You said "So I followed the advice on the website". Which website would that be? Also, flushing the serial port isn't likely to do anything if the root cause is hardware. A search on these boards would have turned up numerous messages related to framing errors, as this is a frequently asked question. Bottom line: either your serial port configuration is incorrect, or you have a hardware problem like a bad cable, loose connection, noise on the line, or bad UARTs. Does the serial port connection work with Hyperterminal? What about MAX?