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++
12640 Discussions

Nios V/g program doesn't start

HarutyunUMRSHATYAN
1,750 Views

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!

0 Kudos
11 Replies
KellyJialin_Goh
Employee
1,706 Views

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


0 Kudos
HarutyunUMRSHATYAN
1,611 Views

Hi,

Thank you for your response.

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

 

0 Kudos
KellyJialin_Goh
Employee
1,687 Views

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


0 Kudos
KellyJialin_Goh
Employee
1,644 Views

Hi,

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


Thank you.


Regards,

Kelly


0 Kudos
KellyJialin_Goh
Employee
1,623 Views

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

 


0 Kudos
KellyJialin_Goh
Employee
1,599 Views

Hi,

Just to confirm whether you have launch RISC Free IDE through the NIOS V command shell?


You my have a look on the debugging steps for the NIOS V processor here: https://www.intel.com/content/www/us/en/docs/programmable/730783/23-1/debug-setup-for-processor-system.html


Thank you.


Regards,

Kelly


0 Kudos
HarutyunUMRSHATYAN
1,592 Views

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.

0 Kudos
KellyJialin_Goh
Employee
1,580 Views

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


0 Kudos
HarutyunUMRSHATYAN
1,438 Views

Hi,

We are using the Pro version of Quartus.

Thanks

0 Kudos
KellyJialin_Goh
Employee
1,536 Views

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


0 Kudos
KellyJialin_Goh
Employee
1,497 Views

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

 


0 Kudos
Reply