Xilinx EDK中的一个问题。。。Virtex-II Pro ML310板
时间:10-02
整理:3721RD
点击:
我在microblaze_0上建了个软件工程,添加.c测试文件之后,运行,老提示这样:
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c: In function 'main':
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c:103: error: 'XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR' undeclared (first use in this function)
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c:103: error: (Each undeclared identifier is reported only once
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c:103: error: for each function it appears in.)
make: *** [shared1/executable.elf] Error 1
Done!
'XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR'是c程序中用到的。
到底是怎么回事呢?求帮忙~~~
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c: In function 'main':
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c:103: error: 'XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR' undeclared (first use in this function)
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c:103: error: (Each undeclared identifier is reported only once
/cygdrive/g/v2/labs/sharedtwo/sources/shm.c:103: error: for each function it appears in.)
make: *** [shared1/executable.elf] Error 1
Done!
'XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR'是c程序中用到的。
刚开始在microblaze_0的xparameters.h中看了,确实没定义'XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR' ,我不知道为什么啊~~刚学没多久,然后就把microblaze_0删了又重新添加,这次xparameters.h中的确定了'XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR' ,但还是提示那样的错误。
到底是怎么回事呢?求帮忙~~~
求帮忙啊 卡在这儿好几天了自己找不出结果~~~
有没有也用EDK建核的朋友啊?
在
XGpio GpioOutput;
处加一句
u16 XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR;
或者unsign int XPAR_SHARED_BRAM_IF_CNTLR_0_BASEADDR;
就可以了
只是没有定义而已