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: "f2838x_can.h" activation problem "f2838x_device.h"

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hello.
I'm studying for development.
I would like to inquire about the problems that arise in the process of developing CAN communication in a bit field method.
The development environment is as follows.
MCU : f28388d
CCS version: 12.8.1.00005
CCS Compiler Version: TI v22.6.3.LTS
c2000Ware version: 6.00.00

- Predefined: [CPU1], [USE_20MHZ_XTAL]

I'm only using CPU1, and I don't use CLA as below. The compiler version is also higher than 16, but "f2838x_can.h" is not enabled.

- I tried turning CLA support on or off, but it didn't work.
- I tried changing the compilation version to the previous version, but it didn't work.

I need help with what the problem is.
Thank you.

image.png

  • Hi,

    Please note that in order to include the CAN and DCC files, you cannot have a .cla file present in your project. It's presence or the addition of the #define as a predefined symbol is what makes the project  a CLA based project.

    If you have CLA logic, you will not be able to access the CAN and DCC source files unless you have the necessary compiler installed in your CCS application.

    Ensure that the lines are arranges such your desired outcome is setup.

    If you require the CAN and DCC header files, I will recommend making sure there's no .cla file extension. If there is make sure it is right-clicked on and excluded from build.

    Alternatively, moving the lines of code associated with those two files to reside outside the check for CLA will also suffice to ensure it is always executed on.

    Regards,

    Ozino