TMS320F28377D-EP: Clock Tree

Part Number: TMS320F28377D-EP
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hi,

I am new to sysconfig on CCS.
I am getting the following two warnings in the configuration.
I have a question about it.
 How do I add the 'Device Support' module and where is the 'Device Support' module?

WARNINGS
CPU1:Clock Tree
Add the 'Device Support' module in order to use Clock Tree tool and generate device support files.This suggestion can be ignored if not using Clock Tree tool.
CPU2:Clock Tree
Add the 'Device Support' module in order to use Clock Tree tool and generate device support files.This suggestion can be ignored if not using Clock Tree tool.

Any advice or suggestions would be greatly appreciated. Thank you.

  • Hi,

    You can find the Device Support module in the sys config gui.

    Just click on the .syscfg file in your project to launch the GUI and add the device support module. Make sure to exclude the duplicate device.c and device.h files which might already exist in your project to avoid compilation errors.

    Thanks,

    Ira

  • Hi, 

    Thank you for your answer.

    I checked the sys config gui and the device support module was already added.

    I have some additional questions.

    ・Why did I get Clock Tree Warnings?

    ・What are the duplicate device.c and device.h files?

     Do you mean device.c and device.h in  Projec>device >   ?

    How do I exclude device.c and device.h?

      ( I can right-click on device.c and "exclude from Build,"  but I don't know how to exclude device.h.)

    Thank you and best regards,

  • Hi Kasai,

    If device support is already added to the sys config, you can include the warnings as stated in their text. They appear because SysConfig checks each CPU core independently, and the detection doesn't always register correctly across both CPU1 and CPU2.

    When you add the Device Support module in SysConfig, it auto-generates its own device.c and device.h in the Debug/syscfg/ output folder. Your project also has a pre-existing device/ folder (from C2000Ware) containing its own device.c and device.h. Having both causes symbol redefinition errors like #10234-D: redefined during the build.

    Exclude the entire device/ folder from your build — not individual files:

    • In CCS Project Explorer, right-click the device/ folder
    • Select "Exclude from Build"
    • The folder icon will gray out with a slash through it 

    This resolves both device.c and device.h conflicts in one step.

    Header files (.h) aren't compiled directly — they're pulled in via #include statements. You can't "exclude" them from the build the way you exclude .c files. But when you exclude the entire device/ folder, CCS removes that folder from the include search path, so the compiler will find only SysConfig's generated device.h in Debug/syscfg/ instead.

    Thanks,

    Ira

  • Hi, Ira

    How to Exclude Device Folder Thank you for contacting me.

    I tried, but the warning did not disappear.

    Here is the current situation.
    If you know anything, please let me know.

    (Situation)
    There is no Debug/syscfg/folder.
    There is a FLASH/syscfg/folder with various files such as device.c.

    Is there a problem?

    There is a "3 problems in this file" message in FLASH/syscfg/clocktree.h
    Is there a problem with this content?
    (I think it is consistent with the settings in the Clock Tree tool. Is there a configuration problem?)

    The highlight of clocktree.h
    #define DEVICE_SYSCLK_FREQ ((DEVICE_OSCSRC_FREQ * (10+0))/2)
    #define DEVICE_SETCLOCK_CFG (SYSCTL_OSCSRC_XTAL | SYSCTL_IMULT(10) | \
    SYSCTL_FMULT_NONE | SYSCTL_SYSDIV(2)| \
    SYSCTL_PLL_ENABLE)
    #define DEVICE_LSPCLK_FREQ (DEVICE_SYSCLK_FREQ /1)

    Thanks,

    Kasai

  • Hi,

    1. Have you tried doing a clean and build? This will delete the FLASH/ folder and recreate it.

    2. You can try using the sysconfg generated code and then exclude the .syscfg file from your project

    1. Copy the source files from FLASH/syscfg/ into your project folder
    2. Right-click the *.syscfg file → select "Exclude from Build"
    3. Rebuild - SysConfig will no longer regenerate the files

    But remember if you make changes to sys config now, the conguration code will not auto update.

    3. Is it just cosmetic CCS Warnings or is your program execution affected as well?

    Thanks,

    Ira

  • Hi,

    1.and 2., the warning in the source code disappeared.

    I haven't tried it because I don't have a program execution environment, but as far as looking at the source code, there should be no problem.

    I will close this case for now.

    I will ask again if there is anything.

    Thank you very much.

    Kasai