You should set the parameters as mentioned in the README file.
So, set "Bytes to Transfer" to 0
The wIndex value will select the "sector" to erase. SPI flashes are organized into sectors (typically of 256 bytes each). Any write or erase is done on sectors and the flash will commit your writes to memory after the PAGE PROGRAM or ERASE cycles. And this sector index is selected using the wIndex field. Read your flash's datasheet to know more.
i'm trying to erase/write a flash (N25Q128A by Micron) on a custom design board using Control Center. I've lost the USBFlashProg provided by Cypress i was working on... Could you please update it ?
No need to post. I've found it.