Yes we have reference example. Please refer to the example from the path given below:
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxflashprog
This example illustrates the use of the FX3 firmware APIs to implement an application to program firmware onto I2C/SPI devices.
I presume you have FX3 SDK installed. If not please install the FX3 SDK from the link given below:
Thanks for your response. Yes I have EZ-USB FX3™ SuperSpeed USB 3.0 peripheral controller and tried with the example UsbSpiGpioMode. How do I need to do with the .img file? And how do I write/read to my external SPI Flash?
I found USB Control Center, but it's look like to write/read internal SPI Flash.