Altera_Forum
Honored Contributor
14 years ago[HELP]Flash programming Cyclone III, file issue.
Hi
I'm working on a Cyclone III system and I try to put my software in the flash without using an USB Blaster. My solution is to send the binaries through an RS232 serial cable and write it in the flash. I know how to read/write in the flash and looking at my numerous tests, I'm pretty sure I write correctly the file I send. how i make the file i send : - first I use sof2flash and elf2flash to create firmware.flash and software.flashsof2flash --input="mySOF.sof" --output="firmware.flash" --epcs
elf2flash --input="myELF.elf" --output="software.flash" --epcs --after="firmware.flash" - then I use the objcopy command to transform my .flash to .bin C:\altera\11.0\nios2eds\bin\gnu\H-i686-mingw32\bin\nios2-elf-objcopy -I srec -O binary firmware.flash firmware.bin
C:\altera\11.0\nios2eds\bin\gnu\H-i686-mingw32\bin\nios2-elf-objcopy -I srec -O binary software.flash app.bin-third step is the concatenation of the two files : copy /B firmware.bin + /B app.bin /B app_image.bin- And last, I give it to my transfert soft, the file is writen in the flash, but if I reboot the system, it doesn't work :( I've found all this stuff here : (sorry, I can't post correct links...) alteraforum.com/forum/showthread.php?t=5244&referrerid=2226 Did I make something wrong ? For the moment, if I use my firmware.flash and software.flash files in the Flash Programmer, the system works properly...