[ECOS] Serial comms

grahamlab graham.labdon@cranems.co.uk
Tue Apr 14 10:06:00 GMT 2009

Hello everyone
I am relatively new to eCos so please forgive me my questions seem naive.
I am developing software targeted at the STM3210e dev board and am trying to
get serial comms going between this board and a program running under ubuntu
via virtual box on my PC
I have a serial link between the PC and the dev kit (UART1) that uses ttyS0
to load the ecos program via gdb. This works, I can download and execute an
eCos program on the Dev board.
I have another serial link between my PC and the dev kit (UART2).
I have written 2 programs - one using eCos and one to run under ubuntu.
The eCos program opens the /dev/ser1 device and writes a string to that
device and awaits a reply.
The ubuntu opens /dev/ttyS1 and waits for a message and then writes back an

When these two programs are run I get the following results.

When the ecos program sends its data the ubuntu program receives alot of
data from the Redboot monitor and then the data from the ecos program. It
then blocks on the write. The ecos program has blocked on the read.

Why do I get data from the Redboot monitor and why do both programs block.

I have attached both programs 
http://www.nabble.com/file/p23036433/hello.cpp hello.cpp ,
http://www.nabble.com/file/p23036433/SerialTest.cpp SerialTest.cpp 

Thank you for your time

View this message in context: http://www.nabble.com/Serial-comms-tp23036433p23036433.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list