UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor phohoang
Visitor
4,919 Views
Registered: ‎06-05-2009

Linking issue with libxilflash.a

Hi,

 

It appears that I have the libxilflash.a (80K) generated and in the lib directory. However, the linker could not find some symbols in this library.

 

Anyone happens to came accross this error and solved it. Please give us some hints. Thanks and it is appreciated.

 

mb-gcc -O2 /cygdrive/c/Base505/sw/xflash/src/xflash.c /cygdrive/c/Base505/sw/xflash/src/get_input.c  -o flashtest/executable.elf \
    -mno-xl-soft-mul -mxl-pattern-compare -mcpu=v7.10.d  -Wl,-T -Wl,/cygdrive/c/Base505/flashtest/flashtest_linker_script.ld  -g    -I./microblaze_0/include/  -Isw/include/  -L./microblaze_0/lib/  \
 


/cygdrive/c/Base505/sw/xflash/src/xflash.c:409: undefined reference to `XFlash_Unlock'
/cygdrive/c/Base505/sw/xflash/src/xflash.c:338: undefined reference to `XFlash_Erase'
/cygdrive/c/Base505/sw/xflash/src/xflash.c:365: undefined reference to `XFlash_Write'
/cygdrive/c/Base505/sw/xflash/src/xflash.c:340: undefined reference to `XFlash_Read'
/cygdrive/c/Base505/sw/xflash/src/xflash.c:400: undefined reference to `XFlash_Initialize'
/cygdrive/c/Base505/sw/xflash/src/xflash.c:402: undefined reference to `XFlash_Reset'
/cygdrive/c/Base505/sw/xflash/src/xflash.c:403: undefined reference to `XFlash_DeviceControl'
undefined reference to `XFlash_DeviceControl'
collect2: ld returned 1 exit status
make: *** [flashtest/executable.elf] Error 1
Done!

 

 

0 Kudos
2 Replies
Visitor memoxilinx
Visitor
4,742 Views
Registered: ‎07-08-2009

Re: Linking issue with libxilflash.a

the problem is that you are not includin de library. to resolve that you need to open in xps project in the tab applications rigth clic over the project then select compiling options, and then select: paths and options,  and in the field Libraries to link against put xilflash. and then compile.
Andres Guillermo Velasquez Gomez
Laboratorio Sirius.
sirius.utp.edu.co
Tags (1)
Highlighted
Participant jairoscz
Participant
4,261 Views
Registered: ‎04-13-2009

Re: Linking issue with libxilflash.a

Thanks memoxilinx.  FYI, I am developing in SDK and the process is to simply add "xilflash" (without the quotes) under "PowerPC C Linker" Libraries. 
0 Kudos