Converting .sof files to a .pof, Quad spi flash memory – Altera Cyclone V SoC User Manual
Page 41

Appendix A: Programming Flash Memory
A–3
quad SPI Flash Memory
November 2013
Altera Corporation
Cyclone V SoC Development Kit
User Guide
11. After the flash writing process has completed, power cycle the board and look for
the MAX CONF DONE LED to turn ON if the writing process is successful.
12. Altera recommends that you return to the Max V System Controller factory design
after completing the flash writing. To do so, program the Max V with
For more information, refer to
“Restoring the MAX V CPLD to the Factory
.
f
For more information on programming flash memory, refer to the
.
Converting .sof Files to a .pof
To generate a flash programming file, you must open the Quartus II software and
convert the .sof files to .pof.
To convert the files, follow these steps:
1. On the File menu, click Convert Programming Files.
2. For Programming file type, specify Programmer Object File (.pof) and name the
file.
3. For Configuration device, select CFI_512Mb for this kit's CFI device.
4. To add the configuration data, under Input files to convert, select SOF Data.
5. Click Add File and browse to the .sof files you want to add.
If you want to store the data from other .sof files in a different page, click Add SOF
page
. Add the .sof files to the new page.
6. Select SOF Data and click Properties to set the page number and name.
7. Under Address mode for selected pages, choose the User Hardware 1 offset as
listed in the memory map in
as 0x006E.0000.
quad SPI Flash Memory
Programming quad SPI Flash Using the Quartus II Programmer
Although the quad SPI flash is not programmed by factory default, you can program
this device using quartus_hps.exe that resides in the quartus/bin directory. To use
this tool, open a command window and change directories to your 13.0 or later
installation (e.g. c:\altera\13.0\quartus\bin). To program an entire file to quad SPI
flash starting at address 0 type:
quartus_hps.exe -c
For a typical setup, where the Cyclone V SoC board is the only board connected to the
PC, you can detect the quad SPI flash by running the following command:
quartus_hps.exe -o 1 -c1