Sorry, you need to enable JavaScript to visit this website.

compile linux application in SDK

Unsolved
1 post / 0 new
suppamax's picture
suppamax
Junior(0)
compile linux application in SDK

Hi,

I am trying to compile a modified version of the FFT project described in this wiki:
http://www.wiki.xilinx.com/Zynq-7000+AP+SoC+Spectrum+Analyzer+part+5+-+A...
My changes consist of a different board and a simpler SW (I am only interested in HW accelerated FFT).

I am able to compile the RTL, but I have issues with the C. I want to run the SW under linux (not petalinux).

In SDK, I created a the BSP, then a C project targeting linux; in the compiler a linker options of the C projects I indicated the include folder of the BSP.
Building the project I have errors like
../../standalone_bsp_0/ps7_cortexa9_0/lib/libxil.a(xil_printf.o): In function `getnum':
/home/suppamax/Designs/AXI_FFT_test/AXI_FFT_test.sdk/standalone_bsp_0/ps7_cortexa9_0/libsrc/standalone_v4_2/src/xil_printf.c:131: undefined reference to `__ctype_ptr__'
/home/suppamax/Designs/AXI_FFT_test/AXI_FFT_test.sdk/standalone_bsp_0/ps7_cortexa9_0/libsrc/standalone_v4_2/src/xil_printf.c:131: undefined reference to `__ctype_ptr__'

In my understanding, the BSP gets recompiled using arm-xilinx-linux-gnueabi-gcc (once created, BSP was successfully compiled using arm-xilinx-eabi-gcc) because I want to use xil library (I guess it's required to get the definitions of Xil_In32 and similars), but arm-xilinx-linux-gnueabi-gcc is not aware of the definition of __ctype_ptr__.

How do I have to modify my flow?
Why this problem didn't pop up in the wiki?

Thanks,
Max