Forum Discussion
Cyclone V does not boot from S25FL128 if SOF2FLASH is used
- 1 year 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.
Hi
Could you try the override file with the following settings?
[EPCS-012019] # Cypress SPI Flash S25FL128S
sector_size = 65536
sector_count = 128
I see that the logs indicate a the erase sector size is 256 x 64K where as the S25FL128S should be 128 x 64K.
Regards
Jingyang, Teh
- syoma1 year ago
New Contributor
Hi Jingyang
My nios2-flash-override.txt looks as follows:
[EPCS-016018] # Infineon SPI Flash S25FL128 sector_size = 65536 sector_count = 256Sorry if I didn't mentioned before, but I'm using S25FL128L, not S25FL128S. In datasheet for S25FL128L it says it has 256 blocks of 64KB, which perfectly matches 128Mbit total capacity.
I had to use 016018 as these match with the ID data, provided in the S25FL128L datasheet. As you can see in my first post it works.
Do you think I still need to change override file to 128 x 64K?