MAX 10 NEEK
110
www.terasic.com
February 4, 2016
(4) If the sof file don’t contain a Nios II processor, it is not necessary to generate the
"
<your
software name>.bin
"
and copy it to your SD card.
7
7
.
.
5
5
R
R
e
e
s
s
t
t
o
o
r
r
i
i
n
n
g
g
t
t
h
h
e
e
F
F
a
a
c
c
t
t
o
o
r
r
y
y
I
I
m
m
a
a
g
g
e
e
This section describes some details about the operation of restoring the Application Selector factory
image.
C
C
o
o
m
m
b
b
i
i
n
n
i
i
n
n
g
g
f
f
a
a
c
c
t
t
o
o
r
r
y
y
r
r
e
e
c
c
o
o
v
v
e
e
r
r
y
y
b
b
i
i
n
n
a
a
r
r
y
y
f
f
i
i
l
l
e
e
s
s
In the factory settings, you need to program Application Selector software code to the QSPI flash
and the hardware binary to the onchip flash. You should covert the hardware and software into
separated .pof for programming onchip Flash and the QSPI flash.
Copy the elf and the boot_loader_cfi.srec file into a common directory relying on your choice.
This directory is where you will convert the elf into a hex file.
On your host PC, launch a Nios II Command Shell from Start ->Programs -> Altera -> Nios II
<version #> EDS -> Nios II Command Shell
From the command shell navigate to where your elf file is located and create a .flash file using
the following commands listed below
elf2flash --base=0x07c00000 --end=0x08000000 --reset=0x07c00000 --input=application
_seletcor.elf --output=application_selector.flash --boot=boot_loader_cfi.srec
Convert the .flash into the .hex file
nios2-elf-objcopy –O ihex application_selector.flash application_selector.hex
In Quartus convert programming file tool window, set the options as
Figure 7-7.
Figure 7-7 Generate The Final_flash Pof
Click the
Add hex Data
button and choose the application_selector.hex file generated above
then press generate button to generate the object file final_flash.pof.
To convert the sof file into pof, just follow the steps for dual boot programming and make sure
the sof for application selector is added to sof Page_0 data. Assuming the name of the pof is
app_sel.pof.
Note:
(1) The original command for convert the elf into flash is: