This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
eCos ROM application crashes without Redboot
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 11 Aug 2003 13:51:52 +0200
- Subject: [ECOS] eCos ROM application crashes without Redboot
I'm trying to build an eCos ROM application without
using Redboot. The crash appears to be related to
interrupts somehow:
- ecosconfig new eb40a default
- here I add flash and serial ports to the
configuration.
- ecosconfig tree
- make
My application opens /dev/ser0 and begins sending data.
After having sent ~2 bytes, it crashes. My theory is
that an interrupt happens and that interrupts are not set
up correctly.
However, if I:
- Create and write a Redboot image to flash
- Reset the CPU using my JTAG debugger
- Jump directly to my appliaction starting at 0x1020000.
The application runs fine.
Presumably a ROM appliaction uses Redboot somehow.
Øyvind
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss