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.

Problem with "incompatible redefinition" warnings

Other Parts Discussed in Thread: TM4C129XNCZAD

To easily illustrate the problem I am seeing, add one line to the dk-tm4c129x "blinky" example project:

Add #include "inc/hw_ints.h" below the existing line of #include "inc/tm4c129xnczad.h". (I want to use the definition of FAULT_SYSTICK defined in hw_ints.h)

I get about 100 warnings of 

#48-D incompatible redefinition of macro "INT_ADC0SS0" (declared at line 62 of "C:/ti/TivaWare_C_Series-2.1.1.71/inc/tm4c129xnczad.h") .ccsproject /blinky line 352, external location: C:\ti\TivaWare_C_Series-2.1.1.71\inc\hw_ints.h 

Any suggestions?

Thanks

  • Hello Jeff,

    The blinky example uses the DRM method of register usage which creates a warning conflict when using it with remaining TivaWare API's

    Suggest, that you use TivaWare API's, so that "inc/tm4c129xnczad.h" include is not required.

    Regards
    Amit