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]

EB40a flash programming/erase and interrupts crashes


My application programs/erases flash(e.g. via jffs2) while
interrupts are running. 

However, as soon it receives an interrupt during flash
program/erase it crashes.

In examinging the code/debugging/search, I find nothing
in the EB40a/AT91 code that stops interrupts during flash
programming/erase, or makes sure that interrupts are turned
off.

When I add a cyg_interrupt_disable()/enable() around my
flash programming/erase, the crashes go away as expected.


Startup type==ROM.

Øyvind


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