Forum Discussion

syoma's avatar
syoma
Icon for New Contributor rankNew Contributor
7 months ago
Solved

Cyclone V does not boot from S25FL128 if SOF2FLASH is used

Hi all I need some hint: We are using Cypress/Infineon S25FL128 as configuration flash for Intel Cyclone V FPGA. I use Quartus 17.0 Lite. I created a simple Flash Programmer Project using "Nios® I...
  • syoma's avatar
    syoma
    6 months ago

    I've actually found the problem.

    The issue was that sof2flash utility could not generate proper srec file. Either the little-endian format was wrong or there were wrong bytes in header area.

    To resolve this issue I used a third party utility https://sourceforge.net/projects/srecord/ to convert .rbf file into .flash

    The command line for this is

    srec_cat file.rbf -Binary −Bit_Reverse -Output=file.flash 

    -Binary option specifies that input file has binary format

    and

    - Bit_Reverse option specifies reversing bits in output file.

    With this command a proper .flash file can be generated, which then can be programmed using nios2-flash-programmer or quartus_pgm into Flash.