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 22:49:44 +0100
- Cc: 'eCos' <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <001701c0f388$4b5530f0$090110ac@BURN>
"Trenton D. Adams" wrote:
>
> Ok, I enabled ROM support in the eCos kernel and recompiled it. I
> assume this is what I was supposed to do.
>
> I then recompiled and linked the serial.c example, and stripped it. I
> then proceeded to download it to the board. It still doesn't write to
> the serial port. Anything else I'm missing?
You need to convert it to binary format, not strip it. Do this with
arm-elf-objcopy -O binary serial.exe serial.sre
Also when rebuilding the eCos kernel, I'd advise doing this in a new build
directory.
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/