- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am trying to establish communication with the S25FL127S flash chip with my PSoC 3 CY8CKIT - 030. Can someone please help me in the programming the SPI interface with the chip.
I hope I can get a basic code example how to perform SPI write and read to the device.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aditya,
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.
The basic read and write operations will be same. Please go through it and let us know if you need any clarifications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much Mr.Krishna, I will go through the project file and get back to you for further clarifications. Thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mr. Krishna, the files slld.h and slld_targetspecific.h are missing in the project design 3. Are those files from spansion low level driver are taken directly without any changes?. If so, I will copy those files to the project and build it.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Aditya,
You need not do any changes in slld.h file. But in slld_targetspecific.h is the file you need to un comment Fl-S family. Since the part belongs to Fl-S family.
Below is the line which you need to un comment :
#define FL_S
Thanks,
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Krishna..I will get back to you after I work it out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use the files from the low level driver doing the modification mentioned above.
Thanks,
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mr.Krishna, I am trying to interface with the FL164K device using the project you have posted. When I un comment the "#define FL_K" line in slld_targetspecific.h file, I am encountering the following warning and error. 'slld_BlockEraseCmd': missing function-prototype and Build error: 'slld_BlockEraseCmd': requires ANSI-style prototype.
But when I un comment the #define FS_S line, the project builds successfully. Could you explain me what is going wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aditya,
If you are interfacing FL164K you need to un comment #define FL_1K not FL-K since FL164K belongs to FL_1K family.
The reason for the error could be because in the project I have un commented the below line in FS_S section in slld.h file.
//#define REMOVE_BLOCKERASECmd
In REMOVE_BLOCKERASECmd the function slld_BlockEraseCmd is called.
Please uncomment only #defineFL1-K in target specific.h file for S25FL164K device and check. Comment all other families.
Thanks,
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mr.Krishna, I have built the code un commenting only the #defineFL_1K line but still the error I mentioned previously persist. Should I un comment any lines in the FL_1K section of slld.h file?. All the questions I ask may sound silly to you. Could you please explain me why you have un commented //#define REMOVE_BLOCKERASECmd line in FS_S section?. The chip you used belongs to FL_S family right?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Mr. Krishna, I have been working on interfacing s25fl164k with psoc 3. I am using the same project you have provided and made changes to suit fl164k. I am not able to succeed in my attempt. I have decided to make sure my hardware is correct. Please find the attached image of the schematic (it is mentoned as s25fl512s but i am using s25fl164k). Please tell me if it works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aditya,
Could you please explain me why you have un commented //#define REMOVE_BLOCKERASECmd line in FS_S section?
A) You can comment this line . I think it might have been un commented by mistake. That line does not make any difference as you are using FL1K part. Do you see any errors if you comment out that line.
I will review your schematic and will update you.
Thanks,
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Aditya,
The RESET pin ( pin no : 3) and VIO pin ( no : 14) is not present in S25FL164K. They are DNU as per the datasheet.
Please refer Figure 5.2 in the datasheet.
Datasheet link : http://www.cypress.com/file/196886/download
Thanks,
Krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content