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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

FLASH PROGRAMMER DOWN LOAD ????

Altera_Forum
Honored Contributor II
1,429 Views

DEAR ALL, 

I made a custom board with EP1C6Q240C8 and am29lv065d-90rei etc,after i made the target board I download the flie to the flash , but failured ,this information displayed in the IDE,please help !thanks# ! /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 E:/work/1011/hello_led_0/Debug 

# Creating .flash file for the FPGA configuration 

$SOPC_KIT_NIOS2/bin/sof2flash --flash=U14 --offset=0x00700000 --input=E:/work/10 

11/sopc_jj.sof --output=sopc_jj.flash 

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

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert E:/work/1011/sopc_jj.sof sopc_j 

j.rbf 

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

Info: Processing ended: Fri Oct 14 11:08:59 2005 

Info: Elapsed time: 00:00:00 

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=sopc_jj.flash --sof=E:/work/1 

011/FZH_NIOS_KIT/system/FZH_NIOS_KIT.sof --cable='ByteBlasterII [LPT1]' --device 

=1 --base=0x00800000 

Oct 14, 2005 11:09:00 AM - (??) nios2-flash-programmer: Launching Quartus Progra 

mmer to download: 

E:/work/1011/FZH_NIOS_KIT/system/FZH_NIOS_KIT.sof 

Unable to synchronize with target. 

Oct 14, 2005 11:10:07 AM - (??) nios2-flash-programmer: Error opening target har 

dware 

Oct 14, 2005 11:10:07 AM - (??) 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=U14 --base=0x00000000 --end=0x7fffff --res 

et=0x0 --input=hello_led_0.elf --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/c 

omponents/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__ --cable='ByteBlasterII [LPT1]' --device=1 --base=0x00800000 

Oct 14, 2005 11:10:07 AM - (??) nios2-flash-programmer: SOF-download skipped. 

Oct 14, 2005 11:11:18 AM - (??) nios2-flash-programmer: Error opening target har 

dware 

Oct 14, 2005 11:11:18 AM - (??) 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. 

Unable to synchronize with target. 

WARNING: Default charset GBK not supported, using ISO-8859-1 instead
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
449 Views

I looks like that you did not setup MAKE_CUSTOM_BOARD design correctly. 

Please refe <documents>/ ug_nios2_flash_programmer.pdf
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

These kind of problems can also occure, if you have enabled &#39;Device-wide Reset DEV_CLRn&#39; and this pin is actively driven low. This can be the reason that your custom-board design don&#39;t run. 

So check in Quartus 5.0: Assignments->Device->Device & Pin Options if this feature is enabled and active due to low level. 

 

Mike
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

I have been tearing my hair out for several months with the same problem. 

Try downloading Quartus V5.1 and NiosII V5.1, which seems to fix the problem (almost). 

Regards 

Ed
0 Kudos
Reply