This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

precompiled library.a instructions for use?

Hi everybody,
I use Keil uvision 5.10.0.0 and ARMCC as compiler.
I have been given a libmain.h and library.a compiled with Cross-studio for ARM (gcc-arm-unknown-elf) for Cortex M3 ARMv7M, FP soft, FPU none.
Is it possibile to use such files in my development environment? In case it is, what am I supposed to do?
Thank you
Emmanuela

  • The ABI should probably be fine, but the library might have external dependencies for library functions, etc which you might not be able to resolve easily. You could add the .a to a project, along with some test code, and see if it links or not.

    You might be able to fix the linkage with wrapper/translation functions.

    You might be able to use Keil with the GNU/GCC compiler/tools.

    Probably easier to seek source code, or a library built/targeting Keil.

  • Hi Pier,
    thank you for your answer.

    I cannot obtain the source code or a library built using ARMCC. Using library.a is my only solution.

    I've tried to compile using gcc but I get the following error message:

     Library.a has EABI version 0, but target has EABI version 5
    

    Furthermore I'd rather not use gcc as I need Keil ARMCC for other purposes in my project.