首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

中断注册出错,

中断注册出错,

在nios2 6.0环境下,写了一个网卡驱动 ,但是一加载接受中断,就出现如下的错误,还有一个在main()函数下调用alt_main()就可以运行,而改成 任意其他的函数就出现错误,函数体没有改变, 就函数名改了.这alt_main()和程序运行有着什么关系.
**** Incremental build of configuration Debug for project hello_led_0 ****

make -s all
Compiling hello_led.c...
../hello_led.c: In function `main':
../hello_led.c:61: warning: implicit declaration of function `alt_irq_register'
../hello_led.c:66: warning: implicit declaration of function `alt_main'
Linking hello_led_0.elf...
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region onchip_memory_0 is full (hello_led_0.elf section .text). Region needs to be 35020 bytes larger.
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .rodata [02190000 -> 021904bf] overlaps section .text [02190000 -> 021998cb]
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .rwdata [021904c0 -> 02190e6f] overlaps section .text [02190000 -> 021998cb]
/cygdrive/c/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [02190e70 -> 02190f73] overlaps section .text [02190000 -> 021998cb]
collect2: ld returned 1 exit status
make: *** [hello_led_0.elf] Error 1
Build completed



楼主,你把代码和执行等空间设置到了onchip中了,溢出报错了,修改一下设置就好了。
在交流中前进,共同实现nios的应用。
返回列表