This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI Working example please for read and write to SRAM

I really did not want to ask, howeverI have spent a lot of time on this and still no joy.

I have a epaper shield have got the electronic paper display working. so SPI writes to the epd is working.

Does anyone have a working example in Zephyr working with the 

23LCV1024. I have tested this shield on the Arduino and got the SRAM_23LC-1.1.2 SRAM_Example.ino working on the Arduino.
fixed up SRAM_23LC so it should work on Zephyr and nrf9160 dk.All code works and compiles, writes give no error, however all reads give either a 0xFF or 0x00.
I get the loopback nordic zephyr spi working fine.
So if anyone can help? need to read and writes for byte and block.
Using nordic sdk / ncs / v1.3.0. 
Parents
  • Hi! I apologize for the very late reply. I just wanted to let you know I've been looking into your case. Since I don't have the HW you're using, it's hard to reproduce.

    Your main file looks correct with regard to the SPI portion. Perhaps you have a logic analyzer available? This would help you get an overview of what is being sent over the pins.

    Best regards,

    Heidi

Reply
  • Hi! I apologize for the very late reply. I just wanted to let you know I've been looking into your case. Since I don't have the HW you're using, it's hard to reproduce.

    Your main file looks correct with regard to the SPI portion. Perhaps you have a logic analyzer available? This would help you get an overview of what is being sent over the pins.

    Best regards,

    Heidi

Children
No Data
Related