错误一:
d:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: test.elf section `.text' will not fit in region `ram_oc_xzs'
d:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: region `ram_oc_xzs' overflowed by 73212 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [test.elf] Error 1
原因:从这句话" region `ram_oc_xzs' overflowed by 73212 bytes"中可以知道,ram_oc_xzs内存太小,可以在qsys中修改大小。
解决方法:
1、在qsys中修改大小
2、减少代码的大小(当板子的资源不足时)
错误二:
Error executing 'nios2-bsp-generate-files --bsp-dir . --settings settings.bsp', unexpected return code 1.
Error message:
SEVERE: BSP not valid.
SEVERE: BSP not valid.
SEVERE: nios2-bsp-generate-files failed.
解决方法:
错误三:
原先代码是在sdram跑的,然后改到了在片上ram_oc_xzs中跑,出现问题。
Error executing 'nios2-bsp-generate-files --bsp-dir . --settings settings.bsp', unexpected return code 1.
Error message:
SEVERE: [Error] hal: <b>hal.linker.exception_stack_memory_region_name</b> "sdram" is out of range: "none", "ram_oc_xzs_BEFORE_EXCEPTION", "ram_oc_xzs", "dual_port_ram", "reset", "epcs"
SEVERE: [Error] hal: <b>hal.linker.exception_stack_memory_region_name</b> "sdram" is out of range: "none", "ram_oc_xzs_BEFORE_EXCEPTION", "ram_oc_xzs", "dual_port_ram", "reset", "epcs"
SEVERE: nios2-bsp-generate-files failed.
解决方法:
减少代码的空间
错误四:
qsys自定义IP注意的事项:
c
--晓凡 2024年2月23日于武汉书