In the loopback mode of the CAN MCP25625, if we load and send data on the TXB0 buffer, are we supposed to receive a RXB0 buffer ready and filled with data in the TXB0 buffer?
If yes, the following are the steps I use:
- Set the MCP25625 to LOOPBACK MODE by setting the bits 7:5 for sequence 010, given in the datasheet. I reverify by checking up the CAN Status bits and the bits 7:5 show me a 010.
- After I successfully load and send the data onto TXB0, I don't receive a message-ready signal which is why I am unable to check the RXB0 buffer. On force checking it I find that the data is junk, i.e. the loopback functionality did not work.
What else I should check to debug this?
The way I am checking this is with the USB MCP2210 SPI behaving as master and using that to drive the MCP25625 slave device.