Altera_Forum
Honored Contributor
16 years agobootloading doesn't starts
I've have a system in CycloneIII EP3C40 with, NIOS + CFI_Flash + ....
I want to write in flash .sof & .elf files to boot entire system from flash memory. My application is running fine if I program .sof from quartus and application under NIOS IDE -> Run as hardware. I've been trying to use Flash programmer from NIOS IDE.
# !/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:/GIF/Projects/CycloneIII_3c40_DSP_Setelsa/software/CycloneIII_3c40_DSP_Sete
lsa/Debug
# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --offset=0x0 --input="E:/GIF/Projects/CycloneIII
_3c40_DSP_Setelsa/CycloneIII_3c40_DSP_Setelsa.sof" --output="CycloneIII_3c40_DSP
_Setelsa.flash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert E:/GIF/Projects/CycloneIII_3c40
_DSP_Setelsa/CycloneIII_3c40_DSP_Setelsa.sof CycloneIII_3c40_DSP_Setelsa.rbf
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 54 megabytes
Info: Processing ended: Tue May 12 12:05:38 2009
Info: Elapsed time: 00:00:00
Info: Total CPU time (on all processors): 00:00:00
# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --sidp=0x12003d18
--id=1003684756 --timestamp=1241541969 --instance=0 "CycloneIII_3c40_DSP_Setels
a.flash"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x12003D18: verified
: Checksumming existing contents
00060000 : Verifying existing contents
00080000 : Verifying existing contents
000A0000 : Verifying existing contents
000C0000 : Verifying existing contents
000E0000 : Verifying existing contents
00100000 : Verifying existing contents
00120000 : Verifying existing contents
00000000 : Reading existing contents
00020000 : Reading existing contents
00040000 : Reading existing contents
Checksummed/read 780kB in 19.3s
00000000 ( 0%): Erasing
00020000 (33%): Erasing
00040000 (66%): Erasing
Erased 384kB in 1.2s (320.0kB/s)
00000000 ( 0%): Programming
00020000 (10%): Programming
00040000 (21%): Programming
00060000 (32%): Programming
00080000 (32%): Programming
000A0000 (32%): Programming
000C0000 (32%): Programming
000E0000 (32%): Programming
00100000 (32%): Programming
00120000 (32%): Programming
Programmed 1164KB in 4.9s (237.5KB/s)
Device contents checksummed OK
Leaving target processor paused
# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x00000000 --end=0x7ffffff --reset=0x0 --
input="CycloneIII_3c40_DSP_Setelsa.elf" --output="EXT_FLASH.flash" --boot="C:/al
tera/80/ip/nios2_ip/altera_nios2/boot_loader_cfi.srec"
# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x00000000 --sidp=0x12003d18
--id=1003684756 --timestamp=1241541969 --instance=0 "EXT_FLASH.flash"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x12003D18: verified
: Checksumming existing contents
00000000 : Reading existing contents
00020000 : Reading existing contents
00040000 : Reading existing contents
Checksummed/read 89kB in 2.2s
00000000 ( 0%): Erasing
00020000 (33%): Erasing
00040000 (66%): Erasing
Erased 384kB in 1.0s (384.0kB/s)
00000000 ( 0%): Programming
00020000 (33%): Programming
00040000 (66%): Programming
Programmed 296KB +88KB in 5.0s (76.8KB/s)
Device contents checksummed OK
Leaving target processor paused
After completion, i remove USB blaster and power, and I applied power again but FPGA doesn't starts. Any suggestion???