- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
I have a 2C8 board with a EPCS4 flash for FPGA configuration and software. Now I trying to get both in the flash: SOF conversion: sof2flash --epcs -input=nem2.sof --output=nem2.flash elf conversion: elf2flash --epcs --after=nem2.flash --boot=boot_loader_epcs.srec --input=program.elf The result are two srec file. How can combine both that the nios2-programmer can write it to the epcs controller? kind regards regardsLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no need to combine them; you can call the flash programmer twice, once with each srec, and it will do the right thing. This is what the Nios II IDE flash programmer GUI does for you.
However, if you really want one file you can concatenate the two of them together and then call the flash programmer once.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> How can combine both that the nios2-programmer can write it to the epcs controller?
$ nios2-flash-programmer --epcs --sof=<PGM> --input=program.flash $ nios2-flash-programmer --epcs --sof=<PGM> --input=nem2.flash --relocate <PGM> is your flash programming design.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
...and if what I need is a POF file for programming the EPCS during production using the Quartus programmer or a custom programming tool?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jesse & smcnutt,
thanks for your answers. I did it like the way u showed. But it seems that the software doesn't start. The reset-address in the SOPC builder is set to the "EPCS Controller". Any idea about that? thanks in advance revolt @smcnutt: The commands u used are not supported with the 5.1 flash-programmer.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> @smcnutt: The commands u used are not supported with the 5.1 flash-programmer.
Really? The "Nios II Flash Programmer User Guide" (October 2005 -- which includes updates for Nios II Version 5.1) has the command listed in Section 3, "Using the Flash Programmer in Command-Line Mode". The syntax has changed a bit ... but hopefully that won't slow you down too much ;-) --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<div class='quotetop'>QUOTE </div>
--- Quote Start --- The syntax has changed a bit ... but hopefully that won't slow you down too much ;-)[/b] --- Quote End --- Not really http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif I have another question. Is it possible to put the programcode at a definded address at the epcs device? I mean using a command like --address=0x40000 instead of --after=xyz.flash for the elf2flash tool. kind regards
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