Do you have SPI examples on nRF9160DK?

I tried to find simple examples to use SPI in nRF9160DK but all the examples has issues. I did connect using raspberry pi to my modem with no issues but when I use nRF9160 i get a million problem.

Parents Reply
  • It would still be interesting to know what kind of modem you are trying to use.

    The nRF Connect SDK is unfortunately a bit light on basic peripheral samples, but there are some you can use as inspiration.

    Zephyr has some samples showing how to use SPI with external flash (look in the zephyr/samples/drivers folder).

    You can also look at the existing driver implementations for inspiration. E.g. the SPI related code for our upcoming Wi-Fi modem, the nRF7002, can be found in nrf/drivers/wifi/nrf700x/zephyr/src/qspi.

    A former colleague of mine also has an old SPI sample on his Github page: https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/spi

    Note that the sample is old, and might not work with the newest SDK versions. However, it can still be useful as inspiration/something to start from.

Children
No Data
Related