This is the mail archive of the ecos-discuss@sourceware.org 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]

Re: Need uncached memory for USB - Redboot IXP435


mukund jampala wrote:

> So, I resolved to start using the flush/invalidate MACROS.
> HAL_DCACHE_FLUSH / HAL_DCACHE_INVALIDATE.
> But it does not work some how? Strangely, it does not flush the
> buffers completely.

Are the cache sizes set properly in the HAL configuration?

I had a similar issue (gdb breakpoints not seen by the processor)
and the problem was that the ICACHE size was set to zero,
causing the macros not to do anything.

Does anything change if you flush the whole cache and not
only the address/size region? Maybe the macros are flawed somehow.

> The same code works perfectly if I disable the CACHING by placing the
> following code in hal_hardware_init(void).

Another idea: are you 100% sure this is a cache issue?
Disabling the caches also changes timings, sometimes
dramatically.


-- 
                                    Stano

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


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