我仿照2C35的开发板做了一块板子,用的FPGA是2C70,我没用CPLD,用EPCS直接配置FPGA.
现在FLAH,SRAM都可以正常工作.
在NIOS里使用例程simple_socket_server,在Build Project时不能通过,错误信息如下:
Compiling network_utilities.c...
../network_utilities.c: In function `generate_and_store_mac_addr':
../network_utilities.c:187: error: `LAST_SECTOR_OFFSET' undeclared (first use in this function)
../network_utilities.c:187: error: (Each undeclared identifier is reported only once
../network_utilities.c:187: error: for each function it appears in.)
../network_utilities.c: In function `get_mac_addr':
../network_utilities.c:205: warning: unused variable `signature'
../network_utilities.c:206: warning: unused variable `netif'
make: *** [obj/network_utilities.o] Error 1
请教我该如何修改我的配置?
在开发板上如果选择UNSPECIFIED BOARD
编译NIOS的例程simple_socket_server
它会出现如下错误:
make -s all
Compiling alt_error_handler.c...
Compiling led.c...
Compiling lwip_init.c...
Compiling network_utilities.c...
../network_utilities.c: In function `generate_and_store_mac_addr':
../network_utilities.c:187: error: `LAST_SECTOR_OFFSET' undeclared (first use in this function)
../network_utilities.c:187: error: (Each undeclared identifier is reported only once
../network_utilities.c:187: error: for each function it appears in.)
../network_utilities.c: In function `get_mac_addr':
../network_utilities.c:205: warning: unused variable `signature'
../network_utilities.c:206: warning: unused variable `netif'
make: *** [obj/network_utilities.o] Error 1
Build completed
请问如何解决?
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |