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,

     

    verulia said:
    I can loopback which means spi is working but I can't see any signals from scana.

    So, when sending x, you receive x back as well? Then it seems that there's something wrong with your logic analyzer setup. Check the GND connection.

     

    verulia said:
    Also, if I wan't to change this gpio pin setting should I use gpio_pin_configure?

    Yes, you can use that to configure any unused GPIO if you'd like.

     

    Kind regards,

    Håkon 

Children
Related