I’m just starting out writing code for the nRF52840 using the u-blox evaluation kit (nina-b302) which, apparently, is effectively compatible with the nordic nrf52840dk. I have a GPIO pin up and running but can’t say the same for SPI. Specifically I’m doing this…
But the device is coming back NULL. The node label is listed in zephyr.dts and has a property of status = "okay";. I have a suspicion the zephyr configuration itself is borken (and is not building the spi driver) but don’t know how to check this, or where the configuration options are.
What does your zephyr/prj.conf look like in full? Do you do a CONFIG_SPI=y, CONFIG_SPI_1=y in there and all the related things as seen in the KConfig? Configuring Zephyr is also documented in the PlatformIO docs.
Can you clone the above blink project, modify the platformio.ini by removing all environments but the one’s correct for your board (while adapting board = ofc), verifying that the firmware works, then expand it with the configuration options above in the zephyr/prj.conf to activate SPI, and then retest SPI functionality again?