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.
Dear all,
first,thank you for your help.
1. my project description:
the section of my .cmd file is as follows:
SECTIONS
{
.vectors : {} >VECS PAGE 0
.text : {} >PROG PAGE 0
.text1 : {
main.obj(.text)
} >PROG PAGE 0 /* */
.cinit : {} >PROG PAGE 0
.data : {} >DATA PAGE 1 /* */
.bss : {} >DATA PAGE 1 /* */
.const : {} >DATA PAGE 1 /* */
.switch : {} >PROG PAGE 0 /* */
.stack : {} >DATA PAGE 1 /* */
.system : {} >DATA PAGE 1 /* */
}
2. it is ok in ccs V2.2 but error in V3.3 the error is as follows:
>> symbol _main multiply defined: E:\project\ex6_AD\Main.obj and main.obj
>> symbol _SystemInit multiply defined: E:\project\ex6_AD\Main.obj and main.obj
>> symbol _Timer1Init multiply defined: E:\project\ex6_AD\Main.obj and main.obj
>> symbol _SPI_Init multiply defined: E:\project\ex6_AD\Main.obj and main.obj
if I deleted the red color words
text1 : {
main.obj(.text)
} >PROG PAGE 0 /* */
the ccs v3.3 will be ok.
3. two questions: 1. how to set the object options (item :linker) to let the v3.3 IDE to solve the above question
2. If i want to allocated the .test of main.obj to seperated with other test ,how to do it in v3.3,is there any other solutions?
Thankyou
Which device are you building the program for? I found a bug report against certain older versions of the compiler tools where the linker did not accept relative paths to object files in the linker command file, but I'm not sure if its the same issue you are seeing here. To check if it is, could you try adding the absolute path to the obj file in the linker command file as shown below and see if that helps?
text1 : {
<full_path_to_obj>\main.obj(.text)
} >PROG PAGE 0 /* */
It would help to know the device you are building for and which version of the code generation tools are being used (CCS menu Help->About should show this). Also what are your compile options (specifically where are you locating the obj files relative to the project folder/source files)?
thank you very much.Follwing your methord I succesfully linked the project.
the details of my IDE: v3.3 version :3.3.82.13
The device: F2407A
is there patch for this problem?I appreciate your support very much .
There is no patch for this issue. The issue still exists in the version of compiler tools included with CCS 3.3. Since F24xx is an old device, there is no development being done to update these tools. However in this case there is the easy workaround of specifying the complete path to the obj file in the linker command file.
FYI, the bug # is SDSsq27784 and is documented in the c2400_cgt.txt file (found in C:\CCStudio_v3.3\C2400) under Known Issues.