This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Simple serial program
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] Simple serial program
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Tue, 12 Jun 2001 15:54:26 -0600
- Cc: "'eCos'" <ecos-discuss at sources dot redhat dot com>
- Organization: Extreme Engineering
Yes, I've got two builds with everything the same except one is RAM, and
the other ROM.
Thanks Jonathan, I'll try the conversion once I get things working
again. Right now it's not even working with GDB again because I messed
with some header files directly in the kernel source. BAD idea if you
don't mark it down somewhere.
-----Original Message-----
From: jlarmour@cambridge.redhat.com
[mailto:jlarmour@cambridge.redhat.com] On Behalf Of Jonathan Larmour
Sent: Tuesday, June 12, 2001 3:50 PM
To: Trenton D. Adams
Cc: 'eCos'
Subject: Re: [ECOS] Simple serial program
"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/