Board logo

标题: [求助]问题已解决,谢 [打印本页]

作者: yzj1109    时间: 2006-12-4 14:43     标题: [求助]问题已解决,谢

在编译的过程中出现了下面的信息,向各位大虾求教红色字体部分的错误是怎么回事?

make -s all
Compiling led.c...
Linking leds.elf...
../led.c:24: warning: return type of 'main' is not `int'
/cygdrive/d/ProFiles/NIOS/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region ram is full (leds.elf section .text). Region needs to be 9092 bytes larger.
/cygdrive/d/ProFiles/NIOS/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: address 0x43d0 of leds.elf section .rwdata is not within region ram
/cygdrive/d/ProFiles/NIOS/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [00001020 -> 00001233] overlaps section .text [00001020 -> 00003783]
E:/DOCUMENT/FPGA/EXPERIMENT/BLOCKWY/leds_syslib/Debug/libleds_syslib.a(altera_avalon_uart.o)(.text+0x238): In function `alt_get_errno':
/cygdrive/d/ProFiles/NIOS/components/altera_hal/HAL/inc/sys/alt_errno.h:81:
  
Unable to reach errno (at 0x00001024) from the global pointer (at 0x0000c36c) because the offset (-45896) is out of the allowed range, -32678 to 32767.

[此贴子已经被作者于2006-12-7 8:36:23编辑过]


作者: altonchan    时间: 2006-12-4 14:47

Some part of your memory is out of range ...
Try to assign different memory setting in the system library setting ( on the right hand side )

作者: kzw    时间: 2006-12-4 18:31

你的程序空间溢出,你看看你的rodata放在什么地方。
作者: yzj1109    时间: 2006-12-5 17:17     标题: 问题仍然没有解决阿

因为是演示程序,代码较小。所以在system中只设计了on_chip_memory(rom),大小为32bit/4K

rodata就放在rom中,还是有错阿


作者: kzw    时间: 2006-12-5 21:33

Region needs to be 9092 bytes larger,演示代码也不止又4K,所以说你的空间不够。
作者: yzj1109    时间: 2006-12-7 08:35

谢谢斑竹,问题已经解决

[此贴子已经被作者于2006-12-7 8:35:26编辑过]






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0