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.

AM5728: Unable to compile cpintc_test.c

Part Number: AM5728

Hello,

I am attempting to test interrupts using the CSL (no OS) on a C66 core of an AM5728 using the example program given in the PDK (pdk_am57xx_1_0_17). I have created an empty CCS project and added the PDK search path to this and copied the two files (cpintc_test.c and test_lnk.cmd) from packages/ti/csl/example/cpintc into the project.

When I try to build this it tells me a number of symbols are undefined:

CSL_CGEM0_5_REG_BASE_ADDRESS_REGS

CSL_CP_INTC_0_REGS

CSL_CP_INTC_1_REGS

I can only find these defined in a C6657 specific file: packages/ti/csl/soc/c6657/src/cslr_device.h. The symbols do not appear to be defined anywhere in packages/ti/csl/soc/am572x but I can find this symbol defined in packages/ti/csl/soc/am572x/src/cslr_soc_dsp_baseaddress.h

CSL_DSP_DSP_ICFG_REGS

I think this is the equivalent of CSL_CGEM0_5_REG_BASE_ADDRESS_REGS? As far as I can tell, CSL_CP_INTC_0_REGS and CSL_CP_INTC_1_REGS have no equivalent in AM572x.

Can you confirm the steps I need to take to get the cpintc_test.c program to work on a C66 of the AM5728 device?

Thank you very much.

John Wilkes

  • Hi,

    When I try to build this it tells me a number of symbols are undefined:

    As you are creating a new CCS project, the paths are not properly referenced. Share your ccs project folder, will take look at it.

    You can also build this by writing your own makefiles to properly include all dependencies.

  • Hello Anubhav,

    Thank you for your reply. Yes, I was suspecting a missing path setting so that is why I was searching through the csl file structure looking for a file that had the missing #define. But the only place this pops up is in the cslr_device.h header for the C6657 SOC. I am using the AM5728 and I cannot find and reference to the missing symbol in the AM572x specific files. So I'm not sure how adding a path reference will help if there is no file to reference. I have attached a zipped up copy of my CCS workspace as you asked.

    Thanks again for your help.

    Regards,

    John Wilkes

     1212.interruptTest.zip