[ECOS] Simple serial program
Trenton D. Adams
tadams@extremeeng.com
Tue Jun 12 11:35:00 GMT 2001
What is /dev/ser0 then? Is it not really a serial port, or is it just
the first serial port and the same as /dev/ser1?
-----Original Message-----
From: jlarmour@cambridge.redhat.com
[ mailto:jlarmour@cambridge.redhat.com ] On Behalf Of Jonathan Larmour
Sent: Tuesday, June 12, 2001 12:01 PM
To: Trenton D. Adams
Cc: 'eCos'
Subject: Re: [ECOS] Simple serial program
"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