[ECOS] Dealing with cache in flash drivers

Grant Edwards grante@visi.com
Tue Dec 2 23:17:00 GMT 2008


[I accidentally sent this in the patches list previously.]

I'm using the standard strata flash driver on an Altera NIOS2
platform, and everything worked fine until I enabled the data
cache in my processor configuration. Now none of the flash
routines work.

HAL_DCACHE_DISABLE() does nothing since there's no way to
disable the cache in the NIOS2 processor.  However, the cache
can be bypassed by setting bit 31 in the address used to access
the memory.

After browsing through the sources, it looks line one tells the
flash routines to do that by defining FLASH_P2V()?  If so, do I
do that in my strata.inl file for the target?

-- 
Grant Edwards                   grante             Yow! How many retured
                                  at               bricklayers from FLORIDA
                               visi.com            are out purchasing PENCIL
                                                   SHARPENERS right NOW??


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list