Forum Discussion
Altera_Forum
Honored Contributor
16 years ago<div class='quotetop'>QUOTE (mgirwin @ Aug 24 2009, 09:47 AM) <{post_snapback}> (index.php?act=findpost&pid=23557)</div>
--- Quote Start --- Actually, let me provide a bit more information to my post above. Typically, I erase the flash first with this: nios2-flash-programmer --epcs --base=0x00000000 --instance=1 --erase-all and then program the hardware design with this: nios2-flash-programmer --epcs --base=0x00000000 --instance=1 ETF.flash and then add in the software design with this: nios2-flash-programmer --epcs --base=0x00000000 --instance=1 ETF_CPU1.flash When everything is working correctly, I get this output: <div class='quotetop'>QUOTE --- Quote End --- --- Quote Start --- Erasing flash memory... Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK Checksums took 0.0s 00000000 (0%): Erasing (takes a minute or two and eventually gets to 100% and tells me Erased 8192kB in xx.xs (xx.xkB/s) Programmed 0KB in 0.0s Did not attempt to verify device contents Leaving target processor paused . Downloading flash file for hardware... Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK Checksummed/read 384kB in x.xs Erased 384kB in x.xs (xx.xkB/s) Programmed 367KB +17KB in x.xs (xx.xKB/s) Did not attempt to verify device contents Leaving target processor paused . Downloading flash file for software... Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK Checksummed/read 64kB in x.xs Erased 64kB in x.xs (xx.xkB/s) Programmed 9KB +55KB in x.xs (xx.xKB/s) Did not attempt to verify device contents Leaving target processor paused[/b] --- Quote End --- Unfoturtunately, that's not what's happening anymore. Now I get: <div class='quotetop'>QUOTE </div> --- Quote Start --- Erasing flash memory... Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK Checksums took 0.0s 00000000 (0%): Erasing (This time it just stays at 0% until jumping straight to completion after 10sec or so! Then tells me Erased 8192kB in xx.xs (xx.xkB/s) Programmed 0KB in 0.0s Did not attempt to verify device contents Leaving target processor paused . Dowloading flash file for hardware... Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK No EPCS layout data - looking for section [EPCS-FF] Unable to use EPCS device Leaving target processor paused . Dowloading flash file for software... Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK No EPCS layout data - looking for section [EPCS-FF] Unable to use EPCS device Leaving target processor paused[/b] --- Quote End --- If I skip the erase step and jump right into programming, I get this: <div class='quotetop'>QUOTE </div> --- Quote Start --- Using cable "USB-Blaster [USB-0]", device 1, instance 0x01 Resetting and pausing target processor: OK Checksummed/read 384kB in 9.6s Erased 384kB in 10.0s (38.4kB/s) Program failed Leaving target processor paused[/b] --- Quote End --- I would greatly appreciate it if anyone can help me determine what would cause this failure. Thanks! [/b] --- Quote End --- FYI, I have discovered the source of this problem. I had a failure in my breakout board that was shorting the 3.3V JTAG line to 5V. Amazingly, this has not appeared to cause any permanent damage to the FPGA or supporting electronics. Once the breakout problem was fixed, I am now able to reprogram succesfully again.