Forum Discussion

Liang_X_Intel's avatar
Liang_X_Intel
Icon for New Contributor rankNew Contributor
6 years ago

Use Nios API codes to program flash

Hi,

The standard way to burn .sof and .elf into flash is using flash programmer, it is easy and reliable. But I need to use my own NIOS code to write these two files into flash, and I see the .flash files in the /flash folder (generated by flash programmer during the programming). I extracted data portion from .flash files and write them into the flash without offset between two files. From flash read and manual comparison, I am pretty sure my own flash writing content matches what flash programmer does, the only problem is that when I power cycle the board, the FPGA didn't boot from flash automatically, my FPGA is cyclone IV, is there any extra step I missed here?

Thanks

LX

2 Replies