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.
Hi! Thank you for support in my question.
I tried to run in wsl command prompt such command, as was recommended in support article:
make SOPCINFO_FILE=/mnt/d/Temp/axie_system_controller/qsys-system.sopcinfo --no-print-directory -C /mnt/d/Temp/axie_system_controller/Software/hal_bsp/
And I got the message: [BSP build complete]
So, it doesn' change the futher situation. After that, I got the same error.
Also, I added in the application make file such string:
SOPC_FILE := ../../qsys_system.sopcinfo
, and it doesn't helped me too.
I suppose, that the problem is in next tool:
nios2-elf-g++.exe -T'D:/Temp/axie_system_controller/Software/hal_bsp/linker.x' -msys-crt0='D:/Temp/axie_system_controller/Software/hal_bsp/obj/HAL/src/crt0.o' -msys-lib=hal_bsp -LD:/Temp/axie_system_controller/Software/hal_bsp/ -Wl,-Map=qsys-app.map -O0 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -mgpopt=global -o qsys-app.elf obj/default/src/Main.o obj/default/src/ad9576.o obj/default/src/dac7568.o obj/default/src/stmpe1600.o -lm -msys-lib=m
, which must generate the .elf file, but it doesn't do it.
My be I should try the last version of Quartus Prime standart 20.1?
Best regards, Andrey
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.