We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Good afternoon,
Recently, I started using stm32 series of microcontrollers and had good experience with the stm32f429i discovery board. Now I tried programming the stm32f100c8t6 in keil using the standard peripherical library, but when I build the target I get these four errors and don't know how to fix them:
Build target 'Target 1' compiling main.c... linking... .\obj\Blink.axf: Error: L6200E: Symbol SystemCoreClock multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o). .\obj\Blink.axf: Error: L6200E: Symbol AHBPrescTable multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o). .\obj\Blink.axf: Error: L6200E: Symbol SystemCoreClockUpdate multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o). .\obj\Blink.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_stm32f10x_1.o and system_stm32f10x.o). Not enough information to list image symbols. Not enough information to list the image map. Finished: 2 information, 0 warning and 4 error messages. ".\obj\Blink.axf" - 4 Error(s), 0 Warning(s). Target not created.
Can you please help me to fix these errors?
I have added my project in GitHub, this is the link: github.com/.../STM32F100C8T6-Projects
Thanks, Pablo
Hello Pablo, just remove the file system_stm32f10x.c from the sys-folder, as otherwise it is included twice into your project.
Kind regards, Ralf
R.Kopsch Senior Applications Engineer ARM Germany GmbH