UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 51532

14.2 SDK Zynq- L2 cache function does not work.

Description

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

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

Solution

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
Date Created 01/15/2013
Last Updated 01/15/2013
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • ISE Design Suite - 14.2
Boards & Kits
  • Zynq-7000 All Programmable SoC Boards and Kits