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.

TMS320F28388D: Base Projects with Driverlib and Bitfield Support For All CPUS

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi,

I want to develop a project by using all cpus and want to use bitfield and driverlib functions together. I don't see any example project for that. There is CPU1 and CPU2 empty projects for driverlib but there is not for driverlib. I also want to add CM too. Could someone suggest me something ?

  • Hi,

    There is an empty project which includes both bitfield and driverlib support.

    C:\ti\c2000\C2000Ware_4_01_00_00\device_support\f2838x\examples\cpu1\empty_projects\CCS\empty_bitfield_driverlib.projectspec

    But this is a single core project To create a similar CPU2 project, you can update the linker cmd file and the predefined symbol ("CPU1" is defined as predefined symbol, remove this and add 'CPU2")

    On the CM side, we only have driverlib support. Bitfield headers are not available. You can use an empty project from the cm driverlib examples folder

    Regards,

    Veena

  • I want to ask related question here. I have added f2838x_globalvariabledefs.c file to CPU2 project. There are some macros for CPU1 as below.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    #ifdef CPU1
    //----------------------------------------
    #ifdef __cplusplus
    #pragma DATA_SECTION("GpioCtrlRegsFile")
    #else
    #pragma DATA_SECTION(GpioCtrlRegs,"GpioCtrlRegsFile");
    #endif
    volatile struct GPIO_CTRL_REGS GpioCtrlRegs;
    #endif // ifdef CPU1
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I can't use GpioCtrlRegs because it is CPU2 project. Does that mean I can't use GpioCtrlRegs with CPU2 or "2838x_globalvariabledefs.c" file was created for CPU1 spesifically ?

  • Hi,

    The 2838x_globalvariabledefs.c file is common for CPU1 and CPU2. That is the reason we use #ifdef CPU1 with those pieces of code which is only applicable to CPU1. In this case, yes, you cannot use GpioCtrlRegs from CPu2. They are only accessible from CPU1.

    Regards,

    Veena