CAN, Ethernet & Transceivers
Microchip MCP2515 in the datasheet corpus
Stand-alone CAN 2.0B controller over SPI with 3 TX buffers, 2 RX buffers and 6 acceptance filters.
VendorMicrochipCAN, Ethernet & Transceivers
InterfaceSPI + INTSPI Mode 0/3 (up to 10 MHz)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Backed by CircuitTwin SPI CAN controller semantics (crates/ct-model/src/behavior/can_controller.rs) and indexed in the datasheet corpus.
| Driver reference | Zephyr microchip,mcp2515 / autowp-mcp2515 |
|---|---|
| Evidence standing | provisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples). |
| Published record | Generate or inspect locally via ct twin generate (see /docs/twin-generation). |
Key registers & reset values
| Address / Field | Register | Reset / Expected | Purpose |
|---|---|---|---|
0x0F / 0x0E | CANCTRL / CANSTAT | 0x87 / 0x80 (Config) | Operating mode (Normal, Loopback, Listen-Only, Config) |
0x2A-0x28 | CNF1 / CNF2 / CNF3 | 0x00 | Bit timing BRP, SJW, PRSEG, PHSEG1 and PHSEG2 |
0x2C | CANINTF | 0x00 | RX0IF, RX1IF, TX0..2IF, ERRIF and MERRF flags |
0x1C-0x1D / 0x2D | TEC / REC / EFLG | 0x00 | Transmit/receive error counters and TXBO bus-off flag |
Attach with ct CLI
Shell - run firmware with MCP2515
# Run compiled firmware with MCP2515 attached on arduino-uno
ct run --json --board arduino-uno --device mcp2515 build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/mcp2515.xml tests/mcp2515-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/mcp2515-fault.suite.yaml
version: 1
board: arduino-uno
firmware: build/app.elf
tests:
- name: mcp2515-can-ack-drop-and-bus-off
faults:
- at_ms: 60
bus: CAN1
kind: drop_ack
count: 16
expect:
console_contains: "CAN_BUSOFF_RECOVERED"
exit_code: 0