Altera_Forum
Honored Contributor
20 years agohelp for flash programming error!
I'm using QuartusII4.2+sp1,NiosII1.1,ByteBlasterII cable, and an EP1C12Q240 on my custom board.
I built a flash programmer design as the "NiosII Flash Programmer user guide" instructs,I use a flash SST39VF040 and an EPCS4, then I build my system with this board. After every thing is done, I launch the flash programmer and want to program the software to the flash,but there's always an error shows below. The following is the message from the Flash programmer: <div class='quotetop'>QUOTE </div> --- Quote Start --- #! /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 F:/FPGA/NIOSII_DEV/software/hello_led_0/Debug # Creating .flash file for the project $QUARTUS_ROOTDIR/bin/jre/bin/java.exe -jar $SOPC_KIT_NIOS2/bin/elf2flash.jar --f lash=U5 --epcs --base=0x0 --end=0x7fffffff --input=hello_led_0.elf --output=.fla sh --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec WARNING: Default charset GBK not supported, using ISO-8859-1 instead # Programming flash with the project $QUARTUS_ROOTDIR/bin/jre/bin/java.exe -jar $SOPC_KIT_NIOS2/bin/nios2-flash-progr ammer.jar --input=.flash --sof=f:/fpga/NIOSII_DEV/NIOSII_DEV_BOARD/system/NIOSII _DEV_BOARD.sof --epcs Jun 24, 2005 3:53:02 PM - (??) nios2-flash-programmer: Launching Quartus Program mer to download: f:/fpga/NIOSII_DEV/NIOSII_DEV_BOARD/system/NIOSII_DEV_BOARD.sof Pre-Reading 1KBytes of data from U5: |----.----+----.----| ********************* (4.217 sec). Writing 64KBytes : |----.----+----.----| ********************* (3.836 sec). Verifying 64KBytes of data: |----.----+----.----| ********************* (4.015 sec). Jun 24, 2005 3:53:29 PM - (??) nios2-flash-programmer: Success. Verified 64Kbyte s written to U5. Jun 24, 2005 3:53:29 PM - (??) nios2-flash-programmer: Flash programming complet e WARNING: Default charset GBK not supported, using ISO-8859-1 instead # Creating .flash file for the project $QUARTUS_ROOTDIR/bin/jre/bin/java.exe -jar $SOPC_KIT_NIOS2/bin/elf2flash.jar --f lash=U3 --base=0x00000000 --end=0x80000 --reset=0x0 --input=hello_led_0.elf --ou tput=SST39VF040_70_4I_NH.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/bo ot_loader_cfi.srec WARNING: Default charset GBK not supported, using ISO-8859-1 instead # Programming flash with the project $QUARTUS_ROOTDIR/bin/jre/bin/java.exe -jar $SOPC_KIT_NIOS2/bin/nios2-flash-progr ammer.jar --input=SST39VF040_70_4I_NH.flash --sof=__NO_SOF_PLEASE__ --base=0x000 80000 Jun 24, 2005 3:53:30 PM - (??) nios2-flash-programmer: SOF-download skipped. Jun 24, 2005 3:53:33 PM - (??) nios2-flash-programmer: Error opening target hard ware Jun 24, 2005 3:53:33 PM - (??) nios2-flash-programmer: Unable to open flash-d evice after successfully communicating with target. It is likely that you are using a flash-programming FPGA design which was not created for your target board. 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[/b] --- Quote End --- What's the problem?