This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: 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 23:30:19 +0200
- Subject: [ECOS] RE: eCos ROM application crashes without Redboot
I haven't gotten any further in tracking down the problem,
but here is the workaround that I have for now.
Create a minimal eCos application that invokes the real
application:
- ecosconfig new eb40a minimum
- modify ecos.ecc to be a ROM app
- ecosconfig tree
- make
Create main.c as follows and link with above eCos:
int main(int argc, char **argv)
{
// jump to our real application
(((void (*)())0x1010000)();
for (;;);
}
- write this to flash @ 0x1000000.
- create an ecos configuration desired in the first place, e.g.
- ecosconfig new eb40a default
- modify ecos.ecc to be a ROM app
- ecosconfig tree
- modify the .h/.ldi files to have the app start @ 0x1010000.
- link this eCos configuration with your app and write to flash
@ 0x1010000.
Ø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