Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

Linker Question: How to make a HEX file?

Altera_Forum
Honored Contributor II
1,015 Views

Using the linker, I end up with a .out file. I need to make either a HEX file (Intel format) or a binary image that can be used by a Flash programmer. 

 

John
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
282 Views

John, 

 

> I need to make either a HEX file (Intel format) 

 

nios2-elf-objcopy -O ihex --gap-fill=0xff a.out a.ihex 

 

> or a binary image that can be used by a Flash programmer. 

 

nios2-elf-objcopy --gap-fill=0xff -O binary a.out a.bin 

 

Regards, 

--Scott
0 Kudos
Reply