cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 - Project for Keil, henerated by CubeMX, has error while linking

EEuge
Senior

Hello!

In attach - project for CubeMX.

If I generate project for Keil and try to compile, I get errors

H743\H743.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol SystemCoreClock multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol D1CorePrescTable multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol SystemD2Clock multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol __asm___18_system_stm32h7xx_c_5d646a67____REV16 multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol __asm___18_system_stm32h7xx_c_5d646a67____REVSH multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol __asm___18_system_stm32h7xx_c_5d646a67____RRX multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

H743\H743.axf: Error: L6200E: Symbol SystemCoreClockUpdate multiply defined (by system_stm32h7xx_1.o and system_stm32h7xx.o).

Not enough information to list image symbols.

Not enough information to list load addresses in the image map.

Finished: 2 information, 0 warning and 8 error messages.

How to fix KEil project?

2 REPLIES 2
PBull
Associate III

Hi,

looks like you compiled the file system_stm32h7xx.c twice.

One file is usually provided by Keil (Keil-Packs). You will find it under "Device".

0693W000000TbFVQA0.png

Find and remove the other file.

Peter.

Fish
Associate II

it helped me a lot

really really thank you