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.

Compiler/MSP-EXP430F5438: Problem while linking TIMAC-MSP54xx.lib for CC2520EM Module

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?

Thank you.

  • Aadfs sdgksdsd said:
    I 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 sdgksdsd said:
    The 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 sdgksdsd said:
    the 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 sdgksdsd said:
    the 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,

    -George

  • 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.lib
    error: 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.