Forum Discussion

gotwer's avatar
gotwer
Icon for New Contributor rankNew Contributor
1 year ago

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's avatar
    FvM
    Icon for Super Contributor rankSuper 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's avatar
    FakhrulA_altera
    Icon for Regular Contributor rankRegular Contributor

    Hi gotwer,


    Following FvM's suggestion above, do you have any updates for us?


    Regards,

    Fakhrul


  • gotwer's avatar
    gotwer
    Icon for New Contributor rankNew 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's avatar
    FvM
    Icon for Super Contributor rankSuper Contributor

    Hi,
    it's not clear to me what flash programming in niosii mode means. How is the flash connected to FPGA?

  • FakhrulA_altera's avatar
    FakhrulA_altera
    Icon for Regular Contributor rankRegular 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.