MyFPGA Forum

 找回密码
 注册
搜索
查看: 6732|回复: 2
打印 上一主题 下一主题

nios II 编译错误

[复制链接]
跳转到指定楼层
1#
发表于 2012-3-29 16:39:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在SOPC中做了一个以太网的软核,想在nios中用simple_socket_server_rgmii测试一下,但是一直有错误无法解决,用开发版自带的软核测试也是同样的错误,纠结了,不知如何解决。。。我用的是nios11.0,错误如下:
Compiling network_utilities.c...
../network_utilities.c: In function `generate_and_store_mac_addr':
../network_utilities.c:239: error: `EXT_FLASH_NAME' undeclared (first use in this function)
../network_utilities.c:239: error: (Each undeclared identifier is reported only once
../network_utilities.c:239: error: for each function it appears in.)
../network_utilities.c: In function `get_board_mac_addr':
../network_utilities.c:316: error: `EXT_FLASH_BASE' undeclared (first use in this function)
../network_utilities.c: In function `FindLastFlashSectorOffset':
../network_utilities.c:385: error: `EXT_FLASH_NAME' undeclared (first use in this function)

请大家帮忙解决一下,谢谢!
2#
 楼主| 发表于 2012-3-30 09:42:22 | 只看该作者
昨天找了一下午没找到错误,今天对照着开发板的web_server一行一行看,终于发现了错误,我的以太网软核用的是CFI_flash。simple_socket_server_rgmii中networ_utilities.c中的EXT_FLASH_BASE应该为CFI_FLASH_BASE,编译才能通过,犯了低级错误了,还好找到了
3#
发表于 2012-3-30 13:07:25 | 只看该作者
回复 2# yujian


    顶一个
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|MyFPGA

GMT+8, 2024-4-28 21:15 , Processed in 0.039600 second(s), 14 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表