Forum Discussion

Mikhail_a's avatar
Mikhail_a
Icon for Occasional Contributor rankOccasional Contributor
2 years ago

Cant compile NIOSV bsp

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?

8 Replies

  • hareesh's avatar
    hareesh
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


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


    Thank you,



  • Mikhail_a's avatar
    Mikhail_a
    Icon for Occasional Contributor rankOccasional Contributor

    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?

  • Mikhail_a's avatar
    Mikhail_a
    Icon for Occasional Contributor rankOccasional Contributor

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

  • hareesh's avatar
    hareesh
    Icon for Frequent Contributor rankFrequent Contributor

    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.

  • Mikhail_a's avatar
    Mikhail_a
    Icon for Occasional Contributor rankOccasional Contributor

    Hello Hareesh.

    Yes, you can close the case. Thank you.

  • hareesh's avatar
    hareesh
    Icon for Frequent Contributor rankFrequent Contributor

    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.