MCP2515 with nRF52832 using zephyr #nrf52832 #dts

christophhintz@...
 

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

NRF52832 MCP25625
P0.14 SPI_CS
P0.22 SPI_MISO
P0.31 SPI_MOSI
P0.30 SPI_SCK
P0.27 CAN_RESET
P0.03 CAN_INT

. I attached the devicetree and project file to this post.
The main project file I am using is the can example from zephyr. I only added the pull up for the CAN_RESET GPIO, which I can confirm works. I am not seeing any messages on the SPI pins, which make me suspect that the overlay is incorrect. I just added the mcp into the spi setup in the overlay, from a shield example, I am not to sure if it is correct and what sjw, prop-seg, phase-seg1 and phase-seg2 mean. Any help or pointers are appreciated. The program stops with debug messages "CAN: Device driver not found.".


Join users@lists.zephyrproject.org to automatically receive all group messages.