Forum Discussion
Programming SPI-Flash with CycloneV-FPGA
Hello everyone,
I would like to programme an SPI flash via JTAG with a CycloneV FPGA.
The FPGA is configured in PS mode.
The data to be written is a binary file with data no design.
What do I have to do to use the SFL routine in Quartus Prime.
Can someone help me with an example?
Thank you very much
7 Replies
- FvM
Super Contributor
Hi,
according to Intel knowledge base, it's not possible to use SFL with non-AS configuration mode. https://www.intel.com/content/www/us/en/support/programmable/articles/000074632.html
I understand this so that the SFL IP connection to AS interface atom doesn't work with other configuration mode. The question is if the problem can be bypassed modifying by editing the IP code. - FvM
Super Contributor
Look at quartus\libraries\megafunctions\altserial_flash_loader.vhd. It instantiates cyclonev_asmiblock to get access to the AS flash port. This internal component is only available in AS configuration mode.
To use SFL for data flash under PS mode, you need to outcomment asmi_block and export flash interface to alternative top level pins. - FakhrulA_altera
Regular Contributor
Hi gotwer,
Following FvM's suggestion above, do you have any updates for us?
Regards,
Fakhrul
- gotwer
New Contributor
Hello FvM and Fakhrul,
Thanks for the information.
At the moment I am programming the flash via the Quartus programmer, which also works.
[quartus_pgm.exe --nios2 --device=2 --instance=0 --accept_bad_sysid --base=0x2080800 --csr=0 --epcs File]I was hoping that there is a simple solution to create an SVF file.
Thanks again for the info.
Greetings - FvM
Super Contributor
Hi,
it's not clear to me what flash programming in niosii mode means. How is the flash connected to FPGA? - FakhrulA_altera
Regular Contributor
Hi gotwer,
Any updates on the above question by FmV?
Regards,
Fakhrul
- FakhrulA_altera
Regular Contributor
As we do not receive any response from you to the previous notification that we provided. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.