cancel
Showing results for 
Search instead for 
Did you mean: 

STMCubeMx 6.14.1 Bug in ADC Clock Prescaler code generation

eliasgruber
Visitor

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 REPLY 1
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