This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Exception during flash programming
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>,ecos-discuss-help <ecos-discuss-help at sources dot redhat dot com>
- Date: 23 Sep 2002 10:04:50 -0600
- Subject: Re: [ECOS] Exception during flash programming
- References: <3D8F3909.1030500@cdotb.ernet.in>
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