2018-11-06 04:47 AM
Currently, our App uses ST library since 2008.
We'd like to migrate (= convert) old ST drivers to new ones (with HAL).
I found some ST tool (SPL2LL_Converter_V1.0.1), which does some nice job.
Yet, it doesn’t migrate to the HAL drivers, used by CubeMX.
Can you please help me finding the correct and efficient way how to migrate old ST drivers to new ones?
Thanks,
Aviv
2018-11-06 06:12 AM
Hello Aviv,
Indeed, ithe tool is migrating SPL code to LL (low layer) drivers and not HAL ones.
Both of them are included in the STM32Cube firmware package.
You can also generate code using STM32CubeMX with LL-drivers.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2018-11-06 07:31 AM
Hi Amel,
What if I do ant to use HAL rather than LL: what's the best way you'd recommend?
Thanks,
Aviv
2018-11-06 08:04 AM
LL is in some way similar to SPL as it is based on direct access to registers.
However, the HAL (High Abstraction Level) is focusing more on processing.
If you need more details, please review the relevant user manuals of the STM32Cube package your selected.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2018-11-06 10:01 PM
Hi Amel,
I'm familiar with the difference between LL and HAL.
I chose HAL to be my driver's level.
Can you please recommend of the best way to migrate LL to HAL?
Thanks,
Aviv
2018-11-06 11:53 PM
> I chose HAL to be my driver's level.
As Amel said above, there's no direct mapping between SPL and Cube/HAL, so your best option is to rewrite your code from scratch for HAL.
JW