Posted on August 01, 2017 at 09:46Short answer: Make sure the USE_HAL_DRIVER is defined as part of your build system (CFLAGS += -DUSE_HAL_DRIVER).Detailed Answer: When you generate the code using CubeMx the HSE_VALUE goes into the file stm32l4xx_hal...