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.

TMS320F28388D: .cla file not built

Part Number: TMS320F28388D

Tool/software:

Hi,

I have reorganised my code, and subsequently renamed some files to better reflect their new content. However, when I tried to rebuild the project, I get some linking errors due to unresolved symbols. All symbols are in the renamed .cla file. When I look at the console log, there is not indication that the .cla file went through the compiler.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[36]DEL /F "syscfg\board.h" "syscfg\board.cmd.genlibs" "syscfg\pinmux.csv" "syscfg\epwm.dot" "syscfg\adc.dot" "syscfg\c2000ware_libraries.cmd.genlibs" "syscfg\c2000ware_libraries.h" "syscfg\clocktree.h" "syscfg\board.c" "syscfg\board.opt" "syscfg\c2000ware_libraries.opt" "syscfg\c2000ware_libraries.c" "converty-add-7k-fw-cpu2.out"
[37]DEL /F "syscfg\board.obj" "syscfg\c2000ware_libraries.obj" "device\F2838x_CodeStartBranch.obj" "device\device.obj" "sources\com_interproc\com_interproc_cpu2.obj" "sources\ipc_management\ipc_management.obj" "sources\main_cpu2.obj" "sources\regulation\regulation_cpu2.obj" "sources\supervision\supervision_cpu2.obj"
[38]DEL /F "syscfg\board.d" "syscfg\c2000ware_libraries.d" "device\device.d" "sources\com_interproc\com_interproc_cpu2.d" "sources\ipc_management\ipc_management.d" "sources\main_cpu2.d" "sources\regulation\regulation_cpu2.d" "sources\supervision\supervision_cpu2.d"
[39]DEL /F "sources\regulation\regulation_cpu2.d"
[40]DEL /F "device\F2838x_CodeStartBranch.d"
[41]RMDIR /S/Q "syscfg"
[42]Impossible de trouver C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\converty-add-7k-fw-cpu2\FLASH\converty-add-7k-fw-cpu2.out
[43]Impossible de trouver C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\converty-add-7k-fw-cpu2\FLASH\sources\regulation\regulation_cpu2.d
[44]Impossible de trouver C:\Users\a.thurin\Desktop\Projets logiciels\2205-CTC-CHRG7K-SW\converty-add-7k-fw-cpu2\FLASH\device\F2838x_CodeStartBranch.d
[45]Finished clean
[46]**** Build Finished ****
[47]**** Build of configuration FLASH for project converty-add-7k-fw-multi ****
[48]"C:\\TI\\CCS\\CCS_20_0\\ccs\\utils\\bin\\gmake" -k all
[49]gmake: Nothing to be done for 'all'.
[50]**** Build Finished ****
[51]**** Build of configuration FLASH for project converty-add-7k-fw-cpu2 ****
[52]"C:\\TI\\CCS\\CCS_20_0\\ccs\\utils\\bin\\gmake" -k -j 16 all -O
[53]Building file: "../2205_ctc_chrg7k_sw_cpu2.syscfg"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I tried restarting CCS (v20), but it didn't change anything. Neither did cleaning the cleaning of the project.

There are .c files in the same folder as the .cla file, and those are built properly.

Any idea where that might come from ?

Thanks in advance,

Adrien

  • Hi Adrien,

    Did you only modify the name of the .cla file? Did you make any changes to the linker cmd file? Please show what exactly was changed between the buildable project and errored project.

    Best Regards,

    Delaney

  • Hi Delaney,

    I didn't make any changes to the linked file for this core (cpu2). I made some changes on the cmd file for the other core (cpu1, only to merge the RAMLS5 and RAMLS6 sections into a single RAMLS5_LS6 section in which to put the cla program). It didn't cause any issue on the core with the cmd file changes (cpu1). It also didn't cause any issue at first with the cpu2, at least not until I renamed de .cla file name.

    I have tried just now to duplicate the changes to the cpu1 cmd file into the cpu2 cmd file, but the renamed .cla file is still not built.

    Other changes in the buildable project have mostly been renaming 1 .c file and one .h file, and deleting another .h file. Now, explaining here the changes made, I had a horrible doubt, which made me try something ... that revealed the likely issue. --> in my file renaming, I ended up with 3 files named regulation_cpu2.c , regulation_cpu2.h and regulation_cpu2.cla. Maybe the .cla file was not built because its name was the same as the .c file ? It seems that renaming the .cla file into something different from the .c file fixes the issue.

    Good to know for the future, I can have a .c file and a .h file with the same name, a .h and a .cla file with the same name, but NOT a .c and a .cla file with the same name.

    Best regards,

    Adrien

  • Hi Adrien,

    Maybe the .cla file was not built because its name was the same as the .c file ? It seems that renaming the .cla file into something different from the .c file fixes the issue.

    Yes, having the cla file share a name with a C file would cause the compiler to try to generate two object files of the same name. Then, it wouldn't know which object file is for the CLA vs. the CPU, hence the errors. Glad you were able to resolve the issue. Slight smile

    Best Regards,

    Delaney