Skip to main content
CharlieMangold
Senior
April 3, 2023
Solved

New STM32Project that uses Low Level drivers

STM32CubeIDE 1.12

STM32G0B0RE micro

We have an older Cube project from a STM32F0 series that needs to be changed to the larger STM32G0B0 chip. We thought that we would just create a new project with the new micro and port in the older code. When we create the new project there does not appear anywhere in the selection process to have it use the Low Level drivers instead of the HAL.

  • Start New STM32 Project
  • Under MCU/MPU selector, Select STM32G0B0RET6
  • Nothing in this tab has anything to do with LL drivers.
  • Select Next.
  • Name Project, C++ Target Language and STM23Cube Project Type.
  • Select Next.
  • Select 1.6.1 Firmware package.
  • Code Generation Options does not show anything about HAL or LL drivers.
  • Select Finish.

A project has been created where the Drivers directoy has a STM32G0xx_HAL_Drivers directory.

Is there any way to have project creation use Low Level Drivers?

Thanks.

0693W00000bhPzwQAE.jpg

This topic has been closed for replies.
JTP1Best answer
Graduate II
April 3, 2023

Hello

Open the .ioc file by double clicking at STM32CubeIDE and then select project manager -> Advanced settings. There is driver selctor- list where can select HAL or LL driver for each activated MCU block.

6 replies

JTP1Best answer
Graduate II
April 3, 2023

Hello

Open the .ioc file by double clicking at STM32CubeIDE and then select project manager -> Advanced settings. There is driver selctor- list where can select HAL or LL driver for each activated MCU block.

CharlieMangold
Senior
April 3, 2023

Thanks. It's too bad they don't give you the option to use LL from the beginning.

0693W00000bhQopQAE.jpg

KnarfB
Super User
April 3, 2023

In addition, in STM32CubeMX you may try the Pinout > List compatible MCUs dialog which may help porting your existing project.

hth

KnarfB

CharlieMangold
Senior
April 3, 2023

Some of the port has gone well but there are sections(Serial/DMA definitions) that the includes get tangled up between using the HAL and the Low Level definition files. The original code was the old Standard Peripheral Drivers. Currently trying to figure out why it can't find DMA_HandleTypeDef definition. Appreciate the help.