- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try reading back the firmware in both cases and compare what is going wrong.
Maybe that gives you a hint.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did it already, the binaries are not the same.
But I don't know what the Flash Programmer does to the .flash files...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page