DSPRelated.com
Forums

C6711 cache - setup

Started by nguyenngockhangken July 22, 2002
Does anyone know how to set up c6711 cache?



In a message dated Mon, 22 Jul 2002 4:14:44 PM Eastern Standard Time,
writes:

> Does anyone know how to set up c6711 cache?

Setting up the cache must be done along with the SDRAM parameter configuration.
Since I am using TI's DSK for code development, I used the software example,
CnfDSP_nohost.c, under the
C:\ti\examples\dsk6711\board_util\conftest\cnfdsp_nohost directory to config the
SDRAM.
Then I added the following lines
*(unsigned volatile int *)L2CFG = 0x00000003; // 3 way cache, which you
can change to
*(unsigned volatile int *)MAR0 = 0x00000001;
*(unsigned volatile int *)MAR1 = 0x00000001;
*(unsigned volatile int *)MAR2 = 0x00000001;
*(unsigned volatile int *)MAR3 = 0x00000001;

Regards,
/Khalid