Forum Discussion
Altera_Forum
Honored Contributor
19 years agoGrant,
> Thanks, I had deduced that, but I was looking for exact > descriptions of what each parameter does, where the bootloader > is "thrown in", etc. Fair enough, my bad ... it's in the "Nios II Flash Programmer User Guide", not the "Nios II Software Developer’s Handbook." My most sincere apologies. <div class='quotetop'>QUOTE </div> --- Quote Start --- elf2flash The elf2flash utility takes a software executable file in .elf format, and translates it to an S-record file suitable for programming into flash memory. elf2flash also inserts a boot copier into the flash file, if needed. elf2flash inserts the boot copier code before the application code under the following conditions: ■ The CPU's reset address falls within the address range of the flash memory being programmed. ■ The executable code is linked to a memory location outside of the flash memory being programmed. If elf2flash inserts a boot copier, it also translates the application code .elf file to a boot record for use by the boot copier. This boot record contains all of the application code, but is not executable. After reset, the boot copier reads the boot record from flash memory and copies the application code to the correct linked address, and then branches to the newly-copied application code.[/b] --- Quote End --- > Then why was elf2flash written? Just for obsfucation value? Sorry, I can't answer that ... but it's awful handy when using the flash programmer ;-) > I did. And I just searched it again: the string "bootloader" > doesn't appear even once in the handbook. > Am I reading the wrong handbook? Yes, again, my apologies ... search for "boot copier" in the flash programmer's manual. Regards, --Scott