Skip to main content
Vivek Karna
Associate
August 25, 2020
Solved

How to use just the HAL libraries in the STM32CubeIDE project without using CubeMX features and MX functions.

  • August 25, 2020
  • 2 replies
  • 2980 views

I want to a project from the scratch using the STM32CubeIDE for a STM32 Nucleo board. But I don't want to use the CubeMX feature of the IDE. I just to use the HAL libraries like we can do Ac6 workbench software. In Ac6 software, we have an option to use the SPL or HAL library to build the code, can't we do in this IDE also, with just the use of HAL library not MX thing.

TIA.

This topic has been closed for replies.
Best answer by KnarfB

You can create a new STM32 project as usual and delete the .ioc file. No more code generation.

Alternatively, you can select Targeted Project Type: Empty during STM32 project creation.

In both cases you have to select a target chip first. This is needed for generating the right linker description file etc..

Drivers (CMSIS + HAL + LL) are available separately in the STMCube packages. You can mix them in as needed.

2 replies

KnarfB
KnarfBBest answer
Super User
August 25, 2020

You can create a new STM32 project as usual and delete the .ioc file. No more code generation.

Alternatively, you can select Targeted Project Type: Empty during STM32 project creation.

In both cases you have to select a target chip first. This is needed for generating the right linker description file etc..

Drivers (CMSIS + HAL + LL) are available separately in the STMCube packages. You can mix them in as needed.

Vivek Karna
Associate
August 26, 2020

Thank you @KnarfB​. It worked.