Skip to main content
nanayakkaraan
Associate III
November 8, 2010
Question

STM32L1xx_StdPeriph_Lib

  • November 8, 2010
  • 5 replies
  • 782 views
Posted on November 08, 2010 at 12:29

STM32L1xx_StdPeriph_Lib

    This topic has been closed for replies.

    5 replies

    nanayakkaraan
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:14

    Hello,

    Thank you for replying.

    Is that mean I do not have to do any changes in the stm32l1xx.h? No uncommenting as well.

    I need to set the appropriate device when setting compiler/compiler options.

    Feels like that :)

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:14

    Doesn't the entire family consist of just two parts right now?

    STM32L151xx and STM32L152xx, both of which are MEDIUM DENSITY parts.

    The compiler/toolchain expects you to set a define for STM32L1XX_MD ( -DSTM32L1XX_MD) so that the library knows which code to pull in, and which asserts to test.

    Presume there will be more than two parts at some point, and tell the compiler which family/density you plan on using so when the library gets updated you'll always be pulling in the correct code for your part.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:14

    Hi ANN,

    Could you send me STM32L1xx_StdPeriph_Lib ?

    Herzlich,

    MCU Lüfter

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:14

    I'd use a project based define, which is passed down to the compiler.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 17, 2011
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..