A simple example of how to control the SPI directly in Zephyr RTOS. The idea comes from this thread
It was tested in nRF52840_mdk
board.
$ west build -p auto -b nrf52840_mdk
$ west flash
This can be used to verify if the SPI interface is working properly