Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

5.2.3.4. Nios® II Processor Application Copied from EPCQ Flash to RAM Using Boot Copier

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 FPGA recommends this solution for Nios® II processor booting from 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 98. 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.