Forum Discussion
Altera_Forum
Honored Contributor
19 years agoProgramming Board Flash
I am working on a project trying to develop some software on an Altera DE1 board. It is driven by a Cyclone II EP2C20F484C7 and first of all the SOPC Builder in Quartus II doesn't have a Board D...
Altera_Forum
Honored Contributor
19 years agoAs was said the flash chip is 4MB capacity... what is the script file's extension? I wasn't sure which one was the flash script file so I don't have that for you yet but here's an exact copy and paste from the Nios II console window:
# !/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:/DE1/DE1_demonstrations/DE1_NIOS/software/Media_Center_X/Release # Creating .flash file for the FPGA configuration "$SOPC_KIT_NIOS2/bin/sof2flash" --offset=0xC00000 --input="C:/DE1/DE1_demonstrat ions/DE1_NIOS/DE1_NIOS.sof" --output="DE1_NIOS.flash" Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert C:/DE1/DE1_demonstrations/DE1_N IOS/DE1_NIOS.sof DE1_NIOS.rbf Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Allocated 43 megabytes of memory during processing Info: Processing ended: Wed Jan 31 16:42:59 2007 Info: Elapsed time: 00:00:03 # Programming flash with the FPGA configuration "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --cable='USB-Blas ter [USB-0]' "DE1_NIOS.flash" Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: Input file is too large to fit (device s ize = 0x400000) OK Leaving target processor paused # Creating .flash file for the project "$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x00000000 --end=0x3fffff --reset=0x0 --i nput="Media_Center_X.elf" --output="cfi_flash_0.flash" --boot="C:/altera/61/ip/n ios2_ip/altera_nios2/boot_loader_cfi.srec" # Programming flash with the project "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --cable='USB-Blas ter [USB-0]' "cfi_flash_0.flash" Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: OK : Checksumming existing contents 00000000 : Verifying existing contents Checksummed/read 1kB in 0.0s Erase not required 00000000 ( 0%): Programming Programmed 1KB in 0.0s No change to device contents Leaving target processor paused