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

Simple SPI

Hello,

I am using nrf9160 and want to test the just simple SPI function. The code that I found from github(https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/spi c) is old and gives me too many errors. Are there any simple SPI code that I can try in my nrf9160 board in order to test whether I can send a simple data via SPI. I also found spi_flash_at45 however I don't have any device from at45 family to test it so another simple example would be so helpful for me. 

Thank you

Parents Reply
  • Hi Hakan,

    The pins are changed no problem in that part rigth now but still I can't see the rigth signal in the logic analyzer. I adjusted edge triggering with rising edge( also tried with falling and all other triggering options) I see that clk signal seems always high. Not 0-1-0-1 its always one.I played with sampling frequency but it also didn't change the result. I tested the logic analyzer with different chip and I saw 1-0-1-0 clk signal so logic analyzer is working fine. I didn't change the code that you sent me and it is doing loopback so no problem in spi functionality. Then what should I do in this case? I just want to see the clk signal and mosi in this case I thought that just attaching the logic analyzer to those output pins was sufficient to see the outputs am I missing something in this point?

    Thank you

Children
No Data
Related