cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mayankara
Contributor
Contributor
5,723 Views
Registered: ‎10-07-2014

xparameters.h error while compiling application on Xilinx SDK

Hi,

 

I am working with Kintex-7 KC705 platform.  I'm using Xilinx ISE 14.7. As per ug980 pdf (v2013.04), I have build the hardware on windows 7 (64-bit) machine.  I have build petalinux SDK (v2013.04) on Ubuntu 14.04 (64-bit machine).  Now, I'm trying to compile a peripheral test application and got the following error message:

 

"make all

Building file: ../src/testperiph.c

Invoking: MicroBlaze gcc compiler

mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -I../../fs_boot_bsp/microblaze_0/include -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mno-xl-soft-div -mcpu=v8.50.c -mno-xl-soft-mul -mxl-multiply-high -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/testperiph.d" -MT"src/testperiph.d" -o "src/testperiph.o" "../src/testperiph.c"

../src/testperiph.c:32:25: fatal error: xparameters.h: No such file or directory

compilation terminated.

make: *** [src/testperiph.o] Error 1"

 

Kindly provide help to resolve the error.

 

Regards,

 

Mayank

 

 

0 Kudos
3 Replies
yenigal
Xilinx Employee
Xilinx Employee
5,713 Views
Registered: ‎02-06-2013

Hi

 

Check if the below link suggestions helps

 

http://forums.xilinx.com/t5/Embedded-Development-Tools/Linux-SDK-fatal-error-xparameters-ps-h-No-such-file-or-directory/td-p/399141

Regards,

Satish

--------------------------------------------------​--------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful.
--------------------------------------------------​-------------------------------------------
0 Kudos
sampatd
Scholar
Scholar
5,701 Views
Registered: ‎09-05-2011

Can you attach the archived SDK workspace here?
0 Kudos
mayankara
Contributor
Contributor
5,676 Views
Registered: ‎10-07-2014

Hi Satish,

 

I have added all the libraries as mentioned in the link provided by you.Now, I'm facing some new errors:

 

08:44:49 **** Auto Build of configuration Debug for project fs_boot ****
make all
Building file: ../src/testperiph.c
Invoking: MicroBlaze gcc compiler
mb-gcc -DCONFIG_FS_BOOT=0 -Wall -O0 -g3 -IG:/XilinxISE14_7/Vivado142/SDK/2014.2/data/embeddedsw/lib/bsp/standalone_v4_1/src/microblaze -I"G:\XilinxISE14_7\Vivado142\SDK\2014.2\data\embeddedsw\XilinxProcessorIPLib\drivers\common_v1_00_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\intc_v2_06_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\petalinux_v2_00_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\tmrctr_v2_05_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\spi_v3_06_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\axi_7series_ddrx_v1_00_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\emaclite_v3_04_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\bram_v3_03_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\common_v1_00_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\cpu_v1_15_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\gpio_v3_01_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\iic_v2_08_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\spi_v3_06_a\src" -I"E:\Xilinx_lab\petalinux_hardware\SDK\SDK_Export\workspace\fs_boot_bsp\microblaze_0\libsrc\uartlite_v2_01_a\src" -IG:/XilinxISE14_7/Vivado142/SDK/2014.2/data/embeddedsw/lib/bsp/standalone_v4_1/src/common -c -fmessage-length=0 -I../../fs_boot_bsp/microblaze_0/include -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mno-xl-soft-div -mcpu=v8.50.c -mno-xl-soft-mul -mxl-multiply-high -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/testperiph.d" -MT"src/testperiph.d" -o "src/testperiph.o" "../src/testperiph.c"
../src/testperiph.c: In function 'main':
../src/testperiph.c:71:36: error: 'XPAR_MICROBLAZE_0_INTC_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:71:36: note: each undeclared identifier is reported only once for each function it appears in
../src/testperiph.c:69:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:76:12: warning: variable 'Status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:86:40: error: 'XPAR_DEBUG_MODULE_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:84:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:93:40: error: 'XPAR_RS232_UART_1_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:91:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:100:35: error: 'XPAR_MICROBLAZE_0_INTC_RS232_UART_1_INTERRUPT_INTR' undeclared (first use in this function)
../src/testperiph.c:97:11: warning: variable 'Status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:109:33: error: 'XPAR_DIP_SWITCHES_8BITS_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:105:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:116:34: error: 'XPAR_LEDS_8BITS_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:114:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:125:33: error: 'XPAR_PUSH_BUTTONS_5BITS_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:121:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:132:38: error: 'XPAR_ETHERNET_LITE_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:130:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:139:32: error: 'XPAR_MICROBLAZE_0_INTC_ETHERNET_LITE_IP2INTC_IRPT_INTR' undeclared (first use in this function)
../src/testperiph.c:136:11: warning: variable 'Status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:146:35: error: 'XPAR_IIC_MAIN_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:144:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:154:38: error: 'XPAR_AXI_TIMER_0_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:152:11: warning: variable 'status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:162:34: error: 'XPAR_MICROBLAZE_0_INTC_AXI_TIMER_0_INTERRUPT_INTR' undeclared (first use in this function)
../src/testperiph.c:159:11: warning: variable 'Status' set but not used [-Wunused-but-set-variable]
../src/testperiph.c:169:35: error: 'XPAR_QSPI_FLASH_DEVICE_ID' undeclared (first use in this function)
../src/testperiph.c:167:15: warning: variable 'status' set but not used [-Wunused-but-set-variable]
make: *** [src/testperiph.o] Error 1

Any help will be appreciated.

 

- Mayank

0 Kudos