MAX 10 NEEK
111
www.terasic.com
February 4, 2016
elf2flash --input=elf_filename --output=flash_file_name --base=flash_base_address --end
=flash_end_address --reset=flash_base_address --boot="$SOPC_KIT_NIOS2/components/
altera_nios2/boot_loader_cfi.srec"
(2) You can also convert the elf file into the hex data by executing test.bat in the software_batch
directory in the project directory.
R
R
e
e
s
s
t
t
o
o
r
r
i
i
n
n
g
g
t
t
h
h
e
e
o
o
r
r
i
i
g
g
i
i
n
n
a
a
l
l
b
b
i
i
n
n
a
a
r
r
y
y
f
f
i
i
l
l
e
e
To restore the original contents of the Application Selector, perform the following steps:
Copy Selector project into a local directory of your choice. The Selector project is placed in
Demonstrations\application_selector
Power on the MAX 10 NEEK board, with the USB cable connected to the UBII(J8) port
Download the max10_qpfl.sof to the board
Press Auto Detect button and a QSPI flash will be detected as shown in
Figure 7-8.
Figure 7-8 Auto Detect The QSPI Flash 1
Right click on the QSPI_512Mb item and change the file to the final_flash.pof generated above.
Check the Program/Configure button and start programming. The programming will take a long
time and the software is downloaded to the QSPI flash if successful.
Add the app_sel.pof and program it into the onchip Flash.
Make sure the CONFIG_SEL is set to 0 and re-power up the board.
Note:
You can also use ‘demo_batch’ to restore the original binary file by executing the test.bat under
the application_selector\demo_batch folder.