nikstp · GitHub

Hi,

I'm trying to re-use the code I've had with the M4 CAN Feather boards and it's just not working.

It seems that me having code such as

can_message_one = mcp.listen(matches=[canio.Match(0x18FF0AFB, extended=True)], timeout = 10)
can_message_two = mcp.listen(matches=[canio.Match(0x18FF00FB, extended=True)], timeout = 10)

is causing this issue, but it wasn't an issue before. Doesn't MCP2515 have 2 masks available?

The init code which I'm using with the ESP32S3 Feather (which as I checked, lines up with CS = D5 when stacked):

from adafruit_mcp2515 import canio
from adafruit_mcp2515 import MCP2515 as CAN
...
cs = digitalio.DigitalInOut(board.D5)
cs.switch_to_output()
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
mcp  = CAN(spi, cs, debug=True)

Read the original on github.com ↗