Skip to main content
Associate
January 22, 2025
Solved

How i can convert SPL to HAL

  • January 22, 2025
  • 8 replies
  • 1394 views

resource: https://github.com/ArduCAM/Arducam_Mega

I need to integrate Arducam camera using STM32L4xx, but i cannot found the library, the resource i was found is using SPL instead of HAL. Someone please help me to resolve this issue 

This topic has been closed for replies.
Best answer by Amel NASRI

Hi @Lemon21 ,

You may use the SPL2LL converter. The documentation can help you to understand how to use it.

-Amel

8 replies

Pavel A.
January 22, 2025

Here you can find help with the conversion.

Lemon21Author
Associate
January 23, 2025

Thank you for the sharing

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
January 22, 2025

Hi @Lemon21 ,

You may use the SPL2LL converter. The documentation can help you to understand how to use it.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
Lemon21Author
Associate
January 23, 2025

Thank you! I will look into it further

Andrew Neil
Super User
January 22, 2025

There is no SPL for STM32L4 ?

The only STM32 mentioned on your linked page is STM32F103 - so you're going to have to do some porting anyhow

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.
Lemon21Author
Associate
January 23, 2025

Im using STM32cubeIDE, so need using HAL protocol

 

Andrew Neil
Super User
January 23, 2025

@Lemon21 wrote:

Im using STM32cubeIDE, so need using HAL protocol


Not true - you can certainly use SPL code in CubeIDE.

There are plenty of old ST examples which still use SPL, and work fine in CubeIDE.

As far as the IDE is concerned, it's all just C source code.

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.
mƎALLEm
ST Technical Moderator
January 23, 2025

As said by @Andrew Neil there is no SPL for L4 but according to the link you shared, the example is using STM32F1 and not L4.

So you need to look first at the differences between the products, clocks, pinouts etc (refer to the AN4649 "Migrating from STM32F1 Series to STM32L4 Series / STM32L4+ Series microntrollers") , study the LL lib and use SPL to LL converter as stated by @Amel NASRI  (for F1) then move on to the migration from F1 to L4.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.