English
Language : 

P0103 Datasheet, PDF (48/50 Pages) AEL Crystals Ltd – Introduction of the VEEK-MT
 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-MT, 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 Figure 5-2
 Click Program Flash to start program Selector.bin to EPCS in the board
 When program finish, power on again
Note: You can also use ‘Selector_batch’ to generate selector.bin and restore the original
binary file by executing the Selector.bat under the Factory_Recovery\Selector_batch folder.
VEEK-MT User Manual
45
www.terasic.com
May 20, 2014