linux-rpi icon indicating copy to clipboard operation
linux-rpi copied to clipboard

mcp25xxfd: Using SPI1.0 and SPI1.1 error

Open skpang opened this issue 6 years ago • 6 comments

I'm trying to use SPI1 instead of SPI0. I'm using the mcp2517fd-spi1.0-can2-overlay but dmesg is giving me CRC errors.

pi@raspberrypi:~ $ dmesg |grep spi [ 4.065147] mcp25xxfd spi1.0: CRC read error: computed: ec03 received: 0000 - data: be 00 04 00 00 00 00 [ 4.065163] mcp25xxfd spi1.0: CRC read of clock register resulted in a bad CRC mismatch - hw not found [ 4.065180] mcp25xxfd spi1.0: Probe failed, err=84 [ 4.065243] mcp25xxfd: probe of spi1.0 failed with error -84

Any idea of how to fix this ?

skpang avatar Aug 20 '19 09:08 skpang

Hi, skpang! I got the same issue, did you figured it out?

houaq avatar Apr 25 '20 11:04 houaq

I am also recieving this error - any updates would be appreciated!

vsi5004 avatar Apr 27 '20 22:04 vsi5004

I had the same issue, was anyone able to find a fix?

amostafa9 avatar Jun 04 '20 01:06 amostafa9

LOL. Ditto! Having the exact same error.

Anyone has any luck resolving this?

calvinchengx avatar Jun 04 '20 07:06 calvinchengx

So I'm currently Using a Raspberry Pi Zero W and I'm using the MCP2517FD controller on this board: https://www.waveshare.com/wiki/2-CH_CAN_FD_HAT I went ahead and just reinstalled all the drivers using the walkthrough on that site and the issues were resolves when I did that.

Even if you aren't using that same exact development board, you might still be able to that walkthrough as long as you're using the MCP2517FD. That tutorial also works for the MIKROE-2379 Click board which also has the MCP2517FD.

amostafa9 avatar Jun 04 '20 12:06 amostafa9

So I'm currently Using a Raspberry Pi Zero W and I'm using the MCP2517FD controller on this board: https://www.waveshare.com/wiki/2-CH_CAN_FD_HAT I went ahead and just reinstalled all the drivers using the walkthrough on that site and the issues were resolves when I did that.

Even if you aren't using that same exact development board, you might still be able to that walkthrough as long as you're using the MCP2517FD. That tutorial also works for the MIKROE-2379 Click board which also has the MCP2517FD.

Toggling to B mode works for me.

That appears to be the problem.

calvinchengx avatar Jun 13 '20 04:06 calvinchengx