13 · Keep a design after power-off

Every other example loads a .sof: it runs until the power goes off. The MAX 10 also has its own configuration flash: write a design there and the board starts it by itself at every power-up.

Flashed and verified on the board 2026-10-24 Power-cycle check: to do by hand Skill: flash-design
Its project: gamepad.qar (example 04)

.sof or .pof

.sof (SRAM Object File).pof (Programmer Object File)
Goes intothe FPGA's configuration memory (SRAM)the MAX 10's internal flash (CFM, plus UFM)
Lastsuntil power-offuntil something else is flashed; loads itself at every power-up
Takesabout 2 sabout 15 s (write + verify)
Use forevery build while developingthe finished design: a demo, a product, a classroom board

Every build in this BKM already makes both: output_files/<name>.sof and <name>.pof (the projects use INTERNAL_FLASH_UPDATE_MODE "SINGLE IMAGE WITH ERAM", so ROM and RAM contents are in the flash image too).

Do it

python scripts/de10.py flash examples/04_gamepad       # writes and verifies the flash
→ Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings
→ OK: flashed and verified; it starts at the next power-up

Under the hood: quartus_pgm -m jtag -o "pv;output_files/gamepad.pof" (p = program, v = verify). Or in the Quartus Programmer: add the .pof, tick Program/Configure and Verify on the CFM and UFM rows, Start.

Measured on the board

Good to know