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.
Tool/software: TI C/C++ Compiler
Hi,
I am using CCS Version 8.2.0. For one of the function, I tried to use the below symbol map in CCS GUI tool/editor
--symbol_map='Function_5=Function_1'
This symbol mapping is worked in CCS editor/GUI workspace(i.e. Function5 is invoked wherever the function 'Function_1' is called in the source code).
I converted this option in Makefile rule and used 'omake' command to build the source code. Build is created however, the symbol mapping is not done in the build.
I cross verified build map file from CCS GUI tool/Editor created one with 'omake' command created map file. Symbol mapping is not done on the build, which is created created by omake command.
But, symbol mapping is done on the build, which is created from CCS GUI tool(workspace)/editor.
Please help me how to resolve the symbol mapping issue when the build is created from command line using 'omake' command which uses make rule as input file and it compiles & creates the executable
for TI ARM compiler suite.
Please provide your quick response. We procured the licensed tools and debugger from TI.
Thanks and Regards,
N. Patchaiappan
Hello,
As per TI MSP430 Assembly Language Tools v20.8.0.STS User’s Guide, the below is the information
It should work for up to optimization level 4.
I tried with optimization level 0(No optimization) CCS tool and it is working fine.
However, it is not working when it is compiled and linked from command line window using 'omake' command from IBM ClearCase tool, which takes make rule file as input.
Even, i tried with the compile and link command one which is generated by CCS tool. Took the same compile and link command from CCS tool console output window and tried it in windows command prompt and it is not working for Symbol mapping.
Could you please analyze and confirm the correct one, to resolve this issue?
Thanks and Regards,
N. Patchaiappan
Can you get 'omake' to list the commands it is running during the build?Patchaiappan Nallasingam said:I cross verified build map file from CCS GUI tool/Editor created one with 'omake' command created map file. Symbol mapping is not done on the build, which is created created by omake command.
It could be a problem with how 'omake' is passing options to the TI ARM compiler, rather than with the TI ARM compiler.
Herewith, I am attaching the sample workspace and comparison report for your reference(in CCS_SYMBOL_MAP_SAMPLE.zip file).
Symbol mapping is done when the software is compiled and linked from CCS GUI Tool/Editor
Whereas, Symbol mapping is not done when the software is compiled and linked from Command prompt.
When CCS_SYMBOL_MAP_SAMPLE.zip is extracted in C drive, complete project for CCS will be available.
In Extracted folder, you can find the LinkInfo.xml comparison report in the below path:
"C:\CCS_SYMBOL_MAP_SAMPLE\Sample\Debug\LinkInfoCompareReport.html"
and Symbol map comparison report is present in the below path:
"C:\CCS_SYMBOL_MAP_SAMPLE\Sample\Debug\SymbolMapCompareReport.html"
Sample source file path is present in the below path:
"C:\CCS_SYMBOL_MAP_SAMPLE\Sample\source\code\file1.c"
"C:\CCS_SYMBOL_MAP_SAMPLE\Sample\source\code\file2.c"
"C:\CCS_SYMBOL_MAP_SAMPLE\Sample\source\code\sys_linker.cmd"
To compile and link the file from the command, the below batch file is created and it is present in the below path:
"C:\CCS_SYMBOL_MAP_SAMPLE\Sample\Debug\BatchCmd.bat"
3582.CCS_SYMBOL_MAP_SAMPLE.zipPlease analyze and provide your solution quickly.
Thanks and Regards,
N.Patchaiappan
Hi,
I noticed that the FUNC1 is replaced with FUNC2 in map file generated by CCS compiling/linking.
When you call armcl in CMD window, please use --symbol_map=Fun1=Fun2 instead of --symbol_map='Fun1=Fun2' in the compiling options.
I checked it generates the same map file as from CCS