2021-07-21 09:59 PM
I updated to the latest 1.7.0 for IDE and 6.3.0 for MX and when I regenerate configuration code using MX I get the following for ADC clock configuration.
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;
PeriphClkInit.AdcClockSelection = ADCCLockSelection;
The second line gives an error, when I comment the second line out it compiles correctly. It seems that the code generation might have an error in it regarding this.
Caleb
2021-07-21 10:49 PM
I have also experienced a similar issue to this when regenerating a configuration. Even a simple label/name will cause the issue.
On my side it is causing multiple definitions in APB, AHB and SysCoreClock
multiple definition of `APBPrescTable'; ./Core/Src/system_stm32f4xx.o:(.rodata.APBPrescTable+0x0): first defined here
multiple definition of `AHBPrescTable'; ./Core/Src/system_stm32f4xx.o:(.rodata.AHBPrescTable+0x0): first defined here
multiple definition of `SystemCoreClock'; ./Core/Src/system_stm32f4xx.o:(.data.SystemCoreClock+0x0): first defined here
2021-07-22 01:29 AM
>> "PeriphClkInit.AdcClockSelection = ADCCLockSelection;"
Thank you, ticket entered.
If you can, please share your .ioc files.
2021-07-25 07:02 PM
2021-07-27 01:28 AM
The dev team has reproduced the problem.
Thank you very much !