L6200E:
There are two common examples where this occurs:
This error is reported when functions that use semihosting SWIs are linked in from the C library, in the presence of the
To resolve this, you must provide your own implementations of these C library functions.
The ADS 1.2 Examplesembedded directory contains examples of how to re-implement some of the more common SWI-using functions - see the file
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.
:
This shows that the SWI-using function _sys_exit is being linked-in from the C library.
This means that there are two conflicting definitions of
stdio.o
To identify why stdio.o is being linked-in, you must link with the linker's "verbose" switch, e.g.:
Then study
To move forward, the user may have to either:
- Eliminate the calls like
- Re-implement the
具体是什么意思看的也不是很懂,后来看了别人的解决方法是:在头文件中仅声明变量,而把变量的定义都放到c文件中去,问题就解决了。
即把
都放到lcd.c中就可避免该问题,时间不多,具体原因还有待研究。
上一篇:选ARM7还是选Cortex-M3?
下一篇:LPC2132学习中遇到的问题2
推荐阅读最新更新时间:2024-03-16 14:45