2017-09-14 01:45 PM
There might be an ADC clock issue when the project is configured with CubeMx 4.22.1 and 1.9.0 CubeL4.
When SAI clock is selected for ADC in CubeMx the HAL_RCCEx_PeriphCLKConfig called by SystemClock_Config returns HAL_ERROR.Everything works if SYSCLK is selected as ADC clock##. SAI clock configuration works correctly with the previous versions of CubeMx and CubeL4 libraries.2017-09-15 05:58 PM
It looks like it's CubeMx problem: PLLM division factor for PLL is not included in automatically generated SystemClock_Config function. Adding initialization of PLLM manually fixed the problem.