Forum Discussion
Altera_Forum
Honored Contributor
11 years agoUpdate, Got flash working:
So I got flash working finally. I couldn't communicate to flash because of my memory address lines. It turns out that the nioss ii communicates to the memory in byte mode (at least this is my understanding) and since this flash part works with 16bit words I needed to leave off the least significant bit on the memory bus. Basically, I have a 25 pin address bus and so I needed 26 pins in for address in the Qsys flash controller. This allows me to leave FSA[0] disconnected and use FSA[1] -> FSA[25] basically matching up the word addressing of the flash part to "word" addressing of the nioss. After doing this I now can see the CFI table and query information. Here is a screen shot of success: https://www.alteraforum.com/forum/attachment.php?attachmentid=8898 Now, I've programmed the nios ii .sof file and done the bsp to flash file conversion using the Nios II eclips eds and going to Nios II -> Flash programmer. This opens the flash programmer GUI. Here I go to new and select my BSP file and add it. After this I add the .sof file and the GUI generates the file generation command and the file programming command. I run this and it erases and programs successfully. The problem now is that when I reset the board it fails to program itself with the nios ii hardware (HDL) project. I can verify this because if I program the .sof with quartus the nios ii flash programmer can communicate with the flash part, but if I reset the board nothing can communicate with flash. I'm pretty confident this is because the nios ii processor is not getting loaded therefore there is no CFI controller to allow communication.