xil_cache 赛灵思 SDK 错误

xil_cache error in Xilinx SDK

我正在 Digilent Atlys 上开发我的一个小项目,在所有标准生成网表和比特流并导出到 SDK 之后,我碰巧遇到一个奇怪的错误,指出 xil_cache.h不存在于任何地方(即使它在那里)。

我需要说明的是,如果我不添加中断控制器和定时器它也能工作,但我确实需要它们。

有没有人遇到过这个错误?


错误信息:

08:24:21 **** Build of configuration Debug for project hiworld ****
make all 
'Building file: ../src/helloworld.c'
'Invoking: MicroBlaze gcc compiler'
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -I../../hiworld_bsp/microblaze_0/include -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.50.c -mno-xl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/helloworld.d" -MT"src/helloworld.d" -o "src/helloworld.o" "../src/helloworld.c"
'Finished building: ../src/helloworld.c'
' '
'Building file: ../src/platform.c'
'Invoking: MicroBlaze gcc compiler'
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -I../../hiworld_bsp/microblaze_0/include -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mcpu=v8.50.c -mno-xl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/platform.d" -MT"src/platform.d" -o "src/platform.o" "../src/platform.c"
../src/platform.c:43:23: fatal error: xil_cache.h: No such file or directory
compilation terminated.
make: *** [src/platform.o] Error 1

08:24:21 Build Finished (took 734ms)

设置以下环境变量后尝试:

XILINX = C:\Xilinx.5\ISE_DS
XILINX_EDK = C:\Xilinx.5\ISE_DS\EDK\bin\nt64

这是 Xilinx 论坛中的建议,似乎可以解决问题。

一位用户写道:

“魔法 :-)

我创建了一个批处理文件来启动它,据我所知,该批处理文件中存在路径变量

我设置为

set path=""
XILINX = C:\Xilinx.5\ISE_DS
XILINX_EDK = C:\Xilinx.5\ISE_DS\EDK\bin\nt64
C:\Xilinx.5\ISE_DS\EDK\bin\nt64\xsdk.exe

有趣的是,SDK 的快捷方式首先包含一个 link 到 settings64.bat,我假设它正确设置了所有这些变量,但看起来它没有正确设置它们!

我不得不承认,由于文档有点模糊,所以走到这一步很费力。"

Here您可以找到该页。