cancel
Showing results for 
Search instead for 
Did you mean: 

Hello, Problem with new firmware version FW_F7 V1.16.1

SCAYL.1
Associate

When i open my .ioc file a popup windows appears with

"this project was setup using STM32Cube firmware version FW_F7 V1.16.0 then new STM32Cube V6.2.1 works best with ...."

I've tried the two options "continue" and "update" after that i have the following errors when i build my project after the code generation

c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.o:C:/V2_TEST/Debug/../Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h:74: multiple definition of `SystemCoreClock'; Core/Src/system_stm32f7xx.o:C:/V2_TEST/Debug/../Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h:74: first defined here

c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.o:(.rodata.AHBPrescTable+0x0): multiple definition of `AHBPrescTable'; Core/Src/system_stm32f7xx.o:(.rodata.AHBPrescTable+0x0): first defined here

c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.o:(.rodata.APBPrescTable+0x0): multiple definition of `APBPrescTable'; Core/Src/system_stm32f7xx.o:(.rodata.APBPrescTable+0x0): first defined here

c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.o: in function `SystemInit':

C:/V2_TEST/Debug/../Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c:135: multiple definition of `SystemInit'; Core/Src/system_stm32f7xx.o:C:/V2_TEST/Debug/../Core/Src/system_stm32f7xx.c:135: first defined here

c:\st\stm32cubeide_1.4.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.o: in function `SystemCoreClockUpdate':

C:/V2_TEST/Debug/../Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c:186: multiple definition of `SystemCoreClockUpdate'; Core/Src/system_stm32f7xx.o:C:/V2_TEST/Debug/../Core/Src/system_stm32f7xx.c:186: first defined here

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:137: Labopur.elf] Error 1

Any clue or workaround ? It's very annoying because now it is impossible to modify my hardware definition ..

Regards

Stéphane

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

> C:/V2_TEST/Debug/../Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c:186: multiple definition of `SystemCoreClockUpdate';

The "templates" folder should not be part of the source folders you compile. Delete it from there, or exclude that directory from the build.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

> C:/V2_TEST/Debug/../Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c:186: multiple definition of `SystemCoreClockUpdate';

The "templates" folder should not be part of the source folders you compile. Delete it from there, or exclude that directory from the build.

If you feel a post has answered your question, please click "Accept as Solution".

Problem solved

Thank you