Stm32cube library seem to not be include, path problem?

Hi,

I start a STM32 project with arduino framework and wanted to switch to stm32cube due to IRQ Callback issue.

With arduino framework, i have no error but switching to stm32cube, i got :

error: ‘LL_USART_InitTypeDef’ was not declared in this scope

but i have #include <stm32l0xx_ll_gpio.h> which define LL_USART_InitTypeDef

When i go to the error with VSCode, the LL_USART_InitTypeDef is grey, so meaning there is some path or include problem.

Should i include them by hand ?

Another question about defined, i used :

#elif defined(STM32L0xx)

STM32L0xx should be declare at compile time, but it seems it is not anymore. I don’t know if there is a link beetween that declare and my lib problem.

thanks in advance.

As addon, on verbose build, the dependency graph show me the dependency of all of my inner library but not library from package stm32

Ok, so need to add :
build_flags = -DUSE_FULL_LL_DRIVER

It could be nice to add “#define STM32L0xx” like in the arduino framework to have compatibility.