Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Flash Programmer Issues

Altera_Forum
Honored Contributor II
1,001 Views

I'm able to reset the Nios II and flash the EPSC with my .sof but not my .elf. Seems to be an issue resetting the Nios II processor the second time around. My system runs fine if I just download the .sof and run the .elf file but I'm trying to boot everything from power up. 

 

Info: Apr 18, 2012 9:09:52 PM - (FINE) sof2flash: Starting Info: Info: ******************************************************************* Info: Info: Running Quartus II 32-bit Convert_programming_file Info: Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=C:/KO/seniordesign/software/gps_bsp/flash/DE0nano_Board_top_level_epcs_flash_controller.opt C:/KO/seniordesign/DE0nano_Board_top_level.sof C:/KO/seniordesign/software/gps_bsp/flash/DE0nano_Board_top_level_epcs_flash_controller.pof Info: Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings Info: Info: Peak virtual memory: 162 megabytes Info: Info: Processing ended: Wed Apr 18 21:09:57 2012 Info: Info: Elapsed time: 00:00:05 Info: Info: Total CPU time (on all processors): 00:00:05 Info: Info: ******************************************************************* Info: Info: Running Quartus II 32-bit Convert_programming_file Info: Info: Command: quartus_cpf --no_banner --convert C:/KO/seniordesign/software/gps_bsp/flash/DE0nano_Board_top_level_epcs_flash_controller.pof C:/KO/seniordesign/software/gps_bsp/flash/DE0nano_Board_top_level_epcs_flash_controller.rpd Info: Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings Info: Info: Peak virtual memory: 160 megabytes Info: Info: Processing ended: Wed Apr 18 21:10:02 2012 Info: Info: Elapsed time: 00:00:05 Info: Info: Total CPU time (on all processors): 00:00:05 Info: Apr 18, 2012 9:10:02 PM - (FINE) sof2flash: Done Info: Using cable "USB-Blaster ", device 1, instance 0x00 Info: Resetting and pausing target processor: OK Info: Reading System ID at address 0x04012078: verified Info: Processor data bus width is 32 bits Info: Looking for EPCS registers at address 0x04011800 (with 32bit alignment) Info: Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A Info: Not here: reserved fields are non-zero Info: Looking for EPCS registers at address 0x04011900 (with 32bit alignment) Info: Initial values: 92400237 4A40100C 483FFD26 90000135 92400237 4A40200C Info: Not here: reserved fields are non-zero Info: Looking for EPCS registers at address 0x04011A00 (with 32bit alignment) Info: Initial values: 108001C4 1004D0FA 002EE03A 003F9C06 002EE03A 003F9506 Info: Not here: reserved fields are non-zero Info: Looking for EPCS registers at address 0x04011B00 (with 32bit alignment) Info: Initial values: 00000000 00000000 00000000 00000000 00000000 00000000 Info: Not here: SPI_SLAVE_SEL has 0 valid bits (should be between 1 and 16) Info: Looking for EPCS registers at address 0x04011C00 (with 32bit alignment) Info: Initial values: 00000000 00000000 00000260 00000000 00000000 00000001 Info: Valid registers found Info: EPCS signature is 0x14 Info: EPCS identifier is 0x202015 Info: Using EPCS size information from section Info: Device size is 2MByte (16Mbit) Info: Erase regions are: Info: offset 0: 32 x 64K Info: EPCS status is 0x00 Info: Info: : Checksumming existing contents Info: Info: 00000000 : Verifying existing contents Info: 00000000 : Already programmed with correct data Info: Info: 00010000 : Verifying existing contents Info: 00010000 : Already programmed with correct data Info: Info: 00020000 : Verifying existing contents Info: 00020000 : Already programmed with correct data Info: Info: 00030000 : Verifying existing contents Info: 00030000 : Already programmed with correct data Info: Info: Checksummed/read 238kB in 9.3s Info: Erase not required Info: Info: 00000000 ( 0%): Programming Info: Info: 00010000 ( 0%): Programming Info: Info: 00020000 ( 0%): Programming Info: Info: 00030000 ( 0%): Programming Info: Info: Programmed 238KB in 0.0s Info: No change to device contents Info: Leaving target processor paused Info: Apr 18, 2012 9:10:17 PM - (INFO) elf2flash: args = --input=C:/KO/seniordesign/software/gps/gps.elf --output=C:/KO/seniordesign/software/gps_bsp/flash/gps_epcs_flash_controller.flash --epcs --after=C:/KO/seniordesign/software/gps_bsp/flash/DE0nano_Board_top_level_epcs_flash_controller.flash --verbose Info: Apr 18, 2012 9:10:17 PM - (FINE) elf2flash: Starting Info: Apr 18, 2012 9:10:17 PM - (FINER) elf2flash: Program Record: 73808 bytes destined for 0x2000000 Info: Apr 18, 2012 9:10:17 PM - (FINER) elf2flash: Program Record: 404 bytes destined for 0x4008000 Info: Apr 18, 2012 9:10:17 PM - (FINER) elf2flash: Start Record: 2000000 Info: Apr 18, 2012 9:10:17 PM - (FINE) elf2flash: Done Info: Using cable "USB-Blaster ", device 1, instance 0x00 Info: Resetting and pausing target processor: FAILED Info: Leaving target processor paused Error: Error code: 4 for command: nios2eds/bin/nios2-flash-programmer "C:/KO/seniordesign/software/gps_bsp/flash/gps_epcs_flash_controller.flash" --base=0x4011800 --epcs --sidp=0x4012078 --id=0x0 --timestamp=1334801890 --device=1 --instance=0 '--cable=USB-Blaster on localhost ' --program --verbose
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
251 Views

Hi DTPHawk, 

 

Did you find any solution for this problem, I am struck with the same problem. I was suspecting the memory in EPCS device is not sufficient so the flash programmer uses the FPGA internal memory for some of the code.  

 

Thanks, 

laland
0 Kudos
Reply