Tool/software: Code Composer Studio
I have a CCS project building and running on an M4 in the SOC AM571x part.
This is the first time I am trying to use the CSL library in my code.
What I am trying to do is configure the Crossbar to cause an interrupt on the M4 when the A15 performs an operation.
I included the path for the CSL library -i"C:/ti/pdk_am57xx_1_0_3/packages/ti/csl/lib/am571x/m4/release" and the library itself -lti.csl.aem4. See below.
I also included in my code where I am calling the function CSL_xbarIrqConfigure the include file #include <ti/csl/soc/am571x/src/csl_device_xbar.h>
However, I still continue to get the compilation error that CSL_xbarIrqConfigure is undefined. I am assuming this function is part of the CSL library as I can see this function in ti/csl/soc/am571x/src/csl_device_xbar.c.
'Building target: spc.out'
'Invoking: ARM Linker'
"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv7M4 --code_state=16 -me -O1 -g --define=Q_SPY --define=SPC --define=am5718 --define=ipu1 --define=core0 --diag_wrap=off --diag_warning=225 --display_error_number -z -m"spc.map" --stack_size=0x800 --heap_size=0x800 -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/lib" -i"C:/ti/pdk_am57xx_1_0_3/packages/ti/csl/lib/am571x/m4/release" -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --reread_libs --define=Q_SPY --define=CORE1=1 --define=IPU0=1 --define=MMU=1 --diag_wrap=off --warn_sections --display_error_number --xml_link_info="spc_linkInfo.xml" --rom_model -o "spc.out" "./Config/Sage_AM571x_IPU0_M4_VPD/package/package_Sage_AM571x_IPU0_M4_VPD.obj" "./Shared/common/src/CSharedMemory.obj" "./Shared/common/src/DebugLog.obj" "./Shared/gen/src/ABaseActor.obj" "./Shared/gen/src/AMailbox.obj" "./Shared/gen/src/CMailboxHw.obj" "./Shared/gen/src/EMailboxMessage.obj" "./Shared/qp/include/qstamp.obj" "./Shared/qp/qspy/qspy.obj" "./Shared/qp/source/qep_hsm.obj" "./Shared/qp/source/qep_msm.obj" "./Shared/qp/source/qf_act.obj" "./Shared/qp/source/qf_actq.obj" "./Shared/qp/source/qf_defer.obj" "./Shared/qp/source/qf_dyn.obj" "./Shared/qp/source/qf_mem.obj" "./Shared/qp/source/qf_ps.obj" "./Shared/qp/source/qf_qact.obj" "./Shared/qp/source/qf_qeq.obj" "./Shared/qp/source/qf_qmact.obj" "./Shared/qp/source/qf_time.obj" "./Shared/qp/source/qs.obj" "./Shared/qp/source/qs_64bit.obj" "./Shared/qp/source/qs_fp.obj" "./Shared/qp/tirtos/qf_port.obj" "./control/main.obj" "./driver/CHwiOmapMailbox.obj" "./driver/CMailboxOmap.obj" "./driver/vpsdrv.obj" "./driver/vpshal_vipPort.obj" "./driver/vpshal_vipTop.obj" "./driver/vpshal_vpdma.obj" "./driver/vpshal_vpeTop.obj" "./gen/ABackShell.obj" "./gen/AMain.obj" "./gen/ASpin.obj" "./gen/ATaskOne.obj" "./gen/AVideo.obj" "./hwi/HwiSpi.obj" -l"configPkg/linker.cmd" -llibc.a -lti.csl.aem4
<Linking>
undefined first referenced
symbol in file
--------- ----------------
CSL_xbarIrqConfigure(CSL_XbarIrqCpuId, unsigned int, CSL_XbarIrq) ./driver/CHwiOmapMailbox.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "spc.out" not built
>> Compilation failure
makefile:205: recipe for target 'spc.out' failed
gmake[1]: *** [spc.out] Error 1
makefile:197: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
Any help on this matter would be greatly appreciated.