|
准备进军SOPC,今天按书上介绍的流程根据自己的原理图用NIOSII写了一个小程序,结果无法MAKE,太打击了……
编译报告如下:
make -s all includes
Compiling hello_world.c...
Linking hello_world_0.elf...
/cygdrive/e/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region onchip_memory2_0 is full (hello_world_0.elf section .rwdata). Region needs to be 996 bytes larger.
/cygdrive/e/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .bss [00002020 -> 00002233] overlaps section .exceptions [00002020 -> 000021c7]
/cygdrive/e/FPGA/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_close.o)(.text+0x128): In function `alt_get_errno':
/cygdrive/e/altera/90/nios2eds/components/altera_hal/HAL/inc/sys/alt_errno.h:81: Unable to reach errno (at 0x00002024) from the global pointer (at 0x0000c38c) because the offset (-41832) is out of the allowed range, -32678 to 32767.
collect2: ld returned 1 exit status
make: *** [hello_world_0.elf] Error 1
Build completed in 5.859 seconds
似乎我的源程序没什么错误吧,根据提示好像是说我的片上内存区域设置过小?但我在SOPC BUILDER里设置的是8192Bytes啊,为什么还会这样报错呢?FPGA是EP2C8Q208C8N,谢谢各位指点
![](http://cache.amobbs.com/bbs_upload782111/files_20/ourdev_495755.JPG)
内存分配设置 (原文件名:memory.JPG) |
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|