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.

TIDM-02002: TMS320F280049 - CLA and HRPWM Phase Shift

Part Number: TIDM-02002
Other Parts Discussed in Thread: C2000WARE

Hello,

There are two problems I am dealing with in this sample code.

  1. I am trying to use the main.syscfg gui to change some of the system configurations. By default, the code seems to be running on "C28x". However, when I switch to "CLA" instead, the code does not build regardless of which lab I am trying to build. 

    This is the error 

    "> Compilation failure
    subdir_rules.mk:9: recipe for target 'clllc_hal.obj' failed
    "../clllc_hal.c", line 1229: warning #225-D: function "GPIO_setMasterCore" declared implicitly
    "../clllc_hal.c", line 1434: warning #225-D: function "MemCfg_setLSRAMMasterSel" declared implicitly
    "../clllc_hal.c", line 1434: error #20: identifier "MEMCFG_LSRAMMASTER_CPU_CLA1" is undefined
    1 error detected in the compilation of "../clllc_hal.c".
    gmake: *** [clllc_hal.obj] Error 1

    "

  2. The second issue is related to "clllc_hal.c". The function "GPIO_setMasterCore" is not defined, and it seems that "GPIO_setControllerCore" is the right one to use. 

I am using CCS V12, and C2000Ware_DigitalPower_SDK_4.04.00.00

Thanks,

MK

  • Hello Mohamed,

    However, when I switch to "CLA" instead, the code does not build regardless of which lab I am trying to build. 
    The function "GPIO_setMasterCore" is not defined, and it seems that "GPIO_setControllerCore" is the right one to use. 

    These two questions are related. Essentially, there was a change to the C2000Ware driverlib functions to remove terms like 'master' and 'slave', and as such the functions have changed names. There should be backwards compatibility from my understanding for programs that were already in development, so I will forward this query to a software expert. Also as a note, for your error you need to replace the undefined macro with "MEMCFG_LSRAMCONTROLLER_CPU_CLA1", as this is what exists in the driverlib header file.

    Best regards,

    Omer Amir

  • Hello Mohamed,

    As Omer mentioned , there was a change in the naming convention to replace terms like "master" and "slave".  However there is a header file "driver_inclusive_terminology_mapping.h" provided for backward compatibility.  Pls check if the driverlib.h includes this file or not .

    If not, then you can add this line  "#include "driver_inclusive_terminology_mapping.h" to driverlib.h located in c2000ware\driverlib\f28004x\driverlib folder.

    Best Regards

    Siddharth

  • Thanks @Siddharth and @Omer