Please check the attached code
I am attaching the project where basic code for read and write for S25Fl512S is implemented using Cy8CKIT -042. You can use this as reference.
Mean while Can you send your project so that we can try at our end. Also let us know what exactly is the issue you are facing. Please elaborate what do you mean by not working i.e is it not working during read or write etc .
Project_2.zip 4.2 MB