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]

Exception during flash programming


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]