CAN, Ethernet & Transceivers
Microchip MCP2518FD in the datasheet corpus
External SPI CAN-FD controller (up to 8 Mbps data phase) with 2 KB configurable message RAM.
VendorMicrochipCAN, Ethernet & Transceivers
InterfaceSPI + INTSPI Mode 0 (up to 20 MHz, 12-bit address)
Record StatusCatalog profileDatasheet / behavioral twin
Driver oracle & capability record
Backed by CircuitTwin SPI CAN-FD controller modeling (crates/ct-model/src/behavior/can_fd_controller.rs) and datasheet corpus.
| Driver reference | Zephyr microchip,mcp251xfd / Linux mcp251xfd |
|---|---|
| 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 |
|---|---|---|---|
0xE00 | OSC | 0x00000460 | Oscillator, PLL and clock-ready flags |
0x000 | CiCON | 0x04980760 (Config) | Requested and active CAN-FD operating mode |
0x004 / 0x008 | CiNBTCFG / CiDBTCFG | Bit timing | Nominal and CAN-FD data-phase timing registers |
0x400-0xBFF | RAM | 2 KB FIFOs | Configurable TX/RX CAN-FD message FIFOs |
Attach with ct CLI
Shell - run firmware with MCP2518FD
# Run compiled firmware with MCP2518FD attached on rpi-pico2
ct run --json --board rpi-pico2 --device mcp2518fd build/app.elf
# Run fault-injection suite and emit JUnit XML
ct test run --json --junit results/mcp2518fd.xml tests/mcp2518fd-fault.suite.yamlFault-injection test snippet (suite.yaml)
tests/mcp2518fd-fault.suite.yaml
version: 1
board: rpi-pico2
firmware: build/app.elf
tests:
- name: mcp2518fd-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