Skip to main content
Senior
September 23, 2025
Solved

CUBEMX 6.15 with Keil Full Assert bug

  • September 23, 2025
  • 2 replies
  • 541 views

Same problem here (Cube 6.15.0, Keil uVision 

Although HAL is selected,

regjoe_2-1758639075547.png

Cube installed both HAL and LL files for ADC and some other peripherals by mistake. 

regjoe_0-1758638667389.png

which results in a compile error

regjoe_1-1758639027356.png

../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

 

Best answer by Mahmoud Ben Romdhane

Hello @regjoe ,

 

While enabling ADC with HAL, stm32f4xx_ll_adc.c should not be generated.

The issue is confirmed, and an internal Ticket was submitted to the Development Team:

(Internal Ticket Number: 218904).

I will keep you up to date when the problem is solved.

 

Best Regards.

Mahmoud

2 replies

Technical Moderator
September 23, 2025

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.
regjoeAuthor
Senior
September 23, 2025

I've attached the .ioc and generated files by Cube.

Thanks

Technical Moderator
September 25, 2025

Hello @regjoe ,

 

I reproduced your behavior, and I did not get compilation errors.

The stm32f4xx_ll_adc.c is generated and not used.

 

MahmoudBenRomdhane_0-1758792848933.png

MahmoudBenRomdhane_1-1758792929333.png

 

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.
Pavel A.
Super User
September 23, 2025

Why USE_FULL_LL_DRIVER is defined if LL drivers are not wanted in the project?