Why is flash library not recognized by tools?

If you have a simple question and just want an answer.
gilbertmlliu
Member
Posts: 10
Joined: Wed Jan 11, 2012 1:20 am

Why is flash library not recognized by tools?

Post by gilbertmlliu »

Hi,

I recently upgraded my processor from XS1-L1A to XS1-L10A, as well as updated my development tool to xTIMEcomposer.

I have some errors after I imported my project into the xTIMEcomposer, see the following:

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
 
Those undefined reference are from the flash.h, which is already included in the project.
Why the project didn't link to those header files?
How could I get more detail about the last two errors and fix them.
Please kindly advise me some hints and direction.
Greatly appreciate! Thanks!


User avatar
sethu_jangala
XCore Expert
Posts: 589
Joined: Wed Feb 29, 2012 10:03 am

Post by sethu_jangala »

You need to include library flash in your application. You can do that by adding XCC_FLAGS = -lflash in your application Makefile.

mogren3000
Member++
Posts: 19
Joined: Tue Apr 29, 2014 8:12 am

Post by mogren3000 »

Klick on the makefile in you project and then add the "XCC_FLAGS=-lflash" in the "Mapper" field