Forum Discussion
Altera_Forum
Honored Contributor
20 years agoNios 5.1, elf2flash ignores base address?
I have just upgraded from Version 5 to Version 5.1 The generated command line is this: elf2flash --input=LynxApp.elf --flash=IC2 --boot=c:/altera/kits/nios2_51/components/altera_nios2/boot_...
Altera_Forum
Honored Contributor
20 years ago> This ^^^ produces a SREC file which addresses the SRAM - that's not what I need!
Of course not! But ... > Have I missed something, or is there something wrong with elf2flash? ... your original question has been answered. Let's try another way. From my earlier post: <div class='quotetop'>QUOTE </div> --- Quote Start --- This is the boot copier code at offset 0 in your flash device.[/b] --- Quote End --- and, from the Nios II Flash Programmer User Guide, October 2005 (Emphasis added):<div class='quotetop'>QUOTE </div> --- Quote Start --- nios2-flash-programmer can use any S-record file as an input, provided that the addresses specified in the S-record file represent offsets from the beginning of flash memory .[/b] --- Quote End --- > I'm just going to have to modify the flash programmer code to add the offset. You might want to grab another cup of coffee and mull it over a bit before doing this. Regards, --Scott