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.

[FAQ] C2000WARE: Compiler errors when using bitfield

Part Number: C2000WARE

Project will not build because of the undefined references. How can I fix this?

  • In order to create a bitfield project there are a few things to check for.

    1. Make sure the correct include options are defined in the project properties.
      1. C:\ti\c2000\C2000Ware_x_xx_xx_xx\device_support\{device}\headers\include\
      2. C:\ti\c2000\C2000Ware_x_xx_xx_xx\device_support\{device}\common\include\
    2. Make sure to add the following file to your project
      1. C:\ti\c2000\C2000Ware_x_xx_xx_xx\device_support\{device}\headers\source\{device}_globalvariablesdef.c
      2. C:\ti\c2000\C2000Ware_x_xx_xx_xx\device_support\{device}\headers\cmd\{device}_headers_nonbios*.cmd 
        1. Non bios file is needed (naming may be dependent on device but will have nonbios in the name)
    3. Make sure to add all the files regarding the peripherals that are to be used in the project as below

    Click here to see a similar thread to reference.