spi-flash-programmer icon indicating copy to clipboard operation
spi-flash-programmer copied to clipboard

Only works the verify :/

Open Matthew0220 opened this issue 8 years ago • 1 comments

Hi. I'm trying to go work with this awesome job but me doesn't work. I think the images talk all problems :( write write

read read

I only need write but no problem if the read working too beacuse this program need to me :)

Matthew0220 avatar Jul 18 '16 15:07 Matthew0220

The write issue is resolved for me by adding wait_for_write(); call at the end of erase_sector function in arduino code.

The read issue can be resolved in 2 ways. The simple (but not optimal) way is to add some delay after sending the read command in _readPageOnce() python code. Adding time.sleep(0.01) before the return self._readCRC() line. A better way is to retry the crc read when it fails. You can add a check for len(crc) > 2 prior to the return int(crc, 16) in the _readCRC() python code. If the check fails, repeat the CRC dump/len check prior to returning.

jacfitz avatar Apr 07 '17 17:04 jacfitz