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.

TMS320F28379D: C2000Ware 1.00.06 errors using dual headers.

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

I am working with C2000Ware 1.0.06 and was trying to use the instructions from the Developer User's Guide Section 2.4 for adding Bit-field and Driver Live Support.

To provide a simple example to test I imported the example from:

C2000Ware_1_00_06_00/device_support/f2837xd/examples/cpu1/epwm_updown_aq

and added the definitions for _DUAL_HEADERS, and other steps in this section.

When trying to recompile there are conflicts between F2837xD_GlobalPrototypes.h and I believe cpu.h

  • Hi,

    Can you let me know the errors you are getting? Ideally there shouldn't be any errors. Did you define the "_DUAL_HEADERS" predefined symbol in the project?

    Thanks
    Vasudha
  • The epwm_updown_aq_cpu01 is just a way to replicate the problem I have in my application.  Yes I defined _DUAL_HEADERS then to replicate the problem modified epwm_updown_aq_cpu01.c to add the line #include "driverlib.h"

    Then built the program and had the following errors:

    >> Compilation failure
    subdir_rules.mk:77: recipe for target 'epwm_updown_aq_cpu01.obj' failed
    "/Applications/TI/C2000Ware_1_00_06_00/device_support/f2837xd/common/include/F2837xD_GlobalPrototypes.h", line 127: error #41: expected an identifier
    "/Applications/TI/C2000Ware_1_00_06_00/device_support/f2837xd/common/include/F2837xD_GlobalPrototypes.h", line 127: error #80: expected a type specifier
    "/Applications/TI/C2000Ware_1_00_06_00/device_support/f2837xd/common/include/F2837xD_GlobalPrototypes.h", line 127: error #91: function returning function is not allowed
    3 errors detected in the compilation of "/Applications/TI/C2000Ware_1_00_06_00/device_support/f2837xd/examples/cpu1/epwm_updown_aq/cpu01/epwm_updown_aq_cpu01.c".
    gmake: *** [epwm_updown_aq_cpu01.obj] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

    The error seems to be created from F2837xD_GlobalPrototypes.h defining:

    void IDLE();

    void STANDBY();

    void HALT();

    void HIB();

    Which is also defined by driverlib.