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.

linker complaining about dual boot.obj definitions



Hello,

I'd like to bring C:\ti\ccsv6\tools\compiler\c6000_7.4.14\lib\src\boot.c into my local project, in order to turn on debug symbols and debug a problem I'm having with putting .cinit into external memory, per this thread:

https://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/542435#pi317286=4

However the resulting local boot.obj is conflicting with the library version of boot.obj, per this linker error message:

<Linking>

error #10056: symbol "__stack" redefined: first defined in
"./drivers/boot.obj"; redefined in
"C:/ti/bios_5_42_01_09/packages/ti/bios/lib/bios.a674<boot.o674>"
error #10056: symbol "_c_int00" redefined: first defined in
"./drivers/boot.obj"; redefined in
"C:/ti/bios_5_42_01_09/packages/ti/bios/lib/bios.a674<boot.o67

There must be a way to tell the linker to use the local boot.obj, and ignore the library version, but I've not had any luck finding that method.

Please advise,

Robert

  • You brought this file into your project ...

    Robert56682 said:
    I'd like to bring C:\ti\ccsv6\tools\compiler\c6000_7.4.14\lib\src\boot.c into my local project

    That older thread does something different.  The user is named Brad.  He brings in these two files ...

    C:\ti\bios_5_42_01_09\packages\ti\bios\src\aux62\boot.c

    C:\ti\bios_5_42_01_09\packages\ti\bios\src\aux62\autoinit.c

    You bring in boot.c from the compiler RTS library.  Brad brings in files from the BIOS implementation.  Not the same thing.  These files serve similar purposes, i.e. system start-up.  But they are not identical.  You need to bring in the BIOS implementation of these files, in a manner similar to Brad.  I don't know BIOS well enough to advise you on the details.  

    Thanks and regards,

    -George

  • George,

    That did it. Thanks much. I haven't started the debugging yet, but it appears I am able to step through c_int00, etc now, after using those files instead.

    Robert