标题:
中断注册出错,
[打印本页]
作者:
aclqz
时间:
2008-5-20 20:22
标题:
中断注册出错,
在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
作者:
aclqz
时间:
2008-5-21 09:38
作者:
kzw
时间:
2008-5-21 20:44
楼主,你把代码和执行等空间设置到了onchip中了,溢出报错了,修改一下设置就好了。
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/)
Powered by Discuz! 7.0.0