This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Exception during flash programming
- From: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>, ecos-discuss-help<ecos-discuss-help at sources dot redhat dot com>
- Date: Mon, 23 Sep 2002 21:23:45 +0530
- Subject: [ECOS] Exception during flash programming
- Organization: C-DoT
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?
thanx in advance,
regards.
--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore. =
= Call me at : OFF: 2383951(Dir) / 2263399 (268) RES: 3334248 =
= Alternate email : nsur_mys@rediffmail.com =
= QOT: True happiness will be found only in true love.
!============================================================================!
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss