Hello
I'm trying to implement interfacing between BME280 and nrf52840 on a custom board using zephyr BME280 sample example. I'm using SPI for the interface but there no Signal generating for SCK,MOSI,MISO showing on DSO for those pins.
My Environment Config: Debian 10; zephyr v2.1.0-rc3; zephyr SDK 0.10.3.
&spi2 {
compatible = "nordic,nrf-spi";
status = "okay";
sck-pin = <12>;
mosi-pin = <4>;
miso-pin = <6>;
cs-gpios = <&gpio0 9 0>;
};
prog.config
CONFIG_STDOUT_CONSOLE=y
CONFIG_SENSOR=y
CONFIG_BME280=y
CONFIG_SPI=y
CONFIG_SPI_NRFX=y
CONFIG_NRFX_SPI=y
CONFIG_NRFX_SPI2=y
CONFIG_NRFX_SPIM2=y
CONFIG_SPI_2=y
CONFIG_PRINTK=y
CONFIG_GPIO=y
I have tried device_get_binding(" "); with SPI_1 & SPI_2 & BME280.
I'm getting no pulse on SCK pin when using SPI but when im using these pins as PWM or GPIOs i can see the output on DSO.
Getting a Backtrace :