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.

standing: provisionalSPI + INTSPI Mode 0/3 (up to 10 MHz)
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 referenceZephyr microchip,mcp2515 / autowp-mcp2515
Evidence standingprovisional (register and bus behavior derived from vendor datasheet or driver oracle; not yet hardware-unit verified on two physical samples).
Published recordGenerate or inspect locally via ct twin generate (see /docs/twin-generation).

Key registers & reset values

Address / FieldRegisterReset / ExpectedPurpose
0x0F / 0x0ECANCTRL / CANSTAT0x87 / 0x80 (Config)Operating mode (Normal, Loopback, Listen-Only, Config)
0x2A-0x28CNF1 / CNF2 / CNF30x00Bit timing BRP, SJW, PRSEG, PHSEG1 and PHSEG2
0x2CCANINTF0x00RX0IF, RX1IF, TX0..2IF, ERRIF and MERRF flags
0x1C-0x1D / 0x2DTEC / REC / EFLG0x00Transmit/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.yaml

Fault-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

Compatible board twins

More in CAN, Ethernet & Transceivers