[ECOS] Simple serial program

Jonathan Larmour jlarmour@redhat.com
Tue Jun 12 11:01:00 GMT 2001


"Trenton D. Adams" wrote:
> 
> Once a program is complete, it is customary to write it to flash just
> like you do with RedBoot right?
> 
> If so, how to I get the serial.exe example that comes with the eCos
> installation to work?  I tried changing "/dev/haldiag" to "/dev/ttyS0",
> but it doesn't write to the serial port.  I have no clue how to write to
> the serial port, and the documentation doesn't seem to help very much.

You have to choose a serial port for your board. From the edb7xxx serial
driver configuration you should see that you can use /dev/ser1 or
/dev/ser2. Note that one of these will be your GDB connection, be warned.
You should use the other serial port instead to allow uninterrupted use of
GDB.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/



More information about the Ecos-discuss mailing list