Forum Discussion
Quartus 19.1 NIOS II ED error: Makefile:1012: recipe for target '***.elf' failed
- 5 years ago
Hi!
The problem is solved, due to help of russian Intel distributor's engineering support. Thanks to Roman!
He pointed me to two things:
- need of dividing workspace project and source software directories. It must be different directories inside common project directory.
- use "New' - "NIOS II Application and Bsp from template" for generaion of new project structure. When I was generating new BSP, I used "New" - "NIOS II Board support package" and got such strange error:
Executing: wsl;nios2-bsp hal . ../../qsys_system.sopcinfo
--cpu-name nios2_gen2_0
(D:\Temp\axie_system_controller_restored\software\qsys_bsp)
/bin/bash: -c: line 0: syntax error near unexpected token `;'
/bin/bash: -c: line 0: `;nios2-bsp hal .
../../qsys_system.sopcinfo --cpu-name nios2_gen2_0'
Those advices helps me to build my project succesfuly in Quartus Prime Standart 19.1.
Hello!
I'm going to help you during this issue that you are having.
The message means that your code is too large to fit into memory. The default size for on-chip memory is very small. Most of the tutorials have you use a larger on-chip memory size. Look at the on-chip memory module in QSYS. I should have a size large enough to fit your program. If it doesn't, pick a larger size (8K or 16K for example). Don't forget to re-generate the code in QSYS and re-compile in Quartus.
Try clicking on the auto-assign base address in the Qsys tool before generating the component.
If the issue persist, you need to add bytes to your memory size and auto-assign base address.
Let me know if you have any problem.
Best regards.
IsaacVazquez.
Hello!
I use generic parallel flash memory for storing and booting nios program code. It connects to NIOS on system planer thru Generic Tri-State Controller and Tristate Condute Bridge as recomended in Embedded Design Handbook. Flash memory has the volume of 64MB, more than enough for any kind of code. OnChip RAM I use only for exception vector and it has capacity of 32 KB. I extended it to 64KB, but no use.
NIOS CPU is runing on MAX10 device.
Only thing I want to mention is that, this project nice works and compiles on Quartus Prime Standart 18.1.
My Regards, Andrey