Altera Embedded Systems Development Kit, Cyclone III Edition User Manual

Page 77

Advertising
background image

A–3

Development Board Version 1.0.

Altera Corporation

Altera Embedded Systems Development Kit, Cyclone III Edition

July 2010

If you would like to open these Nios II Software Build flow projects to the
Nios II IDE for debugging purposes, then you will import the app and
bsp projects into the Nios II IDE.

For step by step instructions on importing a Nios II Software Build flow
project in to the Nios II IDE, refer to the software tutorial My First Nios II
Software Application
in the documents/tutorials/software_tutorials folder
of the Nios II Embedded Development Kit directory.

I overwrote the Flash with my own design. But now I want to
restore the original contents of the flash, the one that came
when the board was shipped. How do I restore the factory
image?

To restore the factory image, perform the following steps:

1.

Using the Quartus II Programmer, configure the FPGA with the SOF

file: altera/<version>/kits/cycloneIII_3C120_embedded /
examples/application_selector/cycloneIII_embedded_
development_kit_applicatoin_selector.sof

2.

Open a Nios II Command Shell and change to the directory:

altera/

<version>/kits/cycloneIII_3C120_embedded /factory

_recovery/flash_contents

3.

In the Nios II Command Shell, program the factory image into flash
with the command:

nios2-flash-programmer --base=0x10000000

restore_cycloneIII_3c120.flash

If you get the error message: No CFI table found at address <address>
Leaving target processor paused

Check that either the address is correct

(hex four million - i.e. 6 zeroes after the 4) or that you have two "-"
characters before "base".

4.

You should now be able to reset the board to start the Application
Selector.

How do I re-build the factory image from source files?

To re-build the factory image refer to

Chapter 11, Restoring the Factory

Design to the Flash Device

.

Advertising