开云十大最新推荐

登录 免费注册 开云十大最新推荐 | 行业黑名单 | 帮助
维库电子市场网
技术交流 | 电路欣赏 | 工控天地 | 数字广电 | 通信技术 | 电源技术 | 测控之家 | EMC技术 | ARM技术 | EDA技术 | PCB技术 | 嵌入式系统
驱动编程 | 集成电路 | 器件替换 | 模拟技术 | 新手园地 | 单 片 机 | DSP技术 | MCU技术 | IC 设计 | IC 产业 | CAN-bus/DeviceNe

这样的L6200E错误该如何解决

作者:socitiac 栏目:ARM技术
这样的L6200E错误该如何解决
在编译工程文件中,显示如下的错误信息
Error: L6200E: Symbol _sys_close multiply defined (by sys_io.o and target.0)
还有_sys_write,_sys_read等几个,这几个可以在tagart.c中解决(增加该部分内容目的是什么呢?);

但是对这个错误
Error: L6200E: Symbol __semihosting_swi_guard multiply defined (by use_semi.o and use_no_semi.o),这个错误该如何消除呢,因为我找不到这两个文件的源文件呀! 在网上查了一下,可以通过如下措施解决,但还是不行呀,各位谁遇到过该现象吗,如何解决的呀,也请周工帮看看呀
#pragma import(__use_no_semihosting_swi)

2楼: >>参与讨论
gyf2000
re
Symbol __semihosting_swi_guard multiply defined (by use_semi.o and
use_no_semi.o).
This error is reported when functions that use semihosting SWIs are linked in from the C
library, in the presence of the __use_no_semihosting_swi guard. See the ADS 1.2
Compilers and Libraries Guide, section 4.2.2, "Building an application for a nonsemihosted
environment" and ADS 1.2 Developer Guide, Section 6.10.1, "LINKer error
__semihosting_swi_guard".
To resolve this, you must provide your own implementations of these C library functions.
The ADS 1.2 \Examples\embedded directory contains examples of how to re-implement
some of the more common SWI-using functions - see the file retarget.c.
To identify which SWI-using functions are being linked-in from the C libraries:
1. LINK with 'armlink -verbose -errors err.txt'
2. Search err.txt for occurrences of '__I_use_semihosting_swi'
For example:
:
Loading member sys_exit.o from c_a__un.l.
reference : __I_use_semihosting_swi
definition: _sys_exit
:
This shows that the SWI-using function _sys_exit is being linked-in from the C library. To
prevent this, you will need to provide your own implementation of this function.

参与讨论
昵称:
讨论内容:
 
 
相关帖子
LPC2210的速度问题
代码下到了FLASH中,在执行过程中,是如何拷到RAM运行的?
程序直接进入SoftwareInterrupt根本进入不了main是怎么回事呢?
max708为什么不能正常工作?
关于topruler发贴指ZLG盗版之事


Copyright © 1998-2006 fzqkw.cn 浙ICP证030469号