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!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer xlgforever
Observer
114 次查看
注册日期: ‎05-23-2019

导入XAPP1026中KC705开发板的例子到SDK14.3中的问题

我按照下面链接中的操作,在SDK14.3中导入了KC705开发板的例子:

https://china.xilinx.com/support/documentation/application_notes/xapp1026.pdf

存在两个如下问题:

1、导入后workspace的内容如下图,在硬件平台目录下并没有xml文件:

image.png

2、如上图所示,在导入后SDK会自动进行编译,但是两个BSP包和两个对应的应用包都会报错,而且错误信息一致,如下图:

app报错:

Building file: ../src/dispatch.c
Invoking: MicroBlaze gcc compiler
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -Wl,--no-relax -D __XMK__ -I../../socket_apps_bsp/microblaze_0/include -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mno-xl-soft-div -mcpu=v9.4 -mno-xl-soft-mul -mxl-multiply-high -mhard-float -mxl-float-convert -mxl-float-sqrt -MMD -MP -MF"src/dispatch.d" -MT"src/dispatch.d" -o"src/dispatch.o" "../src/dispatch.c"
../src/dispatch.c:1:0: error: 'v9.4' is an invalid argument to -mcpu=
make: *** [src/dispatch.o] 错误 1

BSP报错:

make -k all 
"Running Make include in microblaze_0/libsrc/axidma_v8_0/src"
make -C microblaze_0/libsrc/axidma_v8_0/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/axidma_v8_0/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/axiethernet_v4_2/src"
make -C microblaze_0/libsrc/axiethernet_v4_2/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/axiethernet_v4_2/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/bram_v4_0/src"
make -C microblaze_0/libsrc/bram_v4_0/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/bram_v4_0/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/cpu_v2_2/src"
make -C microblaze_0/libsrc/cpu_v2_2/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/cpu_v2_2/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/intc_v3_2/src"
make -C microblaze_0/libsrc/intc_v3_2/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/intc_v3_2/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/lwip141_v2_2/src"
make -C microblaze_0/libsrc/lwip141_v2_2/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/lwip141_v2_2/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/standalone_v4_2/src"
make -C microblaze_0/libsrc/standalone_v4_2/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/standalone_v4_2/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/tmrctr_v3_0/src"
make -C microblaze_0/libsrc/tmrctr_v3_0/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/tmrctr_v3_0/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/uartlite_v3_0/src"
make -C microblaze_0/libsrc/uartlite_v3_0/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/uartlite_v3_0/src/make.include] 错误 255
"Running Make include in microblaze_0/libsrc/xilmfs_v2_0/src"
make -C microblaze_0/libsrc/xilmfs_v2_0/src -s include  "SHELL=sh.exe" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.4 -mhard-float -mlittle-endian -mno-xl-soft-div -mno-xl-soft-mul -mxl-barrel-shift -mxl-float-convert -mxl-float-sqrt -mxl-multiply-high -mxl-pattern-compare" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections"
make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x41c03d)
make: *** [microblaze_0/libsrc/xilmfs_v2_0/src/make.include] 错误 255
make: 由于错误目标“all”并未重新创建。

可以看出,BSP包中所有的IP核的驱动在编译的时候都出现了相同的问题

在采用了文首的网址中所提到的编译出错后的解决办法之后,错误没有得到任何解决。不明白是什么原因导致了编译错误。

0 项奖励
2 条回复2
Xilinx Employee
Xilinx Employee
72 次查看
注册日期: ‎05-11-2010

回复: 导入XAPP1026中KC705开发板的例子到SDK14.3中的问题

请确认是sdk 2014.3? XPS的sdk和vivado的sdk可能不兼容。

0 项奖励
Observer xlgforever
Observer
67 次查看
注册日期: ‎05-23-2019

回复: 导入XAPP1026中KC705开发板的例子到SDK14.3中的问题

确定是14.3,但是vivado是12.3

0 项奖励