Altera_Forum
Honored Contributor
20 years agoHelp with Flash Programmer on custom board
Hi!
I've made a board with cpld and flash as in Cyclone Development Kit, but different is cpld EPM3128A only. I ran it on Quartus 4.0 (SP1) and NIOS 1.0 (SP1) and it is configuring and working OK. I try to configure it in new version of Quartus 4.2 with SP1 single and NIOS 2 1.1, but when I was programming it by Flash Programmer appear errors. I've changed a JTAG_UART in custom board design and added a reset_delay block but error is the same. Maybe someone had this problem before? Thanks. Error: # ! /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 C:/altera/qdesigns42/CamelotProject1/software/CamelotProject1/Debug # Creating .flash file for the FPGA configuration $SOPC_KIT_NIOS2/bin/sof2flash --flash=U5 --offset=0x00700000 --input=C:/altera/q designs42/CamelotProject1/CamelotProject1.sof --output=CamelotProject1.flash Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert C:/altera/qdesigns42/CamelotPro ject1/CamelotProject1.sof CamelotProject1.rbf Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Thu Mar 24 13:18:37 2005 Info: Elapsed time: 00:00:00 # Programming flash with the FPGA configuration $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=CamelotProject1.flash --sof=$ SOPC_KIT_NIOS2/components/Camelot_Custom_Board/system/Camelot_Custom_Board.sof - -cable='USB-Blaster [USB-0]' --base=0x00800000 24.03.2005 13:18:39 - (INFO) nios2-flash-programmer: Launching Quartus Programme r to download: C:/altera/kits/nios2/components/Camelot_Custom_Board/system/Camelot_Custom_ Board.sof Send (64) failed. Unable to synchronize with target. 24.03.2005 13:19:19 - (SEVERE) nios2-flash-programmer: Error opening target hard ware 24.03.2005 13:19:19 - (SEVERE) 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. # Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --flash=U5 --base=0x00000000 --end=0x800000 --rese t=0x0 --input=CamelotProject1.elf --output=cfi_flash_0.flash --boot=$SOPC_KIT_NI OS2/components/altera_nios2/boot_loader_cfi.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=cfi_flash_0.flash --sof=__NO_ SOF_PLEASE__ --cable='USB-Blaster [USB-0]' --base=0x00800000 24.03.2005 13:19:20 - (INFO) nios2-flash-programmer: SOF-download skipped. Send (8) failed. Unable to synchronize with target. 24.03.2005 13:19:51 - (SEVERE) nios2-flash-programmer: Error opening target hard ware 24.03.2005 13:19:51 - (SEVERE) 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.