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: problems with hello ecos world


H Girard wrote:
> 
> Subject: Re: [ECOS] problems with hello ecos world
> 
> > > Have I missed something or is there an other way??
> >
> > Yes, you should make a *new* build directory and configure eCos for RAM
> > startup. Link you application against that library, not the one used for
> > RedBoot.
> >
> from the maps of the previous redboot build for rom , and the application
> build only for ram , it would appear that there would not be enough ram to
> hold  redboot executable , the ram it requires ,the application and its ram
> requirement. Using the flash to store & execute redboot & library creates a
> speed penalty but (on this particular board) there is plenty of flash
> compared to ram. If at all possible , i would prefer to use the flash
> ressource for execution of redboot(at least for small ram footprints).
> 
> Currently , i suspect that there are 2 possibilities to achieve this :
> 1-     include the names and addresses in the linker script for the
> references that are in flash (probably requires a script)
> 2-    use the -R filename option for the linker that links the application
> where the filename is the redboot build in flash (yet to get this working)

Better to program your application into Flash and directly run it from
there. You'll need to make a new memory layout for your startup type to be
like the ROM one, but with a different flash base address, to leave room
for redboot.

Note that part of the effect of this should be for the application not to
use any RedBoot services so that it can use RedBoot's RAM. So make sure
that CYGSEM_HAL_USE_ROM_MONITOR is unset.

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

-- 
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]