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,

    I tested the logic analyzer for testing other gpio pins and it working however I still can't see any signal from spi code. GND is connected and I can't see clock,miso and mosi. I reverse the pins for mosi and clk however I am always getting 1(high) from <10> port. I also tried to decrease the sampling rate but still I am always getting hi from <10> port even though the GND is not connected. I should be able to directly observe the clk signal from logic analyzer right without changing anything in the code? 

    Thank you

Children
Related