Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI transfer the bin file to my device through ADS over EtherCAT protocol. I have checked at the receiving end if there is any dataloss but the data is intact. And then I use the alt_write_flash function to write the whole data in to my flash device with offset as '0' and length equal to the my file size.
Please find below the commands that I use to convert my flash files to a bin file. Are they alright?? sof2flash --input=widrive.sof --output=widrivehardware.flash --epcs --verbose
elf2flash --input=drive_fpga.elf --output=widrivesoftware.flash --epcs --after=widrivehardware.flash --verbose
nios2-elf-objcopy -i srec -o binary widrivesoftware.flash softwarefirmware.bin"
nios2-elf-objcopy -i srec -o binary widrivehardware.flash hardwarefirmware.bin"
cat softwarefirmware.bin hardwarefirmware.bin > firmware.bin