cancel
Showing results for 
Search instead for 
Did you mean: 

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

1 ACCEPTED SOLUTION

Accepted Solutions
JTP1
Lead

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.

View solution in original post

6 REPLIES 6
JTP1
Lead

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.

KnarfB
Principal III

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

hth

KnarfB

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

0693W00000bhQopQAE.jpg

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.

There doesn't seem to be a LL option for peripheral ETH on the NUCLEO-F429ZI

 

ypearsonai_0-1710794017658.png

cube 6.11.0

Right. For some complex drivers, like USB, ETH ...there is no LL driver existing - as you can see.

If you feel a post has answered your question, please click "Accept as Solution".