Forum Discussion

APaci1's avatar
APaci1
Icon for Occasional Contributor rankOccasional Contributor
7 years ago
Solved

Quartus 18.1 + NiosII F on CyclomV : boot fails!

Hello to everyone !

I have my hardware with Cyclone V 5CSEBA4 , Quartus 18.1 standard licensed. I make a QSYS with an EPCQ64 controller and NiosIIF and I develop my application with Eclipse. It runs well with Jtag ...

OK now I want a self boot system!

First, I use first NiosII flash programmer utiliy on SBT ECLIPSE, but I received Error Code 8. (this method runs fine with old attempts with some cyclon based development board..)

Then, I follow strictly official guide "edh_ed_handbook.pdf" and I attempt to obtain a self-booting hardware from EPCQ64A: "on place" and "boot copier" options. These methods uses Quartus Flash convert utility, that allows to compose a JIC file (Flash Programmer, SOf File, Hex File).

Both files (SOF for FPGA) and ELF for nios runs fine loading then with Jtag. (I use an external SDRAM, tested with Nios QSYS system)

Then , I program the chain from QUARTUS FLASH PROGRAMMER on JTAG. It see correctly FPGA+FLASH Chain and program flash correctly.

But It's impossible to obtain a bootable system. FPGA starts correctly (Infact If I load the elf from Eclipse, Nios application runs fine).

Only difference from manual is on my external SDRAM instead ON CHIP RAM showed in the example, but addressing mode and qsys settings are the same., and My app works fine on external sdram when I test with JTAg and EClipse

This is hard problem for our factory! We havent a bootable system today.... :-(

Someone can give tips to solve this issue?

(ON attach, TEst1 : nios flash programmer->error 8 and TEST2 ->quartus convert test boot copier: it runs but system cannot boot nios)

  • Hello sir,

    Kindly check the following items:

    1- Make sure you use a clock source to Serial Flash controller IP (EPCQ) up to 25MHz (MAX).

    2- Make sure your Nios II is running at 50MHz.

    3- Make sure the MSEL is pointing to the correct flash configuration:

    If using QUAD, MSEL should be 10010

    If using STANDARD, MSEL should be 10011

    Please let me know if this could help you.

    Thanks

11 Replies