|
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
|
▷ |