This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

66AK2G12: Timer interrupt

Part Number: 66AK2G12

HI

I am using pdk_k2g_1_0_16 on windows host pc with K2Gx evaluation board. I have used timer APIs from C:\ti\pdk_k2g_1_0_16\packages\ti\csl\example\timer\timer_app\main_a15.c to use timer as general purpose timer and it should generate interrupt at every 1ms. Some undeclared variables error are coming for varibales, macros as listed below. Could you please tell in in which files I can locate these?

CSL_xbarIrqConfigure(CSL_XBAR_IRQ_CPU_ID_MPU,gXbarInst,CSL_XBAR_TIMER4_IRQ);       In this CSL_XBAR_IRQ_CPU_ID_MPU and CSL_XBAR_TIMER4_IRQ are undeclared 

/* Disconnect the XBar */
CSL_xbarIrqConfigure(CSL_XBAR_IRQ_CPU_ID_MPU,gXbarInst,gXbarInst);  In this CSL_XBAR_IRQ_CPU_ID_MPU is  undeclared

/* Load the counter with the initial count value */
TIMERCounterSet(SOC_TIMER4_BASE, TIMER_INITIAL_COUNT);

/* Load the load register with the reload count value */
TIMERReloadSet(SOC_TIMER4_BASE, TIMER_RLD_COUNT);

TIMER_INITIAL_COUNT & TIMER_RLD_COUNT are undeclared.

static void TimerPRCMConfigure(void)
{
HW_WR_REG32(SOC_L4PER_CM_CORE_BASE + CM_L4PER_TIMER4_CLKCTRL, 0x2);

while ((HW_RD_REG32(SOC_L4PER_CM_CORE_BASE +
CM_L4PER_TIMER4_CLKCTRL) & (0x00030000)) != 0x0) ;
}

SOC_L4PER_CM_CORE_BASE  & CM_L4PER_TIMER4_CLKCTRL are undeclared. I didn't find any L4 per registers in TRM.

static void DisableNMI(void)
{
uint32_t tmpRegVal;
tmpRegVal = HW_RD_REG32(SOC_CTRL_MODULE_CORE_CORE_REGISTERS_BASE +
CTRL_CORE_NMI_DESTINATION_2);
tmpRegVal &= 0xFFFFFF00;
HW_WR_REG32(SOC_CTRL_MODULE_CORE_CORE_REGISTERS_BASE +
CTRL_CORE_NMI_DESTINATION_2, tmpRegVal);

}

SOC_CTRL_MODULE_CORE_CORE_REGISTERS_BASE  & CTRL_CORE_NMI_DESTINATION_2 are undeclared.

In which file I will get the value of macros CSL_CGEM0_5_REG_BASE_ADDRESS_REGS & CSL_GEM_TINTLN ?

Is there any document where I can search for the path of any variable, macro, etc for any peripherals?

I have searched in file:///C:/ti/pdk_k2g_1_0_16/packages/ti/csl/docs/doxygen/html/index.html but I didn't get any information on above variables and macros.

Please tell me the path of above undeclared variables and macros.

Regards,

Gaurav