How to use LL (low level) drivers in CubeMX STM32?

Alex I picture Alex I · Dec 26, 2017 · Viewed 18k times · Source

I'm creating a blank project for a STM32F103 microcontroller using STM32CubeMX. Using HAL drivers (the default), I got a blinky example working pretty quickly, but I'd like to try out LL (low level) drivers instead of HAL.

When I go to Project > Settings > Advanced Settings in CubeMX, I see the peripherals listed, and there is a pulldown next to each one which only has one option, HAL. According to the docs this is where I could select LL or HAL for each peripheral.

How do I enable LL drivers in STM32CubeMX?

Details: I did a clean install of STM32CubeMX (4.23.0) on Ubuntu (16.04) and created a new project for STM32F103C8 microcontroller (this is on a "Blue Pill" board). I'm using SW4STM32 IDE, everything more or less worked out of the box except I had to select STLink V2 instead of V2.1 in a config file.

Answer

Bedoo00 picture Bedoo00 · Mar 7, 2019

from project manager under advanced setting from driver selector you can change HAL to LL for all peripherals