STM32L162 FLASH and EEPROM migrating from STM32L1xx_StdPeriph_Driver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-21 12:57 AM - last edited on ‎2023-11-21 02:35 AM by Imen.D
I am restoring the programming of an old project on STM32L162ZDT which was using STM32L1xx_StdPeriph_Driver. Switching to STM32CubeL1 LL library (not HAL) gives me problems with FLASH and EEPROM support. Is there any tutorial on how to get through?
- Labels:
-
STM32L1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-21 02:28 AM
Hello @Pajdoom,
The SPL2LL-Converter tool allows you to convert your SPL application to a Cube one based on LL library.
The AN5044 shows the steps to migrate from your existing STM32 SPL application to STM32Cube LL drivers.
Hope this may bring you some help.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-21 03:33 AM
In Help:
|
And for Windows missign *.exe running file ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-21 03:44 AM
Microsoft Windows [Version 10.0.19045.3693]
(c) Microsoft Corporation. Všetky práva vyhradené.
d:\Temp\23-11-21\SPL2LL-Converter_V1.1.0>java -jar spl2ll_converter_gui.jar
Error: Could not find or load main class com.st.spltoll.MainApp
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
d:\Temp\23-11-21\SPL2LL-Converter_V1.1.0>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-23 12:08 AM
Hi @Pajdoom ,
It seems you have a problem on the setup side, as the tool requires a recommended version for JAVA and Perl.
But after deep check on the Cube firmware side, there is NO ll_flash drivers, so you should migrate manually to HAL drivers.
The tool only provides a set of macros and functions that are related to FLASH and are already declared on the ll_system.h side.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-23 07:31 AM
I noticed that LL_FLASH does not exist, so I relied on SPL2LL-Converter to "somehow" convert it...
Will there ever be LL_FLASH?
PS: I don't have anything in FLASH on HAL...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-23 08:56 AM
SPL is a relatively simple library, so you can simply take its functions and use them in your program as normal register-based access routines.
JW