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.

Errors in using CSL

Hi 

I am trying to use CSL to disable L1 and L2 cache. As a first try, I built a sample program attached. 

Here is the compile commands  I am using (Although there are several unnecessary include paths)

cl6x -mv6600 --abi=eabi -o3 -I/evmk2h_nfs/usr/share/ti/openmpacc/dsp/include -I/opt/ti/c6000_7.6.0/include -I/opt/ti/ti-openmpacc_0.3.3/include -I/opt/ti/pdk_keystone2_3_00_04_18/packages dsp_cache.ops.c -o dsp_cache

But I got a long list of errors:

"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 86: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 121: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 163: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 210: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 247: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 282: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 317: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 352: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 387: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 426: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 463: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 506: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 543: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 586: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 624: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 667: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 718: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 764: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 815: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 862: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 914: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 957: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 992: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1027: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1062: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1097: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1136: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1185: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1231: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1268: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1309: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1344: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1377: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1410: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1449: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1499: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1545: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1595: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1641: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1690: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1738: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1775: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1820: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1857: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1902: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_cacheAux.h", line 1939: error: identifier "CSL_C66X_COREPAC_REG_BASE_ADDRESS_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 107: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 178: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 222: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 275: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 318: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 361: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 404: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 453: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 493: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 531: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 574: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 632: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 675: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 711: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 748: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 784: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 821: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 872: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 919: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_xmcAux.h", line 954: error: identifier "CSL_XMC_CFG_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 89: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 130: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 168: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 209: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 252: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 293: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 335: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 384: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 425: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 469: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 517: error: identifier "CSL_SEMAPHORE_REGS" is undefined
"/opt/ti/pdk_keystone2_3_00_04_18/packages/ti/csl/csl_semAux.h", line 568: error: identifier "CSL_SEMAPHORE_REGS" is undefined
78 errors detected in the compilation of "dsp_cache.ops.c".

Could you please show me some hints how to resolve this? And also, could you please give me more examples on how to disable the L1 and L2 using CSL?

Thanks

Cheng1106.dsp_cache.ops.c