我正在Digilent亚特兰上做我的一个小项目,在生成netlist和比特流并导出到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)发布于 2017-03-06 09:04:04
在设置以下环境变量后尝试:
XILINX = C:\Xilinx\14.5\ISE_DS
XILINX_EDK = C:\Xilinx\14.5\ISE_DS\EDK\bin\nt64这是在Xilinx论坛上提出的,似乎解决了这个问题。
用户写道:
“魔法:-)
我创建了一个批处理文件来启动它,根据我所知道的,路径变量位于该批处理文件中。
我把它设置为
set path=""
XILINX = C:\Xilinx\14.5\ISE_DS
XILINX_EDK = C:\Xilinx\14.5\ISE_DS\EDK\bin\nt64
C:\Xilinx\14.5\ISE_DS\EDK\bin\nt64\xsdk.exe有趣的是,SDK的快捷方式首先包含了一个指向设置s64.bat的链接,我假设它正确设置了所有这些变量,但是它似乎没有正确地设置它们!
我不得不承认,这只是一次长途跋涉,因为文档有点模糊。“
这里你可以找到页面。
https://stackoverflow.com/questions/42551031
复制相似问题