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]
Other format: [Raw text]

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


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