Skip to main content
ivan239955_stm1_stmicro
Associate II
May 2, 2009
Question

Compilation of STM32 FW Lib into library files *.a under CrossWorks/GCC?

  • May 2, 2009
  • 3 replies
  • 812 views
Posted on May 02, 2009 at 18:42

Compilation of STM32 FW Lib into library files *.a under CrossWorks/GCC?

    This topic has been closed for replies.

    3 replies

    ngaylard
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:09

    Yes it is possible. What I have done is the following:

    Setup a directory with the STM library in it.

    In my solution I created a 2nd Project using the library options.

    From the menu select Project->Dependancies and then ensure that your primary project within the solution is dependant on the library and it works.

    Rowley have a few FAQ's related to this on their website. I haven't tried using the externally linked option yet where the 2nd project is not in the solution(although I may do so that my workspace isn't cluttered with hundreds of functions that I am not that interested in)

    ivan239955_stm1_stmicro
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:09

    Is it possible to compile STM32 FW library sources into real library files (*.a)? I suppose, that linker can then link only functions that are needed.

    If it is, how to do it in CrossWorks/GCC?

    Ivan

    ivan239955_stm1_stmicro
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:09

    Thank you for detailed quide.

    However, I have already left CrossWorks.