VEEK-MT2 User Manual
50
www.terasic.com
July 4, 2016
SD Card Directory Structure
All loadable applications on the SD card must be located in a top-level directory named
Application_Selector. Under the Application_Selector directory, each application is located in its own
subdirectory. The name of that subdirectory is important because the application selector utility uses that
name as the title of the application when displaying it in the main menu. The subdirectory names can be
anything so long as they adhere to the FAT file system long file name rules. Spaces are permitted.
CFI Flash
CFI flash is used to store the software binary files of applications. All software binary files used by the
application selector contain a boot copier which is pre-ended by the Nios2-elf-objcopy utility during file
conversion process described in the “Creating Your Own Loadable Applications” section. The boot
copier copies the software code to program memory before running it. The Application software binary
file is stored in flash at load time to an offset 0x0.
EPCS Device
EPCS is used to store both the binary file of the Application Selector (both hardware and software image)
itself, as well as hardware binary files of applications which are being loaded. The Application Selector
binary file is permanently stored in EPCS device at offset 0x0. Hardware binary files for the
applications being loaded get written to EPCS at load time to an offset 0x400000.
Creating Your Own Loadable Applications
It is easy to convert your own Nios II design into an application which is loadable by the Application
Selector utility. All you need is a hardware image (a .SOF file) and a software image which runs on that
hardware (a Nios II .ELF file).
The only restrictions are:
The hardware designs must contain a CFI Flash controller (1*)
If the .SOF file contains a Nios II CPU, then its reset address should be set to CFI Flash at offset 0x0
Before compiling the software, make sure you have set your software‟s program memory (.text
section) in Flash memory under the System Library Properties (Nios II IDE) page or through BSP
Editor (Nios II SBT for Eclipse) utility (2*)
Once you have your working .SOF and .ELF file pair, perform the following steps to convert them to a
loadable application selector compatible application.
Содержание VEEK-MT2
Страница 1: ...1 ...