User Guide

Elf2ash Utility
e elf2ash 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 aer 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 aer POF conguration, and thus
the SREC image only contains the ELF payload.
When either CFI and EPCS bootcopier is used, elf2ash extracts ELF loadable sections as the bootcopiers
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 .Elf2ash also generates a last, extra section for storing
the .text section load address to allow bootcopier to transfer control to the program.
is elf2ash 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
Soware
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
Elf2ash Utility
13
Generic Nios II Booting Methods User Guide
Altera Corporation
Send Feedback