MAX 10 Plus User
Manual
84
May 31, 2019
•
Now, you can set the BOOT_SEL by SW16, you will find if you set BOOT_SEL=0, the image0
will be loaded and if you set BOOT_SEL=1, he image1 will be loaded.
7.3
Nios II Load In Single Boot Image
After the internal configuration, if a Nios II processor is contained in the image and the reset vector
of the processor is set to onchip memory data section, the CPU will load the code from the UFM in
the onchip flash. The CPU loading procedure occurs either in single image configuration mode or
dual compressed image configuration mode. You must make sure only one image contains the
processor in dual compressed image configuration mode.
Users need to write the hardware and software binary into the nonvolatile flash memory for the
MAX10 FPGA auto boot after power-cycling. The onchip flash memory in the FPGA provides the
possibility to boot the software for the Nios II processor.
The demonstration my_first_niosII is designed for Nios II processor loading software after the
FPGA configuration complete. The section describes the detailed steps of the design.
•
An onchip flash controller ip should be added into the Qsys for storing software code. The CPU
data master and instruction master interface are connected to the onchip flash data bus as shown
in
Figure 7-9 Qsys Design
•
And the reset vector of the CPU should be onchip flash data section. The configuration mode in
the onchip flash parameter setting and the Quartus device setting window should all be set as
Single Uncompressed Image.
•
In the
BSP Editor (Nios II SBT for Eclipse) utility
of the Eclipse, all the check box in the
hal.linker table should be checked as shown in
Figure 7-10 BSP Advance Setting