Skip to main content
Kaza K
Associate II
November 8, 2017
Question

STM32L4 Standard Peripheral Libraries

  • November 8, 2017
  • 8 replies
  • 2770 views
Posted on November 08, 2017 at 09:37

Hello, 

  1. Are the Standard Peripheral Libraries available for L4 series?

  2. If not, maybe it is possible to use StdPeriph from e.g. F4? Register addresses are the same or not?

  3. Maybe there is some way to extract it from HAL lbr?

Best regards,

Kaza

#std-peripheral-lib #stm32-l4
This topic has been closed for replies.

8 replies

Andrew Neil
Super User
November 8, 2017
Posted on November 08, 2017 at 10:00

ST has deprecated the old Standard Peripheral Libraries for some years now.

Googling 'STM32L4 Standard Peripheral Libraries' gives:

http://www.st.com/en/embedded-software/stm32-standard-peripheral-libraries.html?querycriteria=productId=LN1939

The later libraries tended to be called, 'DSP & ...' - so

Googling '

STM32L4 DSP and Standard Peripheral Library' gives:

https://electronics.stackexchange.com/questions/312184/where-can-i-found-stm32l4-dsp-and-standard-peripherals-library

So it looks like you're out of luck.

But why not use the HAL LL (Low-Layer) functions:

http://www.st.com/content/ccc/resource/technical/document/user_manual/63/a8/8f/e3/ca/a1/4c/84/DM00173pdf/files/DM00173pdf/jcr:content/translations/en.DM00173pdf

See:

https://community.st.com/thread/32362#comment-97413

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
waclawek.jan
Super User
November 8, 2017
Posted on November 08, 2017 at 10:13

Hi Andy,

But why not use the HAL LL (Low-Layer) functions:

Because it's superfluous.

You asked... ;)

But seriously, we don't know Kaza's motive. He might want to port older non-L4-SPL code; he might want to see a set of examples; or he might follow best practice whatever that means. LL won't help with the first two; using it for the last one is just question of personal preferences.

JW

David SIORPAES
ST Employee
November 8, 2017
Posted on November 08, 2017 at 13:22

You may want to give a try to 

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/spl2ll-converter.html

 which helps in migrating from SPL based projects to LL.
Kaza K
Kaza KAuthor
Associate II
November 8, 2017
Posted on November 08, 2017 at 13:28

It looks very interesting and if it work, it will save me a lot of time. I will definitely check it. Thank you!