From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: jens.ohlund@secrc.abb.se Cc: ecos-discuss@sourceware.cygnus.com Subject: RE: [ECOS] Program -> start in Flash Date: Thu, 06 Jul 2000 03:41:00 -0000 Message-id: References: X-SW-Source: 2000-07/msg00055.html On 06-Jul-00 jens.ohlund@secrc.abb.se wrote: > Hi ! > > I want my program to reside in the flash and startup when the board is "powered up". > Where should I start reading about it or do I only have to turn the startup to ROM ? > > btw, it's a AEB-1 card. > ROM startup is more complicated on the AEB than on most other platforms. In general, you simply need to create an eCos image with ROM startup. Then you need to jump through some hoops to get it in a form which the AEB FLASH loader will use/accept. The best place to look at this is: .../hal/arm/aeb/VERSION/cdl/hal_arm_aeb.cdl This file contains the makefile magic to actually build a flash rom image. Look at the details for building GDB stubs in ROM. .../hal/arm/aeb/VERSION/src/gdb_module.c This file contains the flash image layout, as used by the ARM AEB flash loader.