Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

EPCS boot understanding

Altera_Forum
Colaborador honorário II
1.218 Visualizações

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 

regards
0 Kudos
6 Respostas
Altera_Forum
Colaborador honorário II
528 Visualizações

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.
Altera_Forum
Colaborador honorário II
528 Visualizações

> 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.
Altera_Forum
Colaborador honorário II
528 Visualizações

...and if what I need is a POF file for programming the EPCS during production using the Quartus programmer or a custom programming tool?

Altera_Forum
Colaborador honorário II
528 Visualizações

Hi Jesse & smcnutt, 

 

thanks for your answers. I did it like the way u showed. But it seems that the software doesn&#39;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.
Altera_Forum
Colaborador honorário II
528 Visualizações

> @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&#39;t slow you down too 

much ;-) 

 

--Scott
Altera_Forum
Colaborador honorário II
528 Visualizações

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

The syntax has changed a bit ... but hopefully that won&#39;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
Responder