cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L1xx_StdPeriph_Lib

nanayakkaraan
Associate II
Posted on November 08, 2010 at 12:29

STM32L1xx_StdPeriph_Lib

5 REPLIES 5
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 Up vote any posts that you find helpful, it shows what's working..
nanayakkaraan
Associate II
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 🙂

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 Up vote any posts that you find helpful, it shows what's working..
lowpowermcu
Associate II
Posted on May 17, 2011 at 14:14

Hi ANN,

Could you send me STM32L1xx_StdPeriph_Lib ?

Herzlich,

MCU Lüfter

Posted on May 17, 2011 at 14:14

Only available in EWARM download.

Posted less .CHM and IAR specifics

https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/DispForm.aspx?ID=14503

https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/DispForm.aspx?ID=14503

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..