This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
EB40a flash programming/erase and interrupts crashes
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: "'eCos Discussion'" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 12 Aug 2003 13:35:02 +0200
- Subject: [ECOS] 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