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: Exception during flash programming


On Mon, 2002-09-23 at 09:53, N.Suresh wrote:
> Hi all,
> 
> Problem Statement:
> ------------------------
>     To have a "BootLoader" in a flash which downloads an executable and 
> programs that executable into the same flash at a different location.
> The "flash_erase" and "flash_program" routines (or for that matter any 
> flash driver routines) which are located in RAM returns which raises an 
> exception.
> 
> Options tried:
> ----------------
> 1. Compiled the driver function without -O2 compiler option.
> 2. Located the flash driver routines in flash itself. (.ie. commented 
> the section attribute specification)
> 
> Observation:
> ----------------
> 1.   Driver function is performing the action specified.
> 2.  With -O2 option, the __anonymizer function is reduced to a plain 
> "blr" instruction.
> 
> Any idea why an exception is raised when the driver function returns 
> from RAM to Flash location?

How are these questions related to eCos?  They seem to be generic
embedded programming questions.

As for how to do this - it already works in RedBoot.  Is there
some reason for recreating the wheel?

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


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