Altera Cyclone III LS FPGA Manuel d'utilisateur Page 36

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 42
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 35
A–2 Appendix A: Programming the Flash Memory Device
Preparing Design Files for Flash Programming
Cyclone III LS FPGA Development Kit User Guide © October 2009 Altera Corporation
c Altera recommends that you do not overwrite the factory hardware and factory
software images unless you are an expert with the Altera tools or deliberately
overwriting the factory design. If you unintentionally overwrite the factory hardware
or factory software image, refer to “Restoring the Flash Device to the Factory Settings”
on page A–4.
Preparing Design Files for Flash Programming
You can obtain designs containing prepared .flash files from the Cyclone III LS FPGA
Development Kit page on the Altera website or create .flash file
s from your own
custom design.
The Nios II EDS sof2flash command
line utility converts your Quartus II-compiled
.sof into the .flash format necessary for the flash device. Similarly, the Nios II EDS
elf2
flash command line utility converts your compiled and linked Executable and
Linking Format File (.elf) software design to .flash. After your design files are in the
.flash format, use the Board Update Portal or the Nios II EDS nios2-flash-
pr
ogrammer utility to write the .flash files to the user hardware and user software
locations of the flash memory.
f For
more information about Nios II EDS software tools and practices, refer to the
Embedded Software Development page on the Altera website.
Creating Flash Files Using the Nios II EDS
If you have an FPGA design developed using the Quartus II software, and software
developed using the Nios II EDS, follow these instructions:
1. On the Windows Start menu, click All Programs > Al
tera > Nios II EDS > Nios II
Command Shell.
2. In the Nios II command shell, navigate to the directory where your design files
reside and type the following Nios II EDS commands:
For Quartus II .sof files:
sof2flash --input=<yourfile>_hw.sof --output=<yourfile>_hw.flash --offset=0x0640000 r
For Nios II .elf files:
elf2flash --base=0x0A000000 --end=0x0BFFFFFF --reset=0x0A820000
--input=<yourfile>_sw.elf --output=<yourfile>_sw.flash
--boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec r
The resulting .flash files are ready for flash device programming. If your design uses
additional files such as image data or files used by the runtime program, you must
first convert the files to .flash format and concatenate them into one .flash file before
using the Board Update Portal to upload them.
1 The Boar
d Update Portal standard .flash format conventionally uses either
<filename>_hw.flash for hardware design files or <filename>_sw.flash for software
design files.
Vue de la page 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 42

Commentaires sur ces manuels

Pas de commentaire