STM32CbueMX之更新工程出现Symbol SystemInit multiply defined (by system_stm32l0xx_1.o and system_stm32l0xx.o

由于使用的HAL库更新和STM32CubeMX软件更新,所以打开旧工程的时候会迁移工程到新版本。

重新生成代码后出现以下错误:

原因是:文件重复包含。删除第一个重复文件;即可编译成功。

  全篇完。

本人是一个嵌入式未入门小白,博客仅仅代表我个人主观见解,记录成长笔记。
笔记是以最简单的方式,只展示最核心的原理。
若有与 大神大大 见解有歧义,我绝对坚信 大神大大 见解是对的,我的是错的。
若无积分等无法下载源码,可加入QQ群657407920下载交流经验。感谢~!

 

 

Build started: Project: project *** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\cjc\keil\ARM\ARMCC\Bin' Build target 'Target 1' Note: source file '..\fimware\cmisi\device\system_py32f071.c' - object file renamed from '.\Objects\system_py32f071.o' to '.\Objects\system_py32f071_1.o'. assembling startup_py32f071xx.s... linking... .\Objects\project.axf: Error: L6200E: Symbol __asm___17_system_py32f071_c_5d646a67____REV16 multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol __asm___17_system_py32f071_c_5d646a67____REVSH multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol AHBPrescTable multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol APBPrescTable multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol HSIFreqTable multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol SystemCoreClock multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol SystemCoreClockUpdate multiply defined (by system_py32f071_1.o and system_py32f071.o). .\Objects\project.axf: Error: L6200E: Symbol SystemInit multiply defined (by system_py32f071_1.o and system_py32f071.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. ".\Objects\project.axf" - 8 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:02
06-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值