Altera_Forum
Honored Contributor
20 years agoFlash Programmer on DE2
Hi Everyone!
I've recently received the DE2 board. It's full of nice things but I want to be able to use it the same way I use the other Altera boards (meaning with the flahs programmer). When I try to download a design with a read only file system to the device's flash I get an error. I've included the transcript for the flahs programming procedure: <div class='quotetop'>QUOTE </div> --- Quote Start --- #! /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/Dev_Kits/DE2_System/DE2_demonstrations/DE2_Top/software/hello_DE2/D ebug # Creating .flash file for the FPGA configuration $SOPC_KIT_NIOS2/bin/sof2flash --epcs --input=C:/Altera/Dev_Kits/DE2_System/DE2_d emonstrations/DE2_Top/DE2_TOP.sof --output=DE2_TOP.flash Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=DE2_TO P.opt C:/Altera/Dev_Kits/DE2_System/DE2_demonstrations/DE2_Top/DE2_TOP.sof DE2_T OP.pof Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Mon Mar 06 10:14:34 2006 Info: Elapsed time: 00:00:04 Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert DE2_TOP.pof DE2_TOP.rpd Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Processing ended: Mon Mar 06 10:14:39 2006 Info: Elapsed time: 00:00:05 # Programming flash with the FPGA configuration $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-1]' --sidp= 0x00C81138 --id=2273640461 --timestamp=1141186422 --epcs --base=0x00C80800 DE2_T OP.flash Using cable "USB-Blaster [USB-1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00C81138: verified : Checksumming existing contents 00000000 : Verifying existing contents 00010000 : Verifying existing contents 00020000 : Verifying existing contents 00030000 : Verifying existing contents 00040000 : Verifying existing contents Checksummed/read 317kB in 44.4s Erase not required 00000000 ( 0%): Programming 00010000 ( 0%): Programming 00020000 ( 0%): Programming 00030000 ( 0%): Programming 00040000 ( 0%): Programming Programmed 317KB in 0.0s No change to device contents Leaving target processor paused # Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --epcs --after=DE2_TOP.flash --input=hello_DE2.elf --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/b oot_loader_epcs.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-1]' --sidp= 0x00C81138 --id=2273640461 --timestamp=1141186422 --epcs --base=0x00C80800 epcs_ controller.flash Using cable "USB-Blaster [USB-1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00C81138: verified : Checksumming existing contents 00040000 : Verifying existing contents 00050000 : Verifying existing contents 00060000 : Verifying existing contents Checksummed/read 92kB in 13.2s Erase not required 00040000 ( 0%): Programming 00050000 ( 0%): Programming 00060000 ( 0%): Programming Programmed 92KB in 0.0s No change to device contents Leaving target processor paused # Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --base=0x00800000 --end=0xbfffff --reset=0xc80800 --input=hello_DE2.elf --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIOS2/componen ts/altera_nios2/boot_loader_cfi.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-1]' --sidp= 0x00C81138 --id=2273640461 --timestamp=1141186422 --base=0x00800000 cfi_flash_0. flash Using cable "USB-Blaster [USB-1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00C81138: # Creating .flash file for the read only zip file system $SOPC_KIT_NIOS2/bin/bin2flash --base=0x00800000 --location=0x100000 --input=C:/A ltera/Dev_Kits/DE2_System/DE2_demonstrations/DE2_Top/software/hello_DE2_syslib/b ackground.zip --output=rozipfs.flash verified Leaving target processor paused # Programming flash with the read only zip file system $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='USB-Blaster [USB-1]' --sidp= 0x00C81138 --id=2273640461 --timestamp=1141186422 --base=0x00800000 rozipfs.flas h Using cable "USB-Blaster [USB-1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00C81138: verified : Checksumming existing contents 00110000 : Reading 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 40kB in 1.5s 00110000 ( 0%): Erasing 00120000 (11%): Erasing 00130000 (22%): Erasing 00140000 (33%): Erasing 00150000 (44%): Erasing 00160000 (55%): Erasing 00170000 (66%): Erasing 00180000 (77%): Erasing 00190000 (88%): Erasing Erased 576kB in 7.0s (82.2kB/s) 00100000 ( 0%): Programming Program failed at offset 1068F7 Leaving target processor paused[/b] --- Quote End --- Has anyone succssfully tried this before ? On the same subject, does anyone know the reason why a read only filesystem can't reside in an epcs device ? Nir