Forum Discussion

HarutyunUMRSHATYAN's avatar
HarutyunUMRSHATYAN
Icon for New Contributor rankNew Contributor
2 years ago

Nios V/g program doesn't start

Hi, we made a design with Nios V/g Processor using Intel Quartus Prime and trying to run a simple elf on it using RiscFree IDE. The program doesn't start since it falls into a trap because of an illegal instruction exception. These are the compile options we got from bsp generated:
-march=rv32ima_zicbom -mabi=ilp32

and this is where exception is thrown in file crt0.S:
/*
* Initialize the data cache if present (i.e. size > 0).
* Skip initialization if optimizing for RTL simulation.
* RTL simulations can ensure the data cache tag RAM is already
* initialized so skipping this speeds up RTL simulation.
*/
#ifndef ALT_SIM_OPTIMIZE
#if ALT_CPU_DCACHE_SIZE > 0
li t0, ALT_CPU_DCACHE_SIZE
0:
/* cbo.inval.ix */
/*!!!NIOSV_ILLEGAL_INSTRUCTION!!!*/
.insn i 0x0F, 0x2, zero, t0, 0x080
addi t0, t0, -ALT_CPU_DCACHE_LINE_SIZE
bnez t0, 0b
#endif /* Initialize Data Cache */
#endif /* ALT_SIM_OPTIMIZE */

Could you please help us figure out this situation?
Thank you in advance!

11 Replies

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

    Hi,

    Greetings and welcome to Intel's forum.

    May I know the Quartus version you are using to compile your NIOS V design? Also, is the OS you are using to compile the project Windows? As NIOS V works best with Linux and many errors can be eliminated on Linux OS.


    Hope to hear from you on your feedback.


    Thank you.


    Regards,

    Kelly Jialin, GOH


    • HarutyunUMRSHATYAN's avatar
      HarutyunUMRSHATYAN
      Icon for New Contributor rankNew Contributor

      Hi,

      Thank you for your response.

      We are using Quartus Prime Version 23.1.0 on Ubuntu 20.04 LTS.

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

    Hi,

    Any updates from your end whether the information provided was useful to solve your issue?

    By any chance, would you consider using Linux OS for NIOS V?


    Thank you.


    Regards,

    Kelly


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

    Hi,

    Any updates from your end whether the information provided was useful to solve your issue?


    Thank you.


    Regards,

    Kelly


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

    Hi,

    As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


    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.


    Thank you.


    Regards,

    Kelly, Jialin GOH


    • HarutyunUMRSHATYAN's avatar
      HarutyunUMRSHATYAN
      Icon for New Contributor rankNew Contributor

      Hi,

      Sure we launch RISC Free IDE through the NIOS V command shell.

      I create an empty cmake project and import my code there. All this setup works good with NiosV/m but I cannot make it work with NiosV/g.

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

    Hi,

    For the Quartus version you are using, is it a Standard or a pro version?

    Hope to hear from you on your feedback.


    Thanks.


    Kelly


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

    Hi,

    Any updates from your end? Is there any further support needed from my end?


    Hope to hear from you soon.


    Thank you.


    Regards,

    Kelly


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

    Hi,

    As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


    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.


    Thank you.


    Regards,

    Kelly, Jialin GOH