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.

Error during linking.



Hi all,

I am trying to convert a CCS 3.3 project to a 5.4 version.

The original project which was developed in CCS 3.3.38.2 compiles and links without any errors.

Now, after importing the project to a 5.4 version, I am getting errors during linking.

Let me describe the code first : in file1.c (Set to 16 bit mode)   I have:

#pragma CODE_STATE (go_to_program, 32);

void go_to_program(void)

{

user_main();

}

#pragma CODE_STATE (initiate_vector_interrupt8, 32);

void initiate_vector_interrupt8()

{

boot_upload_fw_vec();

}

and in  in load.asm( set to16 bit mode) I have:

.state32

_boot_upload_fw_vec

B _boot_upload_fw

.sect ".pvectors1"

.state32

_user_main

;B c_int00

And I  am get the following error:

undefined first referenced

symbol in file

--------- ----------------

$boot_upload_fw_vec ./boot_main.obj

$user_main ./boot_main.obj

error #10234-D: unresolved symbols remain

>> Compilation failure

error #10010: errors encountered during linking;

I am sure that the jumps are made in ARM mode so I dont think there is any address mismatch.

Any Idea what might be happening?

 

 

  • Sanatan Rajagopalan said:

    The original project which was developed in CCS 3.3.38.2 compiles and links without any errors.

    Now, after importing the project to a 5.4 version, I am getting errors during linking.

    What was the version of compiler tools used for the build with CCS 3.3 and what is the version set in CCS 5.4? Also can you provide the options being passed to the compiler in CCS 5.4 (the list of options will be displayed in the CCS build console).

  • Hi Aarti,

    Thanks for the reply.

    Here is the info that may help :

    CCS 3.3.38.2 Compiler version :TMS470 C/C++ Compiler v4.1.4

    CCS 5.4    Compiler verson TI ARM C/C++ Compiler v5.0.4

    Options for compiler in CCS 5.4

    'Invoking: ARM Compiler'

    "C:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv4 --code_state=16 --abi=tiabi -O2 -g --include_path="C:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --include_path="C:/Users/____/Desktop/____/Projects/scratch/Header Files" --preproc_with_compile --preproc_with_comment --diag_warning=225 --display_error_number "../boot_main.c"

     

    Thanks

     

  • Would you be able to zip up and send us your project so we can recreate the error and look into it? You could either attach it here or send it to me via private conversation.