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 v4: linker problem



Hello,

I have a problem with a project migrated from CCS v3.3 to v4:

Using the "old" CCS everything worked fine with the code.
In version 4 with the same code I get error messages from the linker for each symbol that is defined in an .h file and included in multiple .c files: 

symbol "_ADCINT_ISR" redefined: first defined in "./source/DSP280x_SWPrioritizedDefaultIsr.obj"; redefined in "./source/DSP280x_DefaultIsr.obj"  

Even with the source files from TI containing several initialization code get the error.
I've tried quite a few linker settings, but I can't find any difference to the settings in version 3.3.

Has anybody an idea how to get the code work?
Thanks in advance!

Peter

 

  • Peter -

    I'm a little confused as to why both SWPrioritizedDefaultIsr.c and DefaultIsr.c are in the same project - these 2 files have the exact same #defines and function names in some cases and should never be in the same project together.  I'm guessing this is why you are receiving the errors?

    Technically CCSv3.3 should give the same errors in this case as these 2 files together in any project would give the errors you've described.  Try removing one of those files and see if that helps. 

    Regards,

    Chrissy Chang

  • You're right, that solves my problems with the linker!
    It was my mistake to use both source files, especally I need only one of them.

    I don't really understand why I got no errors with version 3.3, but that doesn't matter. Now it works.

    Thanks a lot!

    Regards,
    Peter