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.
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.
Hi,
What exactly are you trying to do?
Are you trying to connect an external modem to the nRF9160 over SPI?
If so, what kind of modem is it?
I tried to find simple examples to use SPI in nRF9160DK but all the examples has issues
What examples did you try? and what issues did you encounter?
when I use nRF9160 i get a million problem.
What problems do you get?
Best regards,
Didrik
Yes, I'm trying to connect external modem over SPI
What modem do you try to connect?
Zephyr already has drivers for several modems, so you might not need to create one yourself.
No they don't have
No they don't have
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.