Skip to main content
March 8, 2020
Question

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

  • March 8, 2020
  • 1 reply
  • 2163 views

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?

This topic has been closed for replies.

1 reply

PBull
Associate II
March 10, 2020

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
November 2, 2021

it helped me a lot

really really thank you