STM32CubeIDE generates reproducible erroneous code for the STM32L412 Nucleo-64 using ADC1 or ADC2 after a recent update to 1.7.0
STM32CubeIDE
Version: 1.7.0
Build: 10852_20210715_0634 (UTC)
In AL_ADC_MspInit an erroneos line is generated after a recent update of STM32CubeIDE and has to be commented out:
PeriphClkInit.AdcClockSelection = ADCCLockSelection;
The following error message is generated
../Core/Src/stm32l4xx_hal_msp.c: In function 'HAL_ADC_MspInit':
../Core/Src/stm32l4xx_hal_msp.c:107:18: error: 'RCC_PeriphCLKInitTypeDef' {aka 'struct <anonymous>'} has no member named 'AdcClockSelection'; did you mean 'I2c1ClockSelection'?
107 | PeriphClkInit.AdcClockSelection = ADCCLockSelection;
| ^~~~~~~~~~~~~~~~~
| I2c1ClockSelection
../Core/Src/stm32l4xx_hal_msp.c:107:38: error: 'ADCCLockSelection' undeclared (first use in this function); did you mean 'SdioClockSelection'?
107 | PeriphClkInit.AdcClockSelection = ADCCLockSelection;
| ^~~~~~~~~~~~~~~~~
| SdioClockSelection
../Core/Src/stm32l4xx_hal_msp.c:107:38: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Core/Src/subdir.mk:40: Core/Src/stm32l4xx_hal_msp.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.
