Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi armen,
> In my own project U3 is mapped to address 0000_0000, > and in the programmer project U3 is is actually mapped to address 0008_0000, > is there any problem? Yes, I believe this is your problem: <div class='quotetop'>QUOTE </div> --- Quote Start --- $QUARTUS_ROOTDIR/bin/jre/bin/java.exe -jar $SOPC_KIT_NIOS2/bin/elf2flash.jar --f lash=U3 --base=0x00000000 --end=0x80000 --reset=0x0 --input=hello_led_0.elf --ou tput=SST39VF040_70_4I_NH.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/bo ot_loader_cfi.srec[/b] --- Quote End --- This will generate an S0 record in your flash file that specifies something like: S01A000055333A30313A30303030303030303A3030303830303030A8 Which contains the string " U3:01:00000000:00080000" So, the programmer wants to program a flash device named U3 that starts at 0080_0000, but the flash file is for a device named U3 that starts at 0. You can use the command line to convert your elf to binary, then convert the binary to flash. When you create the flash file you can lie about the base address ;-) ... or you can just update your programmer design. Regards, --Scott