This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Simple serial program
- To: "Trenton D. Adams" <tadams at extremeeng dot com>
- Subject: Re: [ECOS] Simple serial program
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 12 Jun 2001 19:01:12 +0100
- Cc: 'eCos' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000101c0f358$a3186350$090110ac@BURN>
"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/