Forum Discussion
Nios 2 Boot Issue
Hi,
I am using Cyclone 10 GX for an embedded project with Nios 2.
Quartus Pro 19.2 + C 10 GX + MT25QU256
For unknown reason, the Nios 2 did not boot.
I have to manually download the elf again through JTAG..
Setting in Qsys,
Linker,
Memory map,
BRs,
Johnson
Hi, Johnson
Can we close this ? you may open a new one if you still have inquiry and want to follow up.
Thanks.
Eric
24 Replies
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
May I know which serial flash controller IP you used in your design ?
Thanks.
Eric
- JLee25
Contributor
Hi Eric,
I am using EPCQ2 controller.
FYI!
BRs,
Johnson
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
Would you try this, when you generate the .hex from .elf using mem_init_generate utility in your EDS, ie right click on project in Project Explorer, and Make Targets > Build.
After you get your .hex under mem_init folder, also look for meminit.qip, and add this meminit.qip to your Quartus project and then generate the .sof.
Next when you convert the programming file, just convert this .sof to .jic or .pof, and then program this .jic or .pof into your flash.
Thanks.
Eric
- JLee25
Contributor
Hi Eric,
I checked my current Quartus project and the meminit_qip was included already.
The steps you mentioned is not work because,
1. EDS did not allow the generation of hex to elf. The tool is not work as mentioned before and in intel KDB.
2. When I tried the mem_init, the old elf will be deleted and no file will be generated.
3. Include the mem_init.qip will only work when nios execute in on-chip memory.
BRs,
Johnson
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
My apologize for the delay.
Due to Khronos migration, I couldn't find your attachment here from your latest emails.
Would you mind to forward to me your attachment again on the flash test result and your findings ?
Thanks.
Eric
- JLee25
Contributor
Hi Eric,
Please download the zip file and check the contents inside.
Shared folder include the jic file with both FPGA image and Nios 2 flash.
Qsys is the controller I am using now, Generic Quad SPI running at 25MHz.
I checked the clock frequency on board.
From the linker, Nios2 will run on DDR.
Then I use qspi flash controller to read and print the content in device at address 0x0100_0000.
Include check the device ID.
This is where the APP stored.
JIC is the shared jic file that I use reader to get the raw data.
You can compare it with nios2_shell_print, they are of the same.
Therefore I am confirm the programming to flash and the content inside should be fine.
Unfortunately, the program is not running and I have to download the elf to make it work.
The problem is bootcopier or the converted file?
BRs,
Johnson
- JLee25
Contributor
Hi Eric,
Good day!
Do you have any update on the issue after receiving my shared files?
Please let me know.
Thank you!
BRs,
Johnson
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
Can you try to run timing analysis and check if you have no timing violation ?
You may constraint the Nios core, GQSPI controller II and other IPs which are timing critical.
Thanks.
Eric
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
Can you refer to page 24 of below document on how to debug your boot copier ?https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an458.pdf
Thanks.
Eric
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
Have you tried to debug the boot copier according to the document I provided ?
Thanks.
Eric
- JLee25
Contributor
Hi Eric,
I am trying to use the information provided in AN458 with Arrow support.
I will let you know if I need any assistant from you.
Thank you!
BRs,
Johnson
- EricMunYew_C_Intel
Frequent Contributor
Hi, Johnson
Can we close this ? you may open a new one if you still have inquiry and want to follow up.
Thanks.
Eric
- JLee25
Contributor
Hi Eric,
Yes!
Thank you!
BRs,
Johnson
- EricMunYew_C_Intel
Frequent Contributor
Thanks Johnson.