2025-04-29 3:10 AM - last edited on 2025-04-29 3:35 AM by Andrew Neil
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!
2025-04-29 4:14 AM
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