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.

CCS/TMDSLCDK138: MCASP on OMAPL-138

Part Number: TMDSLCDK138
Other Parts Discussed in Thread: OMAPL138, MATHLIB

Tool/software: Code Composer Studio

OMAP L-138, CCS 7.4.0.00015

In my app.cfg I have:

var McASP = xdc.loadPackage('ti.drv.mcasp');
McASP.Settings.socType = "omapl138";

In my .c file I have:

#include <ti/drv/mcasp/mcasp_drv.h>
#include <ti/drv/mcasp/soc/mcasp_soc.h>

But I get an error

#1965 cannot open source file "mcasp_types.h" .ccsproject /myproject line 93, external location: C:\ti\pdk_omapl138_1_0_4\packages\ti\drv\mcasp\soc\mcasp_soc.h C/C++ Problem

So I tried adding this to my include path

${TI_PDK_INSTALL_DIR}/packages/ti/drv/mcasp

which now gives me:

#20 identifier "CSL_AdataRegs" is undefined .ccsproject /myproject line 131, external location: C:\ti\pdk_omapl138_1_0_4\packages\ti\drv\mcasp\soc\mcasp_soc.h C/C++ Problem
#20 identifier "CSL_AfifoRegs" is undefined .ccsproject /myproject line 128, external location: C:\ti\pdk_omapl138_1_0_4\packages\ti\drv\mcasp\soc\mcasp_soc.h C/C++ Problem
#20 identifier "CSL_McaspRegs" is undefined .ccsproject /myproject line 125, external location: C:\ti\pdk_omapl138_1_0_4\packages\ti\drv\mcasp\soc\mcasp_soc.h C/C++ Problem
#35 #error directive: "Unsupported SOC !! " .ccsproject /myproject line 188, external location: C:\ti\pdk_omapl138_1_0_4\packages\ti\drv\mcasp\soc\mcasp_soc.h C/C++ Problem

but I definately see the socType in the app.cfg

What am I doing wrong?  Is there a working example project I can look at?

Here's some other stuff you guys always ask me:

bios_6_52_00_12/ dsplib_c674x_3_4_0_0/ mathlib_c674x_3_1_2_1/ processor_sdk_rtos_omapl138_4_03_00_05/ uia_2_21_02_07/ xdctools_3_50_04_43_core/
ccsv7/ edma3_lld_2_12_05_30C/ mathlib_rts_c674x_3_1_2_1/ ti-cgt-arm_16.9.3.LTS/ xdais_7_24_00_04/ xdctools_3_50_05_12_core/
cg_xml/ ipc_3_47_01_00/ ndk_2_26_00_08/ ti-cgt-c6000_8.2.2/ xdctools_3_32_02_25_core/ zips/
'Code Composer Studio 7.4.0.lnk'* mathlib_c674x_3_1_1_0/ pdk_omapl138_1_0_4/ tirex-product-tree/ xdctools_3_50_03_33_core/

  • Hi,

    I've notified the RTOS team. They will post their feedback directly here.

    Best Regards,
    Yordan
  • Hi Adam,

    You most likely need to add "SOC_OMAPL138" and "LCDK_OMAPL138" to the Predefined Symbols list in the compiler options along with some other include paths.

    We have a McASP Audio example project that you can look at to see what you're missing. It needs to be built using the pdkProjectCreate script.

    Run the following commands from the pdk/packages directory:
    > pdksetupenv.bat
    > pdkProjectCreate.bat OMAPL138 lcdkOMAPL138 little mcasp all arm