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.

RTOS/OMAP-L138: Program compilation error in ccs7

Part Number: OMAP-L138
Other Parts Discussed in Thread: OMAPL138, SYSBIOS

Tool/software: TI-RTOS

Dear All,

I am facing this error when compiling the project

Description Resource Path Location Type
#258 invalid redeclaration of type name "Int8" (declared at line 242 of "C:/ti/xdctools_3_50_01_12_core/packages/xdc/std.h") .ccsproject /Bios_led line 100, external location: C:\ti\pdk_OMAPL138_1_01_00_02\packages\ti\csl\tistdtypes.h C/C++ Problem
declaration is incompatible with "xdc_Ptr ti_sysbios_BIOS_RtsGateProxy_Proxy__delegate__S(void)" (declared at line 244 of "C:/ti/bios_6_46_05_55/packages/ti/sysbios/package/BIOS_RtsGateProxy.h") .xdchelp /Bios_led line 8557 C/C++ Problem
gmake: *** [build-1482352945] Error 2 Bios_led C/C++ Problem
gmake: *** [main.obj] Error 1 Bios_led C/C++ Problem
gmake: Target 'all' not remade because of errors. Bios_led C/C++ Problem
gmake[1]: *** [build-1482352945-inproc] Error 1 Bios_led C/C++ Problem

Regards,

Ashish

  • Hi Ashish,

    I've forwarded this to the SW experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Ashish,

    Please note XDCtools 3.50 is shipped with CCSv7 however with the BIOS and PDK version that you are using, you need to use XDCtools 3.32 that ships with the SDK. Please correct this in the project or regenerate the project with these settings.

    When you build TI RTOS project, you don`t need to define tistdtypes.h as these defines will be pulled in by the XDC\std.h. Can you remove that define and try again. Is this a TI provided project or a project you are trying to build ?

    Regards,
    Rahul
  • Dear Rahul,

    No it's not working and now it shows 

    Description Resource Path Location Type
    #258 invalid redeclaration of type name "Int8" (declared at line 238 of "C:/ti/xdctools_3_32_01_22_core/packages/xdc/std.h") .ccsproject /Bios_led line 100, external location: C:\ti\pdk_OMAPL138_1_01_00_02\packages\ti\csl\tistdtypes.h C/C++ Problem

    I am very new to this processor so can you please share me the link of existing sample TI-RTOS projects for ccs7 regarding spi, ethernet, i2c and uart for LCDKOMAPL138 board

    Regards,

    Ashish

  • Processor SDK RTOS comes with example projects for this platform. The CCS projects need to be generated using pdkProjectCreate script that you see in path  pdk_omapl138_1_0_1\packages:

    The instructions to create the projects is provided in SOftware USer guide:

    Getting Started Guide -> PDK Project Creation 

    Ensure that you follow the steps in getting started guide before performing the following steps.

    Critical step is to discover Processor SDK RTOS components in CCS as described in CCS Setup with Processor SDK -> Discovering_SDK_products 

    Basically here is the summary of steps:

    • set SDK_INSTALL_PATH = <root directory where SDK is installed>
    • set TOOLS_INSTALL_PATH = <root where CCS is installed> Eg if CCS is installed in C:\ti\ccsv7   --> set TOOLS_INSTALL_PATH= C:\ti
    • cd C:\ti\processor_sdk_rtos_omapl138_4_00_00_04
    • setupenv.bat
    • cd ..\pdk_omaplxx_xx_xx_xx\packages
    • pdkProjectCreate.bat OMAPL138 all little <module> dsp 

    For spi, uart, i2c and ethernet the commands will be 

    • pdkProjectCreate.bat OMAPL138 all little spi dsp 
    • pdkProjectCreate.bat OMAPL138 all little uart dsp 
    • pdkProjectCreate.bat OMAPL138 all little i2c dsp 
    • pdkProjectCreate.bat OMAPL138 all little nimu dsp 

    This will generate MyExamplesProjects folder at   pdk_omapl138_1_0_1\packages: and will contain the example projects that can be imported into CCS and run.

    I recommend that you use the frequently asked questions resource to find any questions.

    In general if you are new to TI RTOS, here are some great training and examples:

    https://training.ti.com/ti-rtos-workshop-series 

    http://processors.wiki.ti.com/index.php/Processor_SDK_RTOS_Examples 

    Regards,

    Rahul