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

ID 683104
Date 5/20/2016
Public

1.3.2. Nios II Processor Application Copied from EPCQ Flash to RAM

You can use a boot copier to copy the Nios® II application from EPCQ flash to RAM when multiple iterations of application software development and high system performance are required. Intel® recommends this solution for Nios® II processor booting from Intel® Serial flash (EPCQ).

The Nios® II SBT tool automatically adds the Nios® II processor memcpy-based boot copier to the system when the executable file (.elf) is converted to the memory initialization file (.hex). The boot copier is located at the base address of the HEX data, followed by the application.

For this boot option, the Nios® II processor starts executing the boot copier software upon system reset which copies the application from the EPCQ to the internal or external RAM. Once this completes, the Nios® II processor transfers the program control over to the application.

Figure 1. EPCQ Flash Layout When Using Boot CopierIn this figure, the size of the FPGA image (*.sof) is estimated to be less than 0x01E00000. Customer data (*.hex) is set to start at address 0x01E000000 and the size of the *.hex file is assumed to be 0x0000E400.