I wonder if I can use spi1 or i2c1 on nrf9160. I use the 9160ns board configuration but non of my configs work for spi1 or i2c1 works. If I change it to i2c2 or others it works finde.
thanks and best regards
daniel
I wonder if I can use spi1 or i2c1 on nrf9160. I use the 9160ns board configuration but non of my configs work for spi1 or i2c1 works. If I change it to i2c2 or others it works finde.
thanks and best regards
daniel
Hello,
What pins are SPI1 and I2C1 configured to? Assuming you are using nRF9160DK, the nrf9160dk_nrf9160_common.dts indicates that i2c2 is configured to pin 30 (p0.30) and 31 (p0.31).
Can you provide your overlay file?
Kind regards,
Øyvind
Thanks. The Solution was to disable the Elements in nRF9160DK, the nrf9160dk_nrf9160_common.dts and now it works. Great, thanks!
So how does it work? I mean i set spi1 and uart1 to disable and redefined i2c1. In the zehyr folder it was defined at the end of the dts config so why its not possible to override the common dts? Or do I think wrong?
best regards
It is possible to override *common.dts. With adding e.g. nrf9160dk_nrf9160ns.overlay it will "overwrite" settings in common.dts. Have a look at the devicetree documentation in Zephyr, and the Application Development chapter.
Kind regards,
Øyvind
It is possible to override *common.dts. With adding e.g. nrf9160dk_nrf9160ns.overlay it will "overwrite" settings in common.dts. Have a look at the devicetree documentation in Zephyr, and the Application Development chapter.
Kind regards,
Øyvind
Hm strange, thats what I did to define my ports and devices etc. I will investigate this but this case is closed because it works now. thanks!