在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6062|回复: 14

[求助] 关于niosII存储器不够的问题

[复制链接]
发表于 2010-4-10 11:14:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
make -s all includes
Compiling hello_world.c...
Linking light.elf...
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region onchip_mem is full (light.elf section .text). Region needs to be 12340 bytes larger.
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: address 0x101d0e8 of light.elf section .rwdata is not within region onchip_mem
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [01010020 -> 01010233] overlaps section .text [01010020 -> 0101b033]
/cygdrive/d/NIO/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/libc.a(sbrkr.o)(.text+0x14): In function `_sbrk_r':
/build/nios2eds-gnutools-win32-7.2/bin/nios2-gnutools/src/newlib/newlib/libc/reent/sbrkr.c:59: Unable to reach errno (at 0x01010020) from the global pointer (at 0x0102507c) because the offset (-86108) is out of the allowed range, -32678 to 32767.
collect2: ld returned 1 exit status
make: *** [light.elf] Error 1
Build completed in 2.953 seconds



我的问题是我以前曾成功编译过一次,再说我的程序就一句printf语句,没有很大,怎么可能就不够用了呢,我把printf语句去掉后,就可以用了,很奇怪,这一句就占用那么大的地方吗
发表于 2010-4-10 16:42:25 | 显示全部楼层
1# zst221000
发表于 2010-4-25 21:24:51 | 显示全部楼层
没用过nois 路过路过
发表于 2010-5-15 14:23:08 | 显示全部楼层
当然很大了!它是C语言的的函数,在nios中run as可以使用,但下载到flash中就不可以这么做了,因为她就像是一个中断,和上位机通信的,一但断掉就会出现问题!!个人建议,希望有帮助对你!
发表于 2010-7-11 17:09:23 | 显示全部楼层
没接触过nios
发表于 2010-8-23 18:46:19 | 显示全部楼层
我也遇到了同样的问题,DRAM我也加大了,但是还是不行啊
发表于 2010-8-23 18:47:35 | 显示全部楼层
我开了320*240,而我的RAM有64M,还是不够大
发表于 2010-8-28 13:11:34 | 显示全部楼层
估计你搞错了,你看看程序是存在哪个存储器里了
我猜你是放到内部RAM里,调用printf这样的C库函数当然不够!
发表于 2010-8-28 13:13:12 | 显示全部楼层
你仔细看下库的设置,里面有讲到哪个部分放在哪个存储器
发表于 2010-8-31 16:18:27 | 显示全部楼层
缩减硬件配置,使用小封装驱动
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-26 20:36 , Processed in 0.040079 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表