Forum Discussion
Altera_Forum
Honored Contributor
16 years agoFlash Programming
I dont want to use a flash programmer to download my .flash file to CFI flash. I am able download the .flash file to CFI flash succesfully, using the alt_write_flash. When i power up ...
Altera_Forum
Honored Contributor
16 years agoThe ".flash" file is basically an SREC (SRecord). What you want to do is parse the binary data from the SREC (containing either SOF or ELF content) and program THAT into flash. This is what the flash programmer does and this is what the BUP (board update portal) or webserver with flash update/reconfig does as well.
Alternately, you could use objcopy to convert the SREC to binary format on your PC...avoiding the SREC parsing by Nios II. Best Regards, --slacker