adafruit / adafruit/Adafruit_CircuitPython_MCP2515
RuntimeError: No Masks Available
- Dominant language
- Python
- Stars
- 29
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
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)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report with the ESP32S3 Feather setup shown and the two calls to MCP2515.listen using the provided canio.Match values. Start at the listen entry point and investigate mask allocation; done means the cause of RuntimeError: No Masks Available is identified and the expected behavior for both filters is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100