I am trying to develop a SPI interface to a CANBUS controller for the nRF9160 for the zephyr platform.
The issue I am having at this point is is that I am unable to see any activity on the SPI lines from the nRF9160.
My first test of the SPI is to connect to an FLASH EEPROM that I have jjust to test the SPI connectivity.
for now I am running without secure_boot and the cellular connection as it simplified testing with the uart.
I have added the lines
&spi2 {
status = "ok";
sck-pin = <26>;
mosi-pin = <27>;
miso-pin = <28>;
spi-max-frequency = <4000000>;
};
to the nrf9160_pca10090.overlay file and
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_GPIO=y
CONFIG_SPI=y
CONFIG_SPI_NRFX=y
CONFIG_SPI_2=y
CONFIG_SPI_2_NRF_SPIM=y
CONFIG_PRINTK=y
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_ASSERT=y
is my prj.conf file
I do get a device back when I device_get_binding("SPI_2").
I have copied and modified some SPI code from the Zephyr samples. but have not been able to get any response from the SPI pins.
Do you have any SPI samples specifically for the nRF9160