spi-flash-programmer
spi-flash-programmer copied to clipboard
Only works the verify :/
Hi. I'm trying to go work with this awesome job but me doesn't work. I think the images talk all problems :(
write
read
I only need write but no problem if the read working too beacuse this program need to me :)
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.