CAN Controller MCP2515 with NRF52dDK not communicating with external master

Hi all,

i am using MCP2515 on a custom board and trying to receive data from the PCAn View. I started off with the CAN loopback sample provided. The loopback worked fine. I could receive the counter without hassle. I changed the mode to CONFIG_MODE_NORMAL in main() and from that point on, I do not even receive data in the driver, let alone the application. I understand I have to change the filter in application accordingly. I did that and even then the results remained same.

Desperately, I switched the mode to CONFIG_MODE_LISTENONLY and then I could get the messages in the receive buffer in kernel driver. But for some reason the filter check in can_utils_filter_match() fails. I am yet to figure out why. I could not find any straightforward reason for this.

In summary, whatever I do not get data from PCANView to the application. I am using nrf52dk_nrf52832 and SDK Version 2.2.0

In PCANView, I have left all the parameters at default. Communication is at 1Mbit/s

Any help will be very much appreciated. Thank you.

Related