我仿照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 请教我该如何修改我的配置? |