Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

I can't program my flash ( flash programmer )

When I upload the *.bin file to my flash, without come into the flash programmer, the below is the messages in the console

------------------------------------------------
Microtronix Linux Extensions
Version 1.4, Built June 20, 2005
------------------------------------------------
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
Nov 9, 2006 9:22:22 PM - (??) nios2-flash-programmer: Launching Quartus Programm
er to download:
     d:/altera/kits/nios2/examples/my_board/system/my_board.sof
Send (64) failed.
Unable to synchronize with target.
Nov 9, 2006 9:23:19 PM - (??) nios2-flash-programmer: Error opening target hardw
are
Nov 9, 2006 9:23:19 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

When I click and come into the flash programmer, then

#! /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:/fpga_design/uclinux_nios/nios_linux_v2/build
#  Creating .flash file for the FPGA configuration
$SOPC_KIT_NIOS2/bin/sof2flash --flash=U3 --offset=0x00000000 --input=D:/fpga_des
ign/uclinux_nios/uclinux_nios.sof --output=uclinux_nios.flash
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert D:/fpga_design/uclinux_nios/ucl
inux_nios.sof uclinux_nios.rbf
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
    Info: Processing ended: Fri Nov 10 21:12:51 2006
    Info: Elapsed time: 00:00:01
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=uclinux_nios.flash --sof=$SOP
C_KIT_NIOS2/examples/my_board/system/my_board.sof --base=0x00200000
Nov 10, 2006 9:12:52 PM - (??) nios2-flash-programmer: Launching Quartus Program
mer to download:
     d:/altera/kits/nios2/examples/my_board/system/my_board.sof
Send (64) failed.
Unable to synchronize with target.
Nov 10, 2006 9:13:40 PM - (??) nios2-flash-programmer: Error opening target hard
ware
Nov 10, 2006 9:13:40 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=U9 --epcs --base=0x0 --end=0x7fffffff --in
put=vmlinux --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/alt
era_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
Nov 10, 2006 9:13:44 PM - (??) nios2-flash-programmer: SOF-download skipped.
Send (8) failed.
Unable to synchronize with target.
Nov 10, 2006 9:14:19 PM - (??) nios2-flash-programmer: Error opening target hard
ware
Nov 10, 2006 9:14:19 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=U3 --base=0x00800000 --end=0x8fffff --rese
t=0xa01800 --input=vmlinux --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIOS2/com
ponents/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=cfi_flash_0.flash --sof=__NO_
SOF_PLEASE__ --base=0x00200000
Nov 10, 2006 9:14:19 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
#  Creating .flash file for the datafile
$SOPC_KIT_NIOS2/bin/bin2flash --flash=U3 --location=0x0 --input=vmlinux.bin --ou
tput=vmlinux.flash
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
#  Programming flash with the datafile
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=vmlinux.flash --sof=__NO_SOF_
PLEASE__ --base=0x00200000
Nov 10, 2006 9:14:23 PM - (??) nios2-flash-programmer: SOF-download skipped.
Send (8) failed.
Unable to synchronize with target.
Nov 10, 2006 9:14:58 PM - (??) nios2-flash-programmer: Error opening target hard
ware
Nov 10, 2006 9:14:58 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

Any help will be appreciated greatly!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Nov 11 2006, 06:59 AM

    look at the nios wiki.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19379)

    --- quote end ---

    --- Quote End ---

    Thanks for your help, I will look the nios wiki carefully!