swharden / FTFlash

A tool for reading and writing data in SPI flash memory chips using a FT232H
https://swharden.com/blog/2023-08-24-ft232h-spi-flash/
MIT License
12 stars 3 forks source link

Write Error #4

Open faaytekin opened 4 hours ago

faaytekin commented 4 hours ago

Hello, I am getting an error while writing to flash. I've attached the error message. image (4)

What could be the reason for this? Could you help to solve this issue? Many thanks.

swharden commented 4 hours ago

Interesting! Looks like some type of off by 1 error.

Can you double check exactly how large the data is you're trying to program? Could it be 1 byte shorter or longer than intended?

swharden commented 4 hours ago

If you're able to zip the file and attach it as a comment, I could take a closer look

faaytekin commented 4 hours ago

Thank you for your quick response.
Nor Flash Memory Manufacturer: Zetta Model: ZD25WQ16 Size: 16Mbit Bin file size: 62kb The data size is very small compared to flash size. I've attached the file. demo_V2.0.23_20240726.zip

Thanks a lot.

faaytekin commented 4 hours ago

In addition, I've also tried using a few other bin files. I got the same result.

swharden commented 3 hours ago

Thanks @faaytekin! I'm happy to take a closer look. When you get that error message, can you expand the "details" button and copy/paste the long error message here? That would really help. Thanks!