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++
12746 Discussions

EPCS programing to custom board

Altera_Forum
Honored Contributor II
1,030 Views

Hi 

I'm trying to program the EPCS found on my custom board , but witout success. 

(i know how to use the flash progarmmer with te evalution kit ) 

 

i have folowed the doc :ug_nios2_flash_programmer.pdf 

about how to use the flash progarmmer and how to create your hown target board. i have managed to pass all the steps in this doc. 

1. created my target board using mk_target_board 

2. genrated it and compile it  

3. used the result in my orignal design  

4. compiled my orignal design 

all the abopve steps have pass with no error 

but when i have tried to use Nios IDE , to programme the epcs  

I got a message error: 

Unable to synchronize with target. 

 

this happen while trying to execute the next script:# Programming flash with the FPGA configuration 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ALTERA.flash --sof=c:/afp/NiosBoard/system/NiosBoard.sof --epcs
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
367 Views

after talking with altera people here is the conclusions: 

 

if you are having problems with the flash programmer, I strongly recommend you upgrade to Quartus 5.1 and nios5.1. most of the problems with the flash programmer have been resolved in this release, and there is more debugging data available in the 5.1 release. 

 

if you need to program the EPCS under 4.2, here are a few hints. 

 

you need a tri state bridge in the mk_target_board design, even though you don't require it, a bug in the software makes it necessary. 

 

 

ensure the target board design has a PLL and reset delay componet, just like the standard reference designs, and ensure the clock settings in the SOPC builder design are correct.
0 Kudos
Reply