AN 736: Nios II Processor Booting From Altera Serial Flash (EPCQ)

ID 683104
Date 5/20/2016
Public

1.5.2.2. Reset and Exception Vector Settings for Nios II Boot Copier Method

  1. Under Reset Vector in the Vectors tab, select EPCQ (epcq_controller_0.avl_mem) in the Reset vector memory drop-down menu and type the reset vector offset in the Reset vector offset entry box. The reset vector must be the starting address of your application. In this example, it is 0x01E00000.
    Note:

    Your *.sof image size influences your reset vector offset configuration. The reset vector offset is the start address of the .hex file in EPCQ flash and it must point to a location after the *.sof image. You can determine the minimum reset vector offset by using the following equation:

    minimum reset vector offset= (.sof image start address + .sof image size) in HEX

    For example, if your *.sof image starts at address 0x0 and is 512 KB in size, then the minimum reset vector offset location you can select is 0x0080000. If the *.sof image space and the reset vector offset location overlap, Intel® Quartus® Prime software displays an overlap error.

  2. Under Exception Vector, select OCRAM/External RAM in the Exception vector memory drop-down menu. In this example, 0x20 is listed for the Exception vector offset entry.
  3. Click Finish. You will return to the Qsys System Contents tab.
  4. Double-click on the Altera Serial Flash Controller IP to open the Altera Serial Flash Controller Parameter editor.
  5. Select the Configuration device type based on your hardware design and choose the desired I/O mode. Close the Parameter Editor and return to the Qsys System Contents tab.
  6. Click Generate HDL to generate your Qsys design.
  7. Compile your design in the Intel® Quartus® Prime software.