Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Cant compile NIOSV bsp

Mikhail_a
Novice
861 Views

Hello.

I have a Nios V system in platform designer. I've created a bsp, then created an application project as in 1.4.3.2 in Nios® V Embedded Processor Design Handbook. Then I tried to use RiscFree IDE to compile the project and got this error:

 

Error: -march=rv32ima_zicbom: unknown z ISA extension `zicbom'
make[2]: *** [bsp/CMakeFiles/hal2_bsp.dir/build.make:75: bsp/CMakeFiles/hal2_bsp.dir/HAL/src/alt_log_macro.S.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: bsp/CMakeFiles/hal2_bsp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

My PATH var looks like this

echo $PATH
/mnt/HDD/Intel/intelFPGA_pro/23.1/riscfree/build_tools/cmake/bin:/mnt/HDD/Intel/intelFPGA_pro/23.1/riscfree/toolchain/riscv32-unknown-elf/bin/:/sbin:/bin:/usr/bin:/usr/local/bin:/snap/bin:/usr/share/bittware-sdk/bin

 

How can I fix this error? 

0 Kudos
8 Replies
hareesh
Employee
823 Views

Hi,


i am working on your issue. please give me time.


Thank you,



0 Kudos
hareesh
Employee
804 Views

Hi,


https://www.rocketboards.org/foswiki/Documentation/NiosVZephyrDesignExampleHelloWorld


please follow the shared article. in this article, we can find an example design also. please follow those steps.


0 Kudos
Mikhail_a
Novice
790 Views

Hello.

 

Thank you for your answer.

I've found out that this error was probably due to I used Nios V/g IP core. Unfortunately I coundn't find any info about development flow for this processor and existing one for Nios V/m doesn't work for it. So after switching to Nios V/m and doing the flow from the scratch I was able to get an .elf file for my design. But also I got an error:

 

make[2]: niosv-stack-report: Command not found
make[2]: *** [CMakeFiles/niosv-stack-report.dir/build.make:73: main.elf.stack_report] Error 127
make[1]: *** [CMakeFiles/Makefile2:156: CMakeFiles/niosv-stack-report.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

 

It seems that Ashling IDE somehow doesn't find niosv-stack-report binary, while i can see it at niosv/bin directory:

$ ls intelFPGA_pro/23.1/niosv/bin/
commons-cli-1.4.jar  elf2flash  elf2flash.jar  elf2hex  elf2hex.jar  niosv-app  niosv-bsp  niosv-download  niosv-download-files  niosv-shell  niosv-shell-files  niosv-stack-report  niosv-stack-report-files

 

Is there any workaround for this issue?

0 Kudos
hareesh
Employee
778 Views

Hi,


https://www.intel.com/content/www/us/en/support/programmable/articles/000091393.html


On this page, we can find the error details. actually, you can ignore this error. complete details of this error we can see the shared page.



Thank you,


Mikhail_a
Novice
766 Views

Thank you for your answer. Running Ashling IDE from niosv-shell helped.

0 Kudos
hareesh
Employee
765 Views

Hi,

 

so, based on your last message shall I take it as your issue has been solved? please confirm if it's ok I will close this case.

 

Thank you,

Hareesh B.

 

 

0 Kudos
Mikhail_a
Novice
755 Views

Hello Hareesh.

Yes, you can close the case. Thank you.

0 Kudos
hareesh
Employee
732 Views

p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


0 Kudos
Reply