Boot code, Hardware image catalog – Altera Embedded Systems Development Kit, Cyclone III Edition User Manual
Page 71
11–3
Development Board Version 1.0.
Altera Corporation
Altera Embedded Systems Development Kit, Cyclone III Edition
July 2010
Rebuilding the Application Selector from Source Files
Boot Code
The first portion of the factory recovery image is the application boot
code, located at flash offset 0x0. For details on the boot code refer to
Chapter 8, Application Selector Details
.
Building the boot code produces a file named
app_selector_boot_code.srec
.
This file can be directly programmed to flash using nios2-flash-
programmer
in the Nios II command shell.
Hardware Image Catalog
The hardware image catalog section of flash is located at offset 0x2000000.
This section holds the locations of the currently cached hardware images
Catalog in flash. Any time a factory recovery is performed, this section of
flash should be erased to ensure no stale catalog entries exist. To erase this
section of flash, enter the command:
1.
Connect the board to your local PC using the provided USB cable
2.
Launch a Nios II Command Shell
3.
In the Nios II Command Shell, navigate to location
configure-sof
This will configure the board with a safe FPGA image
4.
In the Nios II Command Shell type
nios2-flash-programmer --base=0x10000000 –-erase
0x2000000+0x2000000
0x2000000 - 0x237FFFF
Selector HW Image
0x2380000 - 0x3BFFFFF
Application HW Images (7)
0x3C00000 - 0x3FBFFFF
Unused
0x3FC0000 - 0x3FDFFFF
Ethernet Option Bits
0x3FE0000 - 0x3FE0080
PFL Option Bits
Table 11–1. Flash Memory Map for 3C120 Design
Flash Offset
Flash Contents