User Guide
Table Of Contents
- Generic Nios II Booting Methods User Guide
- Overview
- Prerequisites
- Acronym
- Nios II Processor Boot Copier
- Nios II Processor Booting Methods
- Nios II Booting General Flow
- Summary of Nios II Processor Vector Configurations and BSP Settings
- Nios II Processor Application Execute-In-Place from CFI Flash
- Nios II Processor Application Copied from CFI Flash to RAM Using Boot Copier
- Nios II Processor Application Copied from EPCS Flash to RAM Using Boot Copier
- Nios II Booting Elements
- Nios II Programming Solutions
- Document Revision History for Generic Nios II Booting Methods
Elf2ash Utility
e elf2ash utility generates SREC image (*.ash extension) by extracting ELF loadable sections. e
SREC image can then be programmed into ash devices supported by Nios II Flash Programmer.
For CFI ash devices, both the optional CFI bootcopier and ELF loadable sections are stored in the device.
When the CFI bootcopier is not used, the SREC image only contains loadable section data. When the CFI
bootcopier is used, the SREC image contains a CFI bootcopier and the ELF payload, where the bootcopier
is precompiled to assume the payload is linked immediately aer it.
For EPCS/EPCQ ash devices, only the ELF payload is stored in the device. EPCS bootcopier is always
required, but is stored within the EPCS controller boot ROM initialized aer POF conguration, and thus
the SREC image only contains the ELF payload.
When either CFI and EPCS bootcopier is used, elf2ash extracts ELF loadable sections as the bootcopier’s
payload in the form of payload header (4 bytes load address + 4 bytes section size) and payload data (n-
bytes section data) for each loadable sections .Elf2ash also generates a last, extra section for storing
the .text section load address to allow bootcopier to transfer control to the program.
is elf2ash utility is an important element for Nios II Flash Programming ow method.
Nios II Programming Solutions
e following table lists the available Nios II processor booting methods with the respective programming
solution:
Booting Memory Flash Programming Solution
1
Programming Solution
2
References
CFI Nios II Flash
Programmer
Quartus Prime
Programmer
Nios II Flash Programmer User
Guide
Parallel Flash Loader IP Core
User Guide
EPCS Nios II Flash
Programmer
Quartus Prime
Programmer
Nios II Flash Programmer User
Guide
AN370: Using the Serial Flash
Loader with the Quartus II
Soware
MAX10 UFM Quartus Prime
Programmer
AN730: Nios II Processor Booting
Methods in MAX 10 Devices
EPCQ Quartus Prime
Programmer
AN736: Nios II Processor Booting
from Altera Serial Flash (EPCQ)
OCRAM Quartus Prime
Programmer
AN730: Nios II Processor Booting
Methods in MAX 10 Devices
Related Information
• AN736: Nios II Processor Booting from Altera Serial Flash (EPCQ)
• AN730: Nios II Processor Booting Methods in MAX 10 Devices
UG-20001
2016.05.24
Elf2ash Utility
13
Generic Nios II Booting Methods User Guide
Altera Corporation
Send Feedback










