Thank you for notifying.
We will test and get back to you.
I meet the same problem with SDK 1.3.4.
I read back the flash content, and compare with the original img. And I find that some byte in the end of the page is not correct. It seems the erase is work, but the write is not finished.
Refer to the picture, left is original img, the right is read back from SPI flash.
BTW, I am using SPI Reg mode to perform flash write and read.
I am having the same issue. As erli_1414226 pointed out, it is the last 3 bytes in a flash page that fails. Our upgrade workflow worked in previous version of the SDK. After updating, we are seeing this error.
I saw release notes saying, "Updated CyU3PSpiTransmitWords() and CyU3PSpiReceiveWords() implementation to speed up data transfers." Did you ever resolve this issue?
I was able to work around this issue by increasing the SPI clock speed from 8MHz to 16 and 32MHz. Still seems like an issue with the SDK still, as it's not allowing the full packet to be transferred...
Yes, there is some issue with CyU3PSpiTransmitWords, which is the reason for flashing to SPI failure.
This has been fixed in the attached modified library.
Replace the existing libcyu3lpp.a in the default library (FX3 SDK Windows - C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\fw_lib\1_3_4\fx3_debug) with that of the attached one and build the cyfxflashprog project.
A similar issue is reported in CyU3PSpiTransmitWords bug (SDK library 1.34)
libcyu3lpp.a.zip 152.4 K