Altera_Forum
Honored Contributor
20 years agoA problem of programming flash...
Hi all,
I meet a new problem when programming flash in NiosII IDE. Just because the err popped during regeneration, I removed the epcs_controller from the components list of my design in the SOPCBuilder.Then I regenerated the actual design,it proved successful.After this, I updated the symbol in the .bdf and recompiled.After the compilation,I builded a new project "hello_led" from the template projects list in the NiosII IDE. It seemed that building and later running as NiosII Hardware either was OK. However,when I tried to program this project into the flash on the dev board,some err message came out, -----------------------# ! /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:/EDA/UP3/design/The_Last_One/software/hello_led_1/Debug # Creating .flash file for the FPGA configuration $SOPC_KIT_NIOS2/bin/sof2flash --flash=U8 --offset=0x700000 --input=E:/EDA/UP3/de sign/The_Last_One/For_UP3.sof --output=For_UP3.flash Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert E:/EDA/UP3/design/The_Last_One/ For_UP3.sof For_UP3.rbf Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Wed Jul 27 18:11:52 2005 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=For_UP3.flash --sof=E:/EDA/UP 3/design/The_Last_One/my_new_board/system/my_new_board.sof --base=0x00200000 Jul 27, 2005 6:11:53 PM - (??) nios2-flash-programmer: Launching Quartus Program mer to download: E:/EDA/UP3/design/The_Last_One/my_new_board/system/my_new_board.sof Unable to synchronize with target. Jul 27, 2005 6:13:01 PM - (??) nios2-flash-programmer: Error opening target hard ware Jul 27, 2005 6:13:01 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=U8 --base=0x00800000 --end=0x8fffff --rese t=0xa00000 --input=hello_led_1.elf --output=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=flash.flash --sof=__NO_SOF_PL EASE__ --base=0x00200000 Jul 27, 2005 6:13:03 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 ------------------ I notice "nios2-flash-programmer: Input file empty--no data to program into flash. Exiting" in the message above. But I cannot figure out why,because I successflly made my target board and builded the "hello_led" project.So I wonder whether this problem might be has somthing with my removing of the epcs_controller. Could you please give some suggestions about that? Thank you in advance! Regards, Don ps.I use the mux module provided by SLS to the NiosII module running on the board.So I only make a LCD_RW _N signal as hign level to disable its sharing of the tri-state bus.(Because the SRAM shares the same Read signal as the flash on the board,and the SDRAM has not a read signal. )