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/TMS320F28379D: Error#20: identifier "Uint16/32 is undefined.

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello,

I would like to generate a PWM signal with 100kHz and variable duty cycle.

I'm facing a problem with "F28x_Project.h" include.

I wanted to test the communication with my board, and when i launch the build i get those errors :

All this files are provided by T.I then i'm feeling embarrass. I checked the file "F2837xD_GlobalPrototypes.h" and indeed nothing is defined :


 

I don't really know what to do, i'm not able to modifie alone those files and i have include i think all required files.

Thanks you for answers.

Regards

Haris.

  • Hi Haris,

    Uint16 and Uint32 definitions are in the F2837xD_device.h file, which is included in F28x_Project.h.
    If you go to your copy of F28x_Project.h, can you verify you have the following line of code and that when you Ctrl+Click on this line in CCS, it should open the file F2837xD_device.h. Please let me know if this is unsuccessful for you.

    #include "F2837xD_device.h" // F2837xD Headerfile Include File

    Regards,
    Elizabeth
  • Hi Elizabeth,

    Thank you to take your time to answer.

    As i mentioned all the files are provided by T.I. i did'nt modify any files. When i check into "F28x_Project.h" file, the line (#include "F2837xD_device.h" // F2837xD Headerfile Include File) is included correctly :   

    Then i go forward into the file i checked "F2837xD_device.h" :

    All those include into "F2837xD_device.h" (#include "driverlib.h" & #include <stddef.h>) are include into path project with definition of CPU1.

    So I'm really lost and I can't understand where is the problem. I hope you could help me.

    Regards,

    Haris NACER.

  • Hi Haris,

    In the last image with the file F2837xD_device.h, it looks as if the code is from the file device.h and not F2837xD_device.h. These 2 files are unique.

    It seems you're using code from this file:
    C:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2837xd\common\include\device.h

    You should instead use this code, which defines Uint16 and Uint32 types:
    C:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2837xd\headers\include\F2837xD_device.h

    Regards,
    Elizabeth
  • Hi Elizabeth,
    You agree thanks you very much,
    But the problem the file device.h (C:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2837xd\common\include\device.h) is named F2837xD_device.h into my folder as the file : C:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2837xd\headers\include\F2837xD_device.h i will go further into my research to change the name of the file or something else.

    Regards,
    Haris NACER.
  • Hi Haris,

    You should have both device.h and F2837xD_device.h files when you install C2000Ware. It is good if you're also able to find both files in those directories. Otherwise, you may consider reinstalling C2000Ware.

    I also recommend looking at the user guides found in: C:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2837xd\docs.

    Regards,
    Elizabeth