[转帖]为什么flash库没有被工具识别?
Hi,
我最近升级了我的处理器来xs1-l10a xs1-l1a,以及更新我的开发工具xtimecomposer。
当我输入我的项目到xTIMEcomposer遇到一些错误,请看下面:
Creating DigitalController_L10A.xe
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_connect'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_disconnect'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_endWriteImage'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_getFactoryImage'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_getNextBootImage'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_startImageAdd'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_startImageReplace'
../src/xrayControllerMain.xc: Error: Undefined reference to 'fl_writeImagePage'
xmake[1]: *** [bin/Release/DigitalController_L10A.xe] Error 1
xmake: *** [bin/Release/DigitalController_L10A.xe] Error 2
那些未定义的引用是来自flash.h ,这是已经包含在项目中。
为什么这个项目没有链接到这些头文件?
我怎么能得到关于最后两个错误更多的细节和修复它们。
请告诉我一些提示和指导。
谢谢
回答:
你需要在你的应用程序中包含库的flash。你可以在你的应用程序Makefile添加XCC_FLAGS = -lflash 来做到。
回答2:
在你的项目中单击makefile并添加“xcc_flags = - lflash”在“Mapper”字段
发表时间:2014年8月20日9:45:32