Visible to Intel only — GUID: suc1427742576987
Ixiasoft
1.1. Definitions
1.2. Description of the Altera Serial Flash Controller
1.3. Scenarios for Booting Nios II from EPCQ Flash
1.4. Nios II Processor Configuration and Boot Flow
1.5. Steps to Build a Bootable System
1.6. EPCQ HAL Driver
1.7. Nios II Processor Booting Elements
1.8. Revision History for Nios II Booting From Altera Serial Flash (EPCQ)
Visible to Intel only — GUID: suc1427742576987
Ixiasoft
1.5.3. BSP Editor Settings
- Open the Nios II SBT tool and create the Nios II processor HAL BSP based on the .sopinfo created from Qsys generation.
- Right-click on the BSP that you have created and select Nios II > BSP Editor.
- Configure the Settings.Advanced.hal.linker and the Linker Section mappings in the BSP Editor based on your boot options. Refer to the table below.
Table 3. BSP Editor Mappings Boot Option BSP Editor: Linker Script Settings.Advanced.hal.linker Nios II processor application executes in place from EPCQ flash - Set .text Linker Section to EPCQ (epcq_controller_0_avl_mem)
- Set other Linker Sections (.heap, .rwdata, .rodata, .bss, .stack) to OCRAM
If the exception vector is set to OCRAM, enable the following settings in Settings.Advanced.hal.linker:
- allow_code_at_reset
- enable_alt_load
- enable_alt_load_copy_rodata
- enable_alt_load_copy_rwdata
- enable_alt_load_copy_exceptions
If the exception vector is set to EPCQ, enable the following settings in Settings.Advanced.hal.linker:
- allow_code_at_reset
- enable_alt_load
- enable_alt_load_copy_rodata
- enable_alt_load_copy_rwdata
Nios II processor application is copied from EPCQ flash to RAM using boot copier Make sure all Linker Sections are set to OCRAM/External RAM. Make sure all settings are left unchecked. Figure 5. Settings.Advanced.hal.linker for Execute-In-Place Method if Exception Vector is Set to OCRAMFigure 6. Settings.Advanced.hal Linker for Execute-in-Place Method if Exception Vector is Set to EPCQFigure 7. Settings.Advanced.hal Linker for Boot Copier MethodFigure 8. Linker Section Mappings for Execute-In-Place MethodFigure 9. Linker Section Mappings for Boot Copier Method - Click Generate. Make sure the BSP generation is successful.
- Click Exit to close the BSP editor.