Part Number: MSP-EXP430F5438
Tool/software: TI C/C++ Compiler
I have an existing application (written in C) running on an MSP-EXP430F5438, which is connected with the CC2520EM-Module.
The problem is, that this application was built with the IAR-Compiler. Now, we want to switch to the TI-Compiler.
To start with the porting-task, I added the Components of the Z-Stack to a new Project in CCS 7.4. Additionally, I added a working Blink-Application, which does nothing else, than blinking.
After some porting (in particular the ISR), i got all the Components compiling, but now I am hanging with the linking.
I am getting some "unresolved symbol macBackOffTimerRolloverCallback"-error. After a bit of research, I found out, that the file TIMAC-MSP54xx.lib (which should be contained in the Z-Stack) may contains all the required symbols. But If I add this file under "MSP430 Linker" in the Project Properties, the linking-process exits with the following error: "fatal error #10004: unrecognized file: "C:/path/to/TIMAC-MSP54xx.lib"".
Now my question is: How can I link a .lib-file correctly with my application? Is the way via the project properties (Build->MSP430 Linker->File Search Path->Include Library File or Command File) the right one?
If it is, why am I getting an unrecognized file error? Can it be, because I am using the TI-Compiler and the lib file was constructed by an IAR compiler?
Aadfs sdgksdsdI have an existing application (written in C) running on an MSP-EXP430F5438, which is connected with the CC2520EM-Module.
I am not familiar with this system.
Aadfs sdgksdsdThe problem is, that this application was built with the IAR-Compiler. Now, we want to switch to the TI-Compiler.
Is this supported? I don't know. For now, I presume it is.
Aadfs sdgksdsdthe linking-process exits with the following error: "fatal error #10004: unrecognized file: "C:/path/to/TIMAC-MSP54xx.lib"".
I think we should focus on determining what this file is. Try running the command line utilities ofd430 (object file display) and ar430 (archiver - for creating and working with libraries) on it. Find these utilities in the same \bin directory as the compiler cl430. Run them like this ...
% ofd430 TIMAC-MSP54xx.lib
% ar430 -t TIMAC-MSP54xx.lib
If these commands work correctly, you get a large amount of text dumped to the screen. If you just get some short error message, then this file is not something the TI MSP430 compiler tools can work with.
Aadfs sdgksdsdthe file TIMAC-MSP54xx.lib (which should be contained in the Z-Stack)
I'm not familiar with Z-stack. But in an attempt to get a look at that problem library file, I installed it from the main TI Z-stack page. It does not contain a TIMAC-MSP54xx.lib. But it does contain a TIMAC-CC2530.lib. And I can tell you the TI MSP430 compiler tools do not recognize that file.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click This Resolved My Issue on the best reply to your questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
In reply to George Mock:
Thank you very much for your support.
I run the following two commands:
"C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/ofd430.exe" TIMAC-MSP54xx.liberror: failed to read "TIMAC-MSP54xx.lib"
"C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.6.LTS/bin/ar430.exe" -t TIMAC-MSP54xx.lib --> error: 'TIMAC-MSP54xx.lib' is not an archive
So this means, that it is not supported from the ti-commands.
Thanks for your support.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.