Skip to main content
GPura
Associate
May 7, 2019
Question

Migrating STM32 MCU from STM32L151VC to STM32L431

  • May 7, 2019
  • 3 replies
  • 785 views

..

This topic has been closed for replies.

3 replies

GPura
GPuraAuthor
Associate
May 7, 2019

 In my project, standard peripheral libraries are used. HAL and LL is not used. I tried STM32CubeMX software to download supported packages. However, I could get only HAL and LL files. But I need std. libraries like stm32l1xx_adc.h , stm32l1xx_gpio.h , stm32l1xx_i2c.

Tesla DeLorean
Guru
May 7, 2019

Yes, figure it is a good opportunity to refactor your code. ST has abandoned SPL

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ST Technical Moderator
May 7, 2019

Hello,

There is no Standard Peripherals Library available for STM32L4 (STM32 Standard Peripheral Libraries) and STM32CubeMX is only based on STM32Cube firmware libraries (HAL and LL drivers) but not Standard peripherals library.

To migrate your project from STM32L1 to STM32L4 Series, I recommend you to use the SPL2LL converter tool, allows you to convert your SPL application to a Cube one based on LL code.

AN5044 shows the steps to migrate from an existing STM32-based application developed under the STM32 SPL to any one of the other microcontroller types using the STM32Cube LL drivers.

You can take this Application Note as reference to determine differences between the two series: AN4612 Application note "Migrating from STM32L1 Series to STM32L4 Series and STM32L4+ Series microcontrollers".

Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks