This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]