
•
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
Tools
>
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 the programming finishes, 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.
43
Содержание ALTERA VEEK-MT
Страница 1: ...1 ...
Страница 47: ...Figure 5 2 Programming Flash settings 44 ...