Altera_Forum
Honored Contributor
11 years agousing an SPI flash for Cyclone V HPS
Hello,
I'm a very beginner, but I'll have to make my own embedded system that will also include a Cyclone V. To make my life easier I'm trying to reuse components already present on an existing evaulation board, however I have seen that most evaluation boards have QSPI flash memories connected to the HPS. In this case, I will have to use a flash memory that presents an SPI interface and is not well known. I wanted to better understand the procedure to write and read from the Flash memory. I've read in the chapter "HPS Flash Programmer User Guide" of the "Altera SoC Embedded Design Suite User Guide" (http://www.altera.com/literature/ug/ug_soc_eds.pdf) that using the USB Blaster and the command quartus_hps one can easily program the flash memory through the processor. However, since each flash memory has its own opcodes for read, write and all the other operations, how does the HPS know which are the good opcodes to program the flash memory that is on the board? Is there a list of known Flash IDs so the procedure asks the ID to the flash first and then understands which are the good opcodes for that memory or is it necessary to configure some registers first in order to make the HPS know how to properly communicate with the flash? And if the list of known Flash exists then it is not possible to program a Flash which is not present on that list? Thank you in advance Elena