This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Problem with flash driver and cache
- From: Harley Carmo <hcarmo at msn dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 13 Jun 2011 17:01:06 -0300
- Subject: [ECOS] Problem with flash driver and cache
Hi all,
I'm having a problem with cache handling in the flash driver for a ARM920T processor. I'm trying to read the flash contents using cyg_flash_read(), but my application hangs up whenever the macro HAL_FLASH_CACHES_OFF is called. However the problem only happens if I read the flash after the eCos scheduler is started. When reading the flash contents in cyg_user_start() I have no problem.
I already tried disabling interrupts and reordering the macro (as suggested here: http://www.mail-archive.com/ecos-discuss@ecos.sourceware.org/msg01859.html) but it didn't work for me.
Does anybody have any ideas?
Thanks,
Harley
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss