cancel
Showing results for 
Search instead for 
Did you mean: 

Updated MX to latest and get incorrect code generated...

C Austin
Associate II

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

4 REPLIES 4
dmberry
Associate

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

Mike_ST
ST Employee

>> "PeriphClkInit.AdcClockSelection = ADCCLockSelection;"

Thank you, ticket entered.

If you can, please share your .ioc files.

C Austin
Associate II

IOC file attached.

This file was from previous version. Also getting it when I do a new file from current (latest version).

Caleb

The dev team has reproduced the problem.

Thank you very much !