Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20737 Discussions

erase failed at offset

Altera_Forum
Honored Contributor II
1,485 Views

Hi all, 

 

I m programming EPCS64 through NIOS-II flash programmer (Cyclone III FPGA). The file i m trying to download into EPCS64 is of size 4 Mega Byte. And we are giving offset at 0x400000. But it is not able to program the EPCS64 device. We tried by changing offset also, but its not working. It is giving error  

 

# !/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:/TONE/hello_world_0/Debug 

 

# Creating .flash file for the FPGA configuration 

"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="E:/TONE/TONE.sof" --output="TONE 

.flash"  

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=TONE. 

opt E:/TONE/TONE.sof TONE.pof 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Peak virtual memory: 77 megabytes 

Info: Processing ended: Mon Aug 23 10:03:04 2010 

Info: Elapsed time: 00:00:10 

Info: Total CPU time (on all processors): 00:00:08 

Info: ******************************************************************* 

Info: Running Quartus II Convert_programming_file 

Info: Command: quartus_cpf --no_banner --convert TONE.pof TONE.rpd 

Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings 

Info: Peak virtual memory: 73 megabytes 

Info: Processing ended: Mon Aug 23 10:03:16 2010 

Info: Elapsed time: 00:00:09 

Info: Total CPU time (on all processors): 00:00:08 

 

# Programming flash with the FPGA configuration 

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00041800 --cable='U 

SB-Blaster [USB-0]' "TONE.flash" 

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 

Resetting and pausing target processor: OK 

 

: Checksumming existing contents  

 

00000000 : Verifying existing contents  

 

00010000 : Verifying existing contents  

 

00020000 : Verifying existing contents  

 

00030000 : Verifying existing contents  

 

00040000 : Verifying existing contents  

 

00050000 : Verifying existing contents  

 

00000000 : Reading existing contents  

 

00010000 : Reading existing contents  

 

00020000 : Reading existing contents  

 

00030000 : Reading existing contents  

 

00040000 : Reading existing contents  

 

00050000 : Reading existing contents  

 

Checksummed/read 19kB in 0.7s  

 

00000000 ( 0%): Erasing  

 

00010000 (16%): Erasing  

 

00020000 (33%): Erasing  

 

Erase failed at offset 20000  

Leaving target processor paused 

 

# Creating .flash file for the datafile 

"$SOPC_KIT_NIOS2/bin/bin2flash" --base=0x00041800 --location=0x400000 --input="E 

:/TONE/toneann.dat" --output="toneann.flash" 

 

# Programming flash with the datafile 

"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00041800 --cable='U 

SB-Blaster [USB-0]' "toneann.flash" 

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 

Resetting and pausing target processor: OK 

 

: Checksumming existing contents  

 

00400000 : Verifying existing contents  

 

00410000 : Verifying existing contents  

 

00420000 : Verifying existing contents  

.  

00790000 : Verifying existing contents  

 

007A0000 : Verifying existing contents  

 

007B0000 : Verifying existing contents  

 

007C0000 : Verifying existing contents  

 

007D0000 : Verifying existing contents  

 

007E0000 : Verifying existing contents  

 

007F0000 : Verifying existing contents  

 

00400000 : Reading existing contents  

 

00410000 : Reading existing contents  

 

00420000 : Reading existing contents  

.  

00790000 : Reading existing contents  

 

007A0000 : Reading existing contents  

 

007B0000 : Reading existing contents  

 

007C0000 : Reading existing contents  

 

007D0000 : Reading existing contents  

 

007E0000 : Reading existing contents  

 

007F0000 : Reading existing contents  

 

Checksums took 0.0s  

 

00400000 ( 0%): Erasing  

 

00410000 ( 1%): Erasing  

 

00420000 ( 3%): Erasing  

 

00430000 ( 4%): Erasing  

 

00440000 ( 6%): Erasing  

 

00450000 ( 7%): Erasing  

 

00460000 ( 9%): Erasing  

 

Erase failed at offset 460000  

Leaving target processor paused
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
545 Views

plz do reply someone........................

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

My prbm is solved by changing the value of resister from 1k to 240 ohm.

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

Which resistor did you changed?

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

TCLK pullup resistance.

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

Thanks a lot for your post. I had exactly the same problem and now it's working with 220 ohm.

0 Kudos
Altera_Forum
Honored Contributor II
545 Views

I have the same problem. ajay_106 and isue, could you be a little more specific, please? 

Is TCLK the 1st pin of JTAG or DCLK pin of EPCS device? 

If it is the 1st pin of JTAG, namely TCK, it should be pulldown to the GND, not pullup. 

ajay_106 said TCLK pullup resistance was changed. Is it correct?
0 Kudos
Reply