M25P40 sector erase from control center | Cypress Semiconductor
M25P40 sector erase from control center
Hi! I am trying to do a sector erase of the FX3 DVK's flash.
Having programmed the FX3 with USBFlashProg.img and setting the following parameters on Control center:
6. Erase SPI flash sector
bmRequestType = 0x40
bRequest = 0xC4
wValue = 0x0001
wIndex = SPI flash sector address (Each sector is assumed to be of 64 KB and the byte address is
computed by multiplying wIndex by 65536)
wLength = 0x0000
No data phase is associated with this command.
It fails to erase but actually it did correctly. How is it possible?
I didn't quite understand how to set the wIndex to erase the remaining 7 sectors neither.
Help me please :)