I think you need a few more things turned on in your config file. To figure out what you need turned on I always use the menuconfig tool and diff the old and new .config files, then I take the changes and pit them in my prj.conf file
In this case I ran ‘ninja menuconfig’ in the build directory, turned on SPI, then CANBUS, then MCP25625, here is a diff between zephyr/.config.old and zephyr/.config:
> # CONFIG_SPI_ASYNC is not set
> # CONFIG_SPI_SLAVE is not set
> # CONFIG_SPI_LOG_LEVEL_OFF is not set
> # CONFIG_SPI_LOG_LEVEL_ERR is not set
> # CONFIG_SPI_LOG_LEVEL_WRN is not set
> # CONFIG_SPI_LOG_LEVEL_DBG is not set
> # CONFIG_SPI_0 is not set
> # CONFIG_SPI_1 is not set
> # CONFIG_SPI_2 is not set
> # CONFIG_SPI_3 is not set
> # CONFIG_SPI_4 is not set
> # CONFIG_SPI_5 is not set
> # CONFIG_SPI_6 is not set
> # CONFIG_SPI_NOR is not set
> # CONFIG_SPI_FLASH_W25QXXDV is not set
< # CONFIG_CAN is not set
> # CONFIG_CAN_LOG_LEVEL_OFF is not set
> # CONFIG_CAN_LOG_LEVEL_ERR is not set
> # CONFIG_CAN_LOG_LEVEL_WRN is not set
> # CONFIG_CAN_LOG_LEVEL_DBG is not set
> # CONFIG_CAN_LOOPBACK is not set
> # CONFIG_CAN_NET is not set
My guess is you are not finding the SPI bus because you haven’t configured it.
From: users@... <users@...> On Behalf Of christophhintz@...
Sent: Tuesday, November 19, 2019 5:19 AM
Subject: [Zephyr-users] MCP2515 with nRF52832 using zephyr #dts #nrf52832
Hi I had a question to setup the MCP2515 driver in the zephyr project.
We made a custom board for the decawave DWM1001 module, which uses a nRF52832 chip. They have a device tree file in the zephyr project for this module, so I started with that device tree and configured it for our setup, which is
. I attached the devicetree and project file to this post.