2025-09-23 7:54 AM - last edited on 2025-09-23 9:23 AM by Amel NASRI
Same problem here (Cube 6.15.0, Keil uVision
Although HAL is selected,
Cube installed both HAL and LL files for ADC and some other peripherals by mistake.
which results in a compile error
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.c(25): error: 'stm32_assert.h' file not found
To get rid of this, I excluded the unnecessary file in the project as shown above and the error is gone.
Edit: Moved from CUBE MX with Keil 5.39 Full Assert bug in stm32l0xx DFP
2025-09-23 9:26 AM
Hello @regjoe ,
Let me thank you for posting.
For more investigation, I suggest please that you provide your Ioc.File.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-09-23 9:35 AM