Hi
i was trying to setup spi_2 for external sensor interface with nrf9160-dk but even after setting CONFIG_SPI_3=n and CONFIG_SPI_2=y the spi_2 enabled but spi_3 isn't changing to disabled. spi_3 is working with default pins but there is not and cs pin assigned when i try to setup it using overley file it start creating error and setting are not changing the m i making some mistake or it can't be changed by user because if i not disable spi_3 i can't use spi_2 as explained in some tickets both uses same addresses. kindly guide me. one more issue is using spi_write(spi_dev,&spi_cfg, pdata); the zephyer will start rebooting again and again can't able to find out the reason behind it. please share any example code to interface adxl345 in spi mode or guide me to resolve the error.
my project and sensor data sheet is attached kindly make the required changes and rebuild the project so i can able to compair for my mistakes and learn to setup it. i am trying to modify pin as sck-pin = <31>;
mosi-pin = <20>;
miso-pin = <30>;
ss-pin = <28>;
but not succeed. please help me out for the same also and guide me.7484.ADXL345.pdf6472.spi_adxl345.zip