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++

elf2flash issues

Altera_Forum
Honored Contributor II
1,161 Views

All, 

. I'm having some issues with the elf2flash utility and I'm hoping you can help me. 

. When I run the elf2flash utility on a particular .elf application file, it does not put the length and address records into the resulting srec file. 

 

Any ideas? 

Thanks, 

Jake
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
401 Views

Okay I found the issue. The problem is that I'm creating a boot record for a nios processor that is not connected to the flash where I'm storing the application image. And in this particular case, the address of the processor overlaps the address of the flash. So there was no need for the length and addres records. I just lied to the utility about the flash begin and end addresses. I convert it to binary at the end anyway. 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
401 Views

If you just want the contents of an elf section, it is probably simpler to use:objcopy -O binary -j <section_name> <input_file> <output_file> 

Add '--set-section-flags <section_name>=contents,load' to extract a non-loadable section (eg .comment)
0 Kudos
Reply