Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNew version of NiosII Flash Programmer
Hello, I'm reading the manual for the Nios II Flash Programmer User Guide, but it appears to not cover my software? On page 18, figure 1-3 shows options for "Program flash memory with softwa...
Altera_Forum
Honored Contributor
21 years agoI have tried a simple test, using the pre-built target board flash programmer. Apart from a Java application erro at the very end, it sucessfully programs the EPC device on my Nios Cyclone Devkit via the JTag connector.
So..... the .sof pre-built programmer from Altera for the dev-kit works okay. However, if I try to build my own target_board (for the nios devkit) using this line:- ml_target_board --name=dev_kit_board_test --family=cyclone --clock=50 --index=1 --buffer_size=16384 --epcs=U59 and try to then use this flash programmer design the failure is as follows, so this 'Unrecognized EPCS device ID: -1' must be a problem with my tools? Is it possible to get the source-design for the Altera Flash Programmer, since it clearly works - and presumaly it was generated using the mk_target_board utility? If this is the case, what exact command-line parameters were used? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif make: Entering directory `/cygdrive/f/projects/devkit/full_featured/software/devkit_standalone_test/Release' nios2-flash-programmer --input=ext_flash.flash --sof=`F:/altera/quartus41/sopc_builder/bin/find_sopc_component_dir dev_kit_board_test`/system/dev_kit_board_test.sof --device=1 --base=0x00800000 31-Jan-2005 15:36:08 - (INFO) nios2-flash-programmer: Input file empty--no data to program into flash. Exiting. 31-Jan-2005 15:36:16 - (INFO) nios2-flash-programmer: Launching Quartus Programmer to download: F:/projects/devkit/full_featured/dev_kit_board_test/system/dev_kit_board_test.sof Unrecognized EPCS device ID: -1 31-Jan-2005 15:36:36 - (SEVERE) nios2-flash-programmer: Error opening target hardware 31-Jan-2005 15:36:36 - (SEVERE) nios2-flash-programmer: Unable to open flash-device 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-built flash-programming designs pre-built for several development boards. If you wish 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. make: *** [epcs_controller_boot_rom_programflash] Error 5 make: Leaving directory `/cygdrive/f/projects/devkit/full_featured/software/devkit_standalone_test/Release'