Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

[HELP]Flash programming Cyclone III, file issue.

Altera_Forum
Honored Contributor II
1,402 Views

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.flash 

sof2flash --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...
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
664 Views

Try reading back the firmware in both cases and compare what is going wrong. 

Maybe that gives you a hint.
0 Kudos
Altera_Forum
Honored Contributor II
664 Views

I did it already, the binaries are not the same. 

 

But I don't know what the Flash Programmer does to the .flash files...
0 Kudos
Reply