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_loader_cfi.srec --outfile=cfi_flash_0.flash --sim_optimize=0 --base=0x100000 --end=0x1FFFFF --reset=0x100000 If I create a text file called "flash" with the following contents and do "source flash" from the "Nios command line".... elf2flash --input=LynxApp.elf --boot=c:/altera/kits/nios2_51/components/altera_nios2/boot_loader_cfi.srec --outfile=cfi_flash_0.flash --base=0x200000 --end=0x2FFFFF --reset=0x200000 ...the same output is generated. Thus S-records are produced such as S325000000003A7001007400C0043A48019804F8FF9C1EFD3F983A2000003AE02E00062000008B When they should be S325001000003A7001007400C0043A48019804F8FF9C1EFD3F983A2000003AE02E00062000007B Have I missed something, or is there something wrong with elf2flash? I note there are changes in elf2flash.jar