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 agoCan't seem to find any documentation on what to set the offset to, or the details on how it works. Does the offset designate a region in the flash for the FPGA hardware configuration, leaving the lower addresses for programmable memory? We have tried a bunch of different offsets, and had no luck. The .sof file is 465KB and the .flash is 1,188KB. We tried using a value of 0x1220A0 which corresponds to the .flash size. Also tried 0x200000 and 0x300000 and several values between. Any information on how the offset works would be good.
THANKS! Here is a dump of the console with an offset of 0x1220A0: # Creating .flash file for the FPGA configuration "$SOPC_KIT_NIOS2/bin/sof2flash" --offset=0x1220A0 --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: Fri Feb 02 09:41:51 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: OK : Checksumming existing contents 00120000 : Reading existing contents 00130000 : Reading existing contents 00140000 : Reading existing contents 00150000 : Reading existing contents 00160000 : Reading existing contents 00170000 : Reading existing contents 00180000 : Reading existing contents 00190000 : Reading existing contents Checksummed/read 37kB in 1.1s 00120000 ( 0%): Erasing 00130000 (12%): Erasing 00140000 (25%): Erasing 00150000 (37%): Erasing 00160000 (50%): Erasing 00170000 (62%): Erasing 00180000 (75%): Erasing 00190000 (87%): Erasing Erased 512kB in 4.1s (124.8kB/s) 00120000 ( 0%): Programming 00130000 (12%): Programming 00140000 (25%): Programming 00150000 (37%): Programming 00160000 (50%): Programming 00170000 (62%): Programming 00180000 (75%): Programming 00190000 (87%): Programming Programmed 476KB +36KB in 10.5s (48.7KB/s) Device contents checksummed 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