cancel
Showing results for 
Search instead for 
Did you mean: 

STMCubeMx 6.14.1 Bug in ADC Clock Prescaler code generation

eliasgruber
Associate

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!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mahmoud Ben Romdhane
ST Employee

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.

View solution in original post

2 REPLIES 2
Mahmoud Ben Romdhane
ST Employee

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.

Mahmoud Ben Romdhane
ST Employee

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.