msperl / linux-rpi

Other
22 stars 26 forks source link

mcp25xxfd: Using SPI1.0 and SPI1.1 error #10

Open skpang opened 4 years ago

skpang commented 4 years ago

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 ?

houaq commented 4 years ago

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

vsi5004 commented 4 years ago

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

amostafa9 commented 4 years ago

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

calvinchengx commented 4 years ago

LOL. Ditto! Having the exact same error.

Anyone has any luck resolving this?

amostafa9 commented 4 years ago

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.

calvinchengx commented 4 years ago

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.