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

请问:这是什么错误?

请问:这是什么错误?

在做定时器中断的时候遇到了如下错误

不知道是什么意思

困惑啊

 

*** 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:25: warning: implicit declaration of function `alt_irq_register'
../hello_led.c:40:2: warning: no newline at end of file
Linking hello_led_0.elf...
/cygdrive/d/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region RAM is full (hello_led_0.elf section .text). Region needs to be 3972 bytes larger.
/cygdrive/d/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region RAM is full (hello_led_0.elf section .rwdata). Region needs to be 16 bytes larger.
/cygdrive/d/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .rodata [00000820 -> 00000823] overlaps section .exceptions [00000820 -> 000009c7]
/cygdrive/d/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .rwdata [00000824 -> 0000100f] overlaps section .exceptions [00000820 -> 000009c7]
/cygdrive/d/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [00000820 -> 00000a37] overlaps section .exceptions [00000820 -> 000009c7]
obj/hello_led.o(.text+0x88): In function `main':
../hello_led.c:24: Unable to reach count (at 0x00000820) from the global pointer (at 0x00008fd0) because the offset (-34736) is out of the allowed range, -32678 to 32767.

collect2: ld returned 1 exit status
make: *** [hello_led_0.elf] Error 1
Build completed

 Region needs to be 3972 bytes larger

你是在FPGA上使用的片上ram吗,系统提示空间不够。

这个版主不太冷 =========================== 我的中电网博客:http://blog.chinaecnet.com/u/20/index.htm
程序地址出错了,更改一下就行了。
在交流中前进,共同实现nios的应用。
返回列表