[ECOS] rename CYG_HAL_STARTUP_RAM to CYG_HAL_STARTUP_REDBOOTRAM

Gary Thomas gary@mlbassoc.com
Fri Oct 12 09:38:00 GMT 2007


Jürgen Lambrecht wrote:
> Hello,
> 
> In my view the CYG_HAL_STARTUP_RAM startup mode does not say what it
> really is, in reality it is  CYG_HAL_STARTUP_REDBOOTRAM: a RAM mode ecos
> does not initialize the virtual vector table because it supposes that
> RedBoot has done that. Indeed, when debugging with RedBoot, you want to
> define with RedBoot to where the (diag_)printf is sent to, and when
> loading a RAM image in RedBoot, that should not be changed.
> 
> But we use a JTAG debugger, that directly loads the image into RAM.
> Therefore, the virtual vector table is not initialized, and the
> (diag_)printf statements do not work and let the SW crash.
> The best thing would be to add a new startup mode to ecos:
> CYG_HAL_STARTUP_RAM next to the existing (renamed)
> CYG_HAL_STARTUP_REDBOOTRAM.
> What do you think?
> 
> For the moment, to be able to work with the JTAG debugger, I do it with
> a trick:
> - I use the CYG_HAL_STARTUP_ROMRAM startup mode, because the linker
> files (.ldi) are to good ones
> - but in my hal_platform_setup, I removed the copy code from ROM to RAM.
> This works.

You don't mention what platform/architecture this is for.

The default configurations are normally set up for a RedBoot environment.
If you have a target where this is not the case, then you should indeed
configure eCos appropriately.  There are CDL options which cover all
of the necessary settings and could easily be forced/defaulted for
your target.

For PowerPC targets, I use the attached settings
  (ecosconfig import ppc_stand_alone.ecm)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc_stand_alone.ecm
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20071012/70486171/attachment.ksh>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list