Build the boot code, Modifying the application selector, Changing the cfi flash map – Altera Nios II Embedded Evaluation Kit Cyclone III Edition User Manual
Page 63
B–9
Development Board Version 1.0.
Altera Corporation
Nios II Embedded Evaluation Kit, Cyclone III Edition
July 2010
Modifying the Application Selector
Build the boot code
To rebuild the boot code which runs when an application is loaded and
run from the Application Selector, perform these steps:
1.
Open a Nios II Command Shell.
2.
Change to the directory:
examples/
application_selector/
application_utilities/
app_selector_boot_code
3.
Run the command make.
Modifying the
Application
Selector
This section discusses the parts of the Application Selector you can
modify in order to tailor the utility to your needs
Changing the CFI flash map
If your application needs to use the CFI flash in a particular manner
which is not compatible with the Application Selector’s default flash
layout, you can modify the way some things are mapped in flash fairly
easily.
General Guidelines
If you choose to modify the flash map, take great care in ensuring that you
leave enough space in each block for the data you intend to store there.
Otherwise, you may overlap sections and the Application Selector utility
may overwrite important data and cause a failure.
Also, it is a good idea to completely erase the flash before altering the
flash map. This will prevent stale, unused data from accidentally causing
errors in the Application Selector Utility.
Application Selector Hardware Image
One of the flash layout restrictions with the Application Selector is that
the Application Selector hardware image itself must reside at byte offset
0x20000 in flash. It cannot be changed. This is because the Cyclone III
FPGA always performs its first configuration after reset from offset
0x20000.