Hi,
I in the process of enabling the unicache that is shared by the video and display M3s on DM8168. Once I enable cache I am unable to load code as my code hangs in the enable cache routine before it hits main. So I am not sure whether I am missing step in enabling a cache or whether I am doing something else wrong.
Note:
- I do not use syslink so can't use any syslink libraries to initialize and manage cache.
- I don't use CCS to compile my code but rather just makefiles along with the .cfg and .bld files.
- I only enable ducati unicache and NOT the ducati MMU.
Here is what I am doing to enable cache
- Added the following in my .cfg file
- xdc.useModule('ti.sysbios.hal.Cache');
- var Cache = xdc.useModule('ti.sysbios.hal.unicache.Cache');
- Cache.enableCache = true;
- Explicitly used functions Cache_inv(...) and Cache_wbInv(...) in my code whenever necessary.
- I am missing a step in enabling cache?
- From the screen shot can you tell why the code is hanging?
- I just need cache and do not need the MMU. That's why I did not enable or configure the MMU. This is possible correct?