I have an Pican2 Shield, which works well on an Raspberry Pi, but it doesn’t work on my Banana Pi M2 Berry.
I get some mcp2515 dcp-Files, but they are all for orangePI.
The only thing I get to work a little bit is this file:
sunxi-DT-overlays/spi-mcp251x.dts at master · armbian/sunxi-DT-overlays · GitHub
But it gives me some Errors after reboot like no valid map
Someone faces the same problem or better, get a solution for it?
I tried it also with irq pin PA7 and 0 7 2 as interrupts. Doesn’t work.
Seems there are some problems with the pins. My knowledge is not deep enough here
But maybe this helps someone to analyze that better. Would be nice if I can get some help here
You’re close. I have this working on my bpi m2 zero.
I think your specific error is that the MCP2515 interrupt is level based (low = interrupt pending) not negative edge based (falling edge = interrupt pending). My Waveshare RS485 CAN HAT has its interrupt pin on PA2, and I had issues until I changed my interrupt line.
here is my mcp2515 dts file; you’ll have to edit to match your system. I also added the spi-spidev overlay and enabled spidev0 by adding param_spidev_spi_bus=0 to my armbianEnv.txt, but I don’t think that is necessary. In fact, I get an error message on boot about spidev0 not being able to start because there’s a pin conflict (spidev0 wants the chip select, but my MCP2515 fragment has stolen it).