-
Notifications
You must be signed in to change notification settings - Fork 235
Description
I am experiencing this weird behavior where if I try to program the flash normally using something like iceprog hardware.bin, it fails. However, if I add the verbose flag to actually see why it fails, it programs the flash without a problem. Specifically, it fails the verification check, so it programs the flash, and then when it reads back the content, it fails.
If I have to guess, it is something related to timing, as the printf() calls slow down the programming process. I tried to use the slow SPI flag, but I experience the same behavior. Also, the chip select bus is never released after this unsuccessful command, so other devices connected to the SPI bus cannot drive it low. I have to run a command that successfully completes (iceprog -t is enough) to release CS.
The flash chip that I have is the MT25QL128ABA1ESE-0SIT.