<div dir="ltr"><div>Sorry, I do not quite understand your question, but I'll try to answer. </div><div>I forgot when recording chip, specify a log file entry. Because I have a log file cleanup, and reading to compare the recorded information. </div>

<div>To clean the chip pin WP, I connect to the GND. For writing and reading from the chip, pin WP connects to the VCC.</div><div><br></div><div>Here is the log when cleaning:</div><div><div>======================</div><div>

flashrom v0.9.6.1-r1704 on Windows 6.1 (x86)</div><div>flashrom was built with GCC 4.7.2, little endian</div><div>Command line (7 args): flashrom.exe -p buspirate_spi:dev=COM12 -VE -c AT25DF161 -o write_e.txt</div><div>Calibrating delay loop... OS timer resolution is 1000 usecs, 2185M loops per second, 10 myus = 0 us, 100 myus = 0 us, 1000 myus = 1000 us, 10000 myus = 10001 us, 4000 myus = 4000 us, OK.</div>

<div>Initializing buspirate_spi programmer</div><div>Baud rate is 115200.</div><div>Detected Bus Pirate hardware v4</div><div>Detected Bus Pirate firmware 6.2 ("v6.2-beta1")</div><div>Using SPI command set v2.</div>

<div>SPI speed is 8MHz</div><div>Raw bitbang mode version 1</div><div>Raw SPI mode version 1</div><div>The following protocols are supported: SPI.</div><div>Probing for Atmel AT25DF161, 2048 kB: probe_spi_rdid_generic: id1 0x1f, id2 0x4602</div>

<div>Found Atmel flash chip "AT25DF161" (2048 kB, SPI) on buspirate_spi.</div><div>Ignoring security lockdown (if present)</div><div>Ignoring status register byte 2</div><div>Chip status register is 0x0c.</div>
<div>
Chip status register: Sector Protection Register Lock (SRPL) is not set</div><div>Chip status register: Bit 6 is not set</div><div>Chip status register: Erase/Program Error (EPE) is not set</div><div>Chip status register: WP# pin (WPP) is asserted</div>

<div>Chip status register: Software Protection Status (SWP): all sectors are protected</div><div>Chip status register: Write Enable Latch (WEL) is not set</div><div>Chip status register: Write In Progress (WIP/BUSY) is not set</div>

<div>===</div><div>This flash part has status UNTESTED for operations: READ ERASE WRITE</div><div>The test status of this chip may have been updated in the latest development</div><div>version of flashrom. If you are running the latest development version,</div>

<div>please email a report to <a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a> if any of the above operations</div><div>work correctly for you with this flash part. Please include the flashrom</div><div>output with the additional -V option for all operations you tested (-V, -Vr,</div>

<div>-VE, -Vw), and mention which mainboard or programmer you tested.</div><div>Please mention your board in the subject line. Thanks for your help!</div><div>Ignoring security lockdown (if present)</div><div>Some block protection in effect, disabling... disabled.</div>

</div><div><div>Erase/write done.</div><div>Raw bitbang mode version 1</div><div>Bus Pirate shutdown completed.</div></div><div><br></div><div>Here is the log when reading for comparison:<br></div><div>================================</div>

<div><div>flashrom v0.9.6.1-r1704 on Windows 6.1 (x86)</div><div>flashrom was built with GCC 4.7.2, little endian</div><div>Command line (8 args): flashrom.exe -p buspirate_spi:dev=COM12 -Vr read_CAM-4020.bin -c AT25DF161 -o read_vr.txt</div>

<div>Calibrating delay loop... OS timer resolution is 1000 usecs, 2158M loops per second, 10 myus = 0 us, 100 myus = 0 us, 1000 myus = 1000 us, 10000 myus = 11001 us, 4000 myus = 4000 us, OK.</div><div>Initializing buspirate_spi programmer</div>

<div>Baud rate is 115200.</div><div>Detected Bus Pirate hardware v4</div><div>Detected Bus Pirate firmware 6.2 ("v6.2-beta1")</div><div>Using SPI command set v2.</div><div>SPI speed is 8MHz</div><div>Raw bitbang mode version 1</div>

<div>Raw SPI mode version 1</div><div>The following protocols are supported: SPI.</div><div>Probing for Atmel AT25DF161, 2048 kB: probe_spi_rdid_generic: id1 0x1f, id2 0x4602</div><div>Found Atmel flash chip "AT25DF161" (2048 kB, SPI) on buspirate_spi.</div>

<div>Ignoring security lockdown (if present)</div><div>Ignoring status register byte 2</div><div>Chip status register is 0x1c.</div><div>Chip status register: Sector Protection Register Lock (SRPL) is not set</div><div>Chip status register: Bit 6 is not set</div>

<div>Chip status register: Erase/Program Error (EPE) is not set</div><div>Chip status register: WP# pin (WPP) is not asserted</div><div>Chip status register: Software Protection Status (SWP): all sectors are protected</div>

<div>Chip status register: Write Enable Latch (WEL) is not set</div><div>Chip status register: Write In Progress (WIP/BUSY) is not set</div><div>===</div><div>This flash part has status UNTESTED for operations: READ ERASE WRITE</div>

<div>The test status of this chip may have been updated in the latest development</div><div>version of flashrom. If you are running the latest development version,</div><div>please email a report to <a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a> if any of the above operations</div>

<div>work correctly for you with this flash part. Please include the flashrom</div><div>output with the additional -V option for all operations you tested (-V, -Vr,</div><div>-VE, -Vw), and mention which mainboard or programmer you tested.</div>

<div>Please mention your board in the subject line. Thanks for your help!</div><div>Ignoring security lockdown (if present)</div><div>Some block protection in effect, disabling... disabled.</div><div>Reading flash... done.</div>

<div>Raw bitbang mode version 1</div><div>Bus Pirate shutdown completed.</div></div><div>========================</div><div><br></div><div>I hope this information will help you.<br></div><div><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">2014-03-01 23:48 GMT+04:00 Stefan Tauner <span dir="ltr"><<a href="mailto:stefan.tauner@student.tuwien.ac.at" target="_blank">stefan.tauner@student.tuwien.ac.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Sat, 1 Mar 2014 23:12:15 +0400<br>
Alex K <<a href="mailto:lepik.stv@gmail.com">lepik.stv@gmail.com</a>> wrote:<br>
<br>
> Hello I tested for cleaning work, reading, writing, memory AT25DF161 using<br>
> Bus Pirate v4.<br>
> Used:<br>
> flashrom v0.9.6.1-r1704 on Windows 6.1 (x86)<br>
> flashrom was built with GCC 4.7.2, little endian<br>
> Baud rate is 115200.<br>
> Detected Bus Pirate hardware v4<br>
> Detected Bus Pirate firmware 6.2 ("v6.2-beta1")<br>
> Using SPI command set v2.<br>
> SPI speed is 8MHz<br>
> Raw bitbang mode version 1<br>
> Raw SPI mode version 1<br>
> The following protocols are supported: SPI.<br>
> Probing for Atmel AT25DF161, 2048 kB: probe_spi_rdid_generic: id1 0x1f, id2<br>
> 0x4602<br>
> Found Atmel flash chip "AT25DF161" (2048 kB, SPI) on buspirate_spi.<br>
> Ignoring security lockdown (if present)<br>
> Ignoring status register byte 2<br>
> Chip status register is 0x0c.<br>
> Chip status register: Sector Protection Register Lock (SRPL) is not set<br>
> Chip status register: Bit 6 is not set<br>
> Chip status register: Erase/Program Error (EPE) is not set<br>
> Chip status register: WP# pin (WPP) is asserted<br>
> Chip status register: Software Protection Status (SWP): all sectors are<br>
> protected<br>
> Chip status register: Write Enable Latch (WEL) is not set<br>
> Chip status register: Write In Progress (WIP/BUSY) is not set<br>
> ===<br>
><br>
> Initially, there was a problem with the use of long cables (> 20 cm).<br>
> After verification of the firmware did not pass.<br>
> Replaced wires from Bus Pirate at length (10cm), all turned out. Many<br>
> thanks for the utility. I think that you can remove the status UNTESTED<br>
> with this chip. Thank you again.<br>
> I think it is reasonable to point out the page on the wiki that the length<br>
> of wire for the Bus Pirate is very desirable <= 10 cm, to avoid many<br>
> mistakes. This saves the trouble of starting recording, reading chips.<br>
><br>
> Sorry for my bad english, I'm from Russia.<br>
<br>
<br>
</div></div>Hello Alex,<br>
<br>
thanks for your report!<br>
I am wondering a bit about the status register bits. According to your<br>
log the software write protection is enabled (and the parsing of the<br>
raw value 0x0c seems to be correct, so this is not only a cosmetic<br>
problem). Did you change anything since you wrote to the chip?<br>
<br>
Regarding the cable lengths:<br>
The troubleshooting section of the bus pirate wiki page links to this:<br>
<a href="http://flashrom.org/ISP" target="_blank">http://flashrom.org/ISP</a> and the first problem mentioned there are too long cables ;)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">С уважением Алексей<br></div>
</div>