Embedded Design Handbook

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

4.1.6.14.1. nios2-elf-objcopy Usage Example

To create an SREC file from an ELF file, use the following command:

nios2-elf-objcopy –O srec <project>.elf <project>.srec

ELF is the assumed binary format if none is listed. For information about how to specify a different binary format, in a Nios® II command shell, type the following command:

nios2-elf-objcopy --help