Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

CAN BUS communication using MCP2515 to Arduino uno

The CAN controller MCP2515 should be connected to the Nordic DK NRF5340 by the SPI interface. 

Communicate to Arduino uno 

We were trying with CAN sample given

But this sample is not running,  @ the below line we get error undefined zephyr_can_primary

const struct device *can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_can_primary));
Related