Altera_Forum
Honored Contributor
13 years agoWriting to EPCS device from Serial Flash Loader & SPI IP core
I have a working hardware design whith Cyclone IVe.
Inside the FPGA we have an SPI peripheral which reads and writes from/to any standard SPI bus. This IP core has been validated in dozens of other designs, but it's not Altera's IP, it's our own IP. To access the extra memory from the EPCS device, I have instantiated the serial flash loader megafunction. This is the desired solution because it's giving us (theoretically) direct access to the SPI bus pins of the attached EPCS chip. My problem is that, i can successfully read data from the epcs device, but cannot write data to it. The design needs to be able to write to the regions of the EPCS which are not needed for Cyclone IVe configuration, and code and data in those regions will be used for the CPU in the design (not a NIOS). I have read AN370 and various other documents over and over but there is no clear documentation which shows that this is possible, supported, etc. I noticed a number of people on this forum suggested using the PARALLEL version of this IP core but this is not desirable and very inconvenient. All our designs are fairly portable and use the same SPI controller, and we want to keep it that way if possible. I'd be super grateful for any help or advice!