Altera_Forum
Honored Contributor
9 years agoQuestion about boot NIOS from Micron N25Q flash
Hi all,
I am using arrow cyclone v soc kit, with a Cyclone V 5csxf6d6f31c6 chip which has a hardcore ARM-A9 inside. but i am not using this arm core, i am just working with nios purely on fpga side. Also, I am working with quartus 14.0 web edition.For the FPGA part of the development kit, it has a n25q256 qspi flash (256 mb) connected to its active serial port. And this is the only flash for FPGA part. I set MSEL[4:0] to 10010, which is AS(x1 and x4) fast mode. The board doesn’t have dedicated 10-pin JTAG or Active Serial port, it uses USB-Blaster port. The EPCQ connection is listed in figure "kit diagram” and “as port schematic”. http://www.alteraforum.com/forum/attachment.php?attachmentid=13183&stc=1 http://www.alteraforum.com/forum/attachment.php?attachmentid=13182&stc=1 What I am doing is a very simple project, just controlling LED flash on board using NIOS, according to this tutorial: http://www.mouser.com/pdfdocs/my_first_niosii.pdf I finished the system setup chapter, the qsys setting of which is listed in the figure of “qsys setting”. http://www.alteraforum.com/forum/attachment.php?attachmentid=13184&stc=1 I list here some settings of the qsys component in case it is helpful: (1) I use NIOS-II/e processor, (2) I added a ‘EPCS/EPCQx1 Serial Flash controller’ module in my qsys system for EPCQ programming, and its setting is “Automatically select dedicated active serial interface”, as you can see in figure “epcs controller setting”。
http://www.alteraforum.com/forum/attachment.php?attachmentid=13185&stc=1 I then followed the tutorial on software part, and everything’s fine. i downloaded the .sof (using quartus programmer ) and .elf file (using run as – nios hardware), and the led flashes here! however, the problem comes when i want to burn the program to the flash. The followings are what I have done: (1) First download .sof using Quartus II Programmer in Eclipse IDE; (2) NIOS II Flash Programmer – New – add my .sopcinfo file, as in figure "flash programmer 1"; (3) Check Connection. Here I find that the Device information shown is “5CSEBA6 5CSEMA6”, as illustrated in figure "flash programmer 2". However, the chip for my board, and in my Quartus project setting is 5csxf6d6f31c6.
(4) Add the .sof file and .elf file, and in the Options tab of Flash Programmer, click all items. Then click start, as illustrated in figure "flash programmer 3". Then I can see there is erasing, programming from 1% to 100%, and final result show in figure "final". and here, the led starts flash correctly. but when i un-plug the power cable and re-plug it, the led doesn’t flash anymore. and it looks like the hardware even doesn’t start up. I would appreciate any help~~~