AR# 51532

14.2 SDK Zynq- L2 cache function does not work.

描述

The following functions in the xl2cc_counter.c file do not work.

XL2cc_EventCtrReset();
XL2cc_EventCtrInit();
XL2cc_EventCtrStart();
XL2cc_EventCtrStop(&counter0,? &counter1);

解决方案

Those functions are missing the base addresses.

For example:

The following function only has offset address:

void XL2cc_EventCtrReset(void)
{
      *((volatile u32*)> XPS_L2CC_EVNT_CNTRL_OFFSET) = 0x6;
}
 
The base address of L2 Cache is 0xF0F8_2000.
Plus the base address to the OFFSET address which shows below.
 
void XL2cc_EventCtrReset(void)
{
      *((volatile u32*)0xf8f02000+XPS_L2CC_EVNT_CNTRL_OFFSET) = 0x6;
}
AR# 51532
日期 05/17/2018
状态 Active
Type 综合文章
器件
Tools