nios工程,在eclipse工程中报错recipe for target ‘test.elf‘ failed
目前我遇到了这个是导致这个错误的一个原因,并不是一定能解决的。
在eclipse中编译工程,发现报错
make: *** [test.elf] Error 1
Makefile:1013: recipe for target 'test.elf' failed
但是关键点是,eclipse没有给出现这个问题的具体原因,我就通过查找log文件,发现
文件中有这样几句话:
section `.rodata' will not fit in region `cpu_ram'
section `.rwdata' is not within region `cpu_ram'
section `.bss' is not within region `cpu_ram'等,
然后就发现原来是部分ram不足导致的,
接下来我不愿意动quartus部分的设置,就对eclipse进行的更改;
右键选择BSP工程-选择popertise-选择NIOS II BSP popertise,取消support C++,勾选Reduced device dirvers和small C library,还可以选择优化等级(一般Level 2),改了之后编译通过了。
以上就是我解决这个报错的经验。别看就这一点东西,纠结了我一天。
一个fpga的从事工作者。