Skip to main content
Explorer II
April 29, 2025
Solved

STMCubeMx 6.14.1 Bug in ADC Clock Prescaler code generation

  • April 29, 2025
  • 2 replies
  • 516 views

When generating code with CubeMx version 6.14.1 there is a new bug (compared to version 6.13.0 where it worked fine).

MCU: STM32U5A5QJIxQ
Peripherals: ADC1/2 and/or ADC4
RCC Clocksource: SYSCLK

When you change parameter setting in ADC_Settings "Clock Prescaler" it has no effect on generated code. There should be following code (was generated like this in version 6.13.0):

LL_ADC_CommonInitTypeDef ADC_CommonInitStruct = {0};
...
ADC_CommonInitStruct.CommonClock = LL_ADC_CLOCK_ASYNC_DIV4;
LL_ADC_CommonInit(__LL_ADC_COMMON_INSTANCE(ADC1), &ADC_CommonInitStruct);

The ADC clock prescaler setting is common for all ADCs and DAC, but in version 6.14.1 there is no code generated which sets the prescaler anywhere!

 

 

 

Best answer by Mahmoud Ben Romdhane

Hello @eliasgruber ,

 

Let me thank you for bringing this issue to our attention.

An internal ticket is raised to the development team (Internal Ticket Number: 208960)

 

Thanks.

Mahmoud

2 replies

Technical Moderator
April 29, 2025

Hello @eliasgruber 

 

First let me thank you for posting and welcome to ST community.

Your request is under investigation, and I will get back to you ASAP.

 

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.
Technical Moderator
May 2, 2025

Hello @eliasgruber ,

 

Let me thank you for bringing this issue to our attention.

An internal ticket is raised to the development team (Internal Ticket Number: 208960)

 

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.