Forum Discussion
Altera_Forum
Honored Contributor
16 years agoelf2flash issues
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, Jake2 Replies
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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)