VEEK-MT2 User Manual
52
www.terasic.com
July 4, 2016
5.4
Restoring the Factory Image
This section describes some details about the operation of restoring the Application Selector factory
image.
Combining factory recovery binary files
In the factory settings, you need to program Application Selector binary files to EPCS. Before
programming, you should combine application selector software binary file and hardware binary file
together by executing the instructions below:
Copy both the Selector.sof and Selector.elf files into a common directory relying on your choice.
This directory is where you will convert the files
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 SOF file is located and create your hardware binary
file using the following command commands listed below
Convert Selector.sof file into Selector_HW.flash file
sof2flash --epcs –input= Selector.sof --output= Selector_HW.flash
Convert .flash file into .bin file
nios2-elf-objcopy –I srec –O binary Selector_HW.flash Selector_HW.bin
From the command shell navigate to where your ELF file is located and create your software bin
image using the following command commands listed below
Convert Selector.elf into Selector_SW.flash
elf2flash –epcs --after=Selector_HW.flash --input=Selector.elf --output= Selector_SW.flash
Convert Selector_SW.flash into Selector_SW.bin
nios2-elf-objcopy –I srec –O binary Selector_SW.flash Selector_SW.bin
Combine Selector_HW.bin and Selector_SW.bin using the following command
cat Selector_HW.bin Selector_SW.bin > Selector.bin
The generated Selector.bin is our target binary file
Restoring the original binary file
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\Selector
Power on the VEEK-MT2, with the USB cable connected to the USB Blaster port
Download the Selector.sof to the board by using either JTAG or AS programming
Run the Nios II and choose Selector\Software as the workspace
Choose Nios II > Flash Programmer to open the flash programmer
Choose Program a file into memory, choose your Selector.bin file. See
Click Program Flash to start program Selector.bin to EPCS in the board
When program finish, power on again
Содержание VEEK-MT2
Страница 1: ...1 ...