Skip to main content
Visitor II
January 22, 2025
Solved

How i can convert SPL to HAL

  • January 22, 2025
  • 4 replies
  • 1330 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

    4 replies

    Super User
    January 22, 2025

    Here you can find help with the conversion.

    Lemon21Author
    Visitor II
    January 23, 2025

    Thank you for the sharing

    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

    Lemon21Author
    Visitor II
    January 23, 2025

    Thank you! I will look into it further

    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

    Lemon21Author
    Visitor II
    January 23, 2025

    Im using STM32cubeIDE, so need using HAL protocol

     

    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.

    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.