Hi,
I used the evmDM642 to do some tests of video,I have some questions about the DM642 cache setting. In the reverse.pjt project provided by TI,there are have some
statements that I can't understand,I list in the below:
CACHE_setL2Mode(CACHE_256KCACHE);
CACHE_enableCaching(CACHE_EMIFA_CE00);
CACHE_enableCaching(CACHE_EMIFA_CE01);
My question is: CACHE_setL2Mode(CACHE_256KCACHE); this statement means that all of the space of DM642 L2 is setting the cache,but
#pragma DATA_SECTION(nMemTemp, ".INTPROCBUFF");
#pragma DATA_ALIGN(nMemTemp,128);
the nMemTemp is allocated to L2, In this case ,the L2 is used as SRAM,As we known,the L2 has been set to CACHE.
I check the address of nMemTemp,it is allocate in 0x0000000,in the L2.
So Why this memory is set to cache that can be use as a ram?
Another question:
CACHE_enableCaching(CACHE_EMIFA_CE00);
CACHE_enableCaching(CACHE_EMIFA_CE01);
That means keep the sapce of CE0 cacheable in L2? Or,cache the sapce of CE0 and CE1?
Thank you very much!