Reading from UART fails

Hiya,

Can you output the response value of ‘read_ret’ in you code at this line:

TRACE ((7,"read failed"));

Also, the open UART stuff is event driven - so you need to set up the event handlers etc as per the sample in Dev Studio. You may be getting the error because there is nothing in the buffer to read.

The documentation for OpenUART is a bit sparse and cryptic unfortunately, but I recommend that you go through the example code provided and see how they’re doing the event handling.

ciao, Dave

p.s. Please use the CODE tags to mark-up your example code - it makes it a lot easier for the rest of us to read.