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

Question about flash-programmer

Altera_Forum
Honored Contributor II
924 Views

hi! 

when i use flashprogrammer download my process to epcs64.it always failure.the info in console window is: 

# ! /bin/sh# # This file was automatically generated by the Nios II IDE Flash Programmer.# # It will be overwritten when the flash programmer options change.#  

 

cd D:/altera/kits/nios2/examples/myprocess/flashprogram/software/memtest_0/Debug 

# Creating .flash file for the FPGA configuration 

$SOPC_KIT_NIOS2/bin/sof2flash --flash=U59 --offset=0x00000000 --epcs --input=$SO 

PC_KIT_NIOS2/examples/myprocess/flashprogram/flashprogram.sof --output=flashprog 

ram.flash 

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=flashp 

rogram.opt d:/altera/kits/nios2/examples/myprocess/flashprogram/flashprogram.sof 

flashprogram.pof 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Processing ended: Mon Apr 03 15:56:57 2006 

Info: Elapsed time: 00:00:03 

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert flashprogram.pof flashprogram.r 

pd 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Processing ended: Mon Apr 03 15:57:01 2006 

Info: Elapsed time: 00:00:04 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the FPGA configuration 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=flashprogram.flash --sof=$SOP 

C_KIT_NIOS2/examples/myprocess/flashprogram/my_program/system/my_program.sof --e 

pcs 

Apr 3, 2006 3:57:02 PM - (??) nios2-flash-programmer: Launching Quartus Programm 

er to download: 

d:/altera/kits/nios2/examples/myprocess/flashprogram/my_program/system/my_p 

rogram.sof 

Error: Can't configure device. Expected JTAG ID code 0x020B40DD for device 1, bu 

t found JTAG ID code 0x020B30DD. 

Error: Operation failed 

Error: Quartus II Programmer was unsuccessful. 2 errors, 0 warnings 

Apr 3, 2006 3:57:05 PM - (??) nios2-flash-programmer: Unable to download SOF: d: 

/altera/kits/nios2/examples/myprocess/flashprogram/my_program/system/my_program. 

sof, exiting 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Creating .flash file for the project 

$SOPC_KIT_NIOS2/bin/elf2flash --flash=U59 --epcs --base=0x0 --end=0x7fffffff --i 

nput=memtest_0.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/compone 

nts/altera_nios2/boot_loader_epcs.srec 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the project 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=epcs_controller.flash --sof=_ 

_NO_SOF_PLEASE__ --epcs 

Apr 3, 2006 3:57:05 PM - (??) nios2-flash-programmer: SOF-download skipped. 

Send (32) failed. 

Unable to synchronize with target. 

Apr 3, 2006 3:57:25 PM - (??) nios2-flash-programmer: Error opening target hardw 

are 

Apr 3, 2006 3:57:25 PM - (??) nios2-flash-programmer:  

In order to program flash, you must first create a purpose-built 

flash-programming design (i.e. FPGA configuration) and associate it with 

your particular board. The Nios development kit is delivered with purpose-bui 

lt 

flash-programming designs pre-built for several development boards. If you wi 

sh 

to program flash on your own board, you must first create a flash-programming 

design. 

 

The process of creating a flash-programming design for your board is mostly 

automated. From a bash-shell, execute this script: 

 

mk_target_board --help 

 

The help-message includes references to other documentation on programming 

flash and targeting Nios systems to custom board designs. 

- exiting. 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Creating .flash file for the project 

$SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x7fffff --rese 

t=0x801800 --input=memtest_0.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2 

/components/altera_nios2/boot_loader_cfi.srec 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the project 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=__NO_SO 

F_PLEASE__ --base=0x00800000 

Apr 3, 2006 3:57:25 PM - (??) nios2-flash-programmer: Input file empty--no data  

to program into flash. Exiting. 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

/////what's the reason? thankyou!/////
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
236 Views

hi! i have made some changes but it still can't dwonload to my epcs16.this is the info. thank you very much!!!!!!! 

 

 

# ! /bin/sh# # This file was automatically generated by the Nios II IDE Flash Programmer.# # It will be overwritten when the flash programmer options change.#  

 

cd D:/altera/kits/nios2/examples/myprocess/flashprogram/software/memtest_0/Debug 

# Creating .flash file for the FPGA configuration 

$SOPC_KIT_NIOS2/bin/sof2flash --flash=U59 --offset=0x00000000 --epcs --input=$SO 

PC_KIT_NIOS2/examples/myprocess/flashprogram/flashprogram.sof --output=flashprog 

ram.flash 

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=flashp 

rogram.opt d:/altera/kits/nios2/examples/myprocess/flashprogram/flashprogram.sof 

flashprogram.pof 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Processing ended: Tue Apr 04 09:14:51 2006 

Info: Elapsed time: 00:00:03 

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert flashprogram.pof flashprogram.r 

pd 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Processing ended: Tue Apr 04 09:14:55 2006 

Info: Elapsed time: 00:00:04 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the FPGA configuration 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=flashprogram.flash --sof=$SOP 

C_KIT_NIOS2/examples/myprocess/flashprogram/ceshif/system/ceshif.sof --epcs 

Apr 4, 2006 9:14:57 AM - (??) nios2-flash-programmer: Launching Quartus Programm 

er to download: 

d:/altera/kits/nios2/examples/myprocess/flashprogram/ceshif/system/ceshif.s 

of 

Apr 4, 2006 9:15:04 AM - (??) nios2-flash-programmer: Error copying data to the  

flash target 

Read failed @00000000 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Creating .flash file for the project 

$SOPC_KIT_NIOS2/bin/elf2flash --flash=U59 --epcs --base=0x0 --end=0x7fffffff --i 

nput=memtest_0.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/compone 

nts/altera_nios2/boot_loader_epcs.srec 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the project 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=epcs_controller.flash --sof=_ 

_NO_SOF_PLEASE__ --epcs 

Apr 4, 2006 9:15:05 AM - (??) nios2-flash-programmer: SOF-download skipped. 

Read failed @00000000 

Apr 4, 2006 9:15:10 AM - (??) nios2-flash-programmer: Error copying data to the  

flash target 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Creating .flash file for the project 

$SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x7fffff --rese 

t=0x801800 --input=memtest_0.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2 

/components/altera_nios2/boot_loader_cfi.srec 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead 

# Programming flash with the project 

$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=ext_flash.flash --sof=__NO_SO 

F_PLEASE__ --base=0x00800000 

Apr 4, 2006 9:15:11 AM - (??) nios2-flash-programmer: Input file empty--no data  

to program into flash. Exiting. 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead
0 Kudos
Reply