We have an application note explaining how to use our SPI nvSRAM devices. It is available from our website at: http://www.cypress.com/documentation/application-notes/an64574-designing-serial-peripheral-interface-spi-nvsram?source=search&keywords=SPI%20nvSRAM&cat=technical_documents. Example projects for PSoC devices are also available from this link, you can use them as a reference to develop your application.
I had followed the same procedure as mentioned in the above link . But the Writing to and reading from NVRAM the is not happening, but some times it happens write and readare both possible.
What is the SPI frequency and SPI mode you are using? Can you share the SPI waveforms (MOSI, MISO, SCK, CS) for read and write operations while the failure happens? Also, please share your read and write functions (source code) if possible.
Hai Sudheesh ,
Sorry for the late reply.
SPI mode : Master Mode , SPI clock : 357Khz
Earlier I am facing Read/write of NVRAM issue , it has resolved now. But now I got stuck on onather issue. that is
>> I am able read/write a location of NVRAM through SPI interface, But if I tried same with another location its not happening. I am using same Read/Write routines which I have used for first time.
For the first time whatever location I choose read/write is happening , But for second time facing problem.
I have attached Read & write routines of NVRAM.
NVRAM file.txt.zip 844 bytes