MCP2515 - Driver for Multiple channels?

Post Reply
Mitchy
Posts: 107
Joined: Sun Nov 14, 2021 12:16 pm
Has thanked: 3 times
Been thanked: 53 times

MCP2515 - Driver for Multiple channels?

Post by Mitchy »

Just wanted to start the conversation to see if anyone has incorporated any multi-instance driver for the MCP2515 or MCP2518FD with the OI platform.

I've been poking around on the bench with several chips, but haven't dedicated much time towards it as of late.
Been hoping to expand Zombie (or other OI based VCUs) with a few more CAN channels.
I understand the downsides to the MCP2515 execution within the Zombie - as whatever is coded has to be tailored to those can commands, rather than the OI commands.
User avatar
johu
Site Admin
Posts: 6618
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 342 times
Been thanked: 1484 times
Contact:

Re: MCP2515 - Driver for Multiple channels?

Post by johu »

Mitchy wrote: Tue Apr 15, 2025 11:30 am as whatever is coded has to be tailored to those can commands, rather than the OI commands.
This could be resolved by having the mcp2515 driver implement the CanHardware interface. Anyone? ;)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Mitchy
Posts: 107
Joined: Sun Nov 14, 2021 12:16 pm
Has thanked: 3 times
Been thanked: 53 times

Re: MCP2515 - Driver for Multiple channels?

Post by Mitchy »

That would be ideal,
I wasn't quite sure how to differentiate the calls for message send to be split between stm32_can and whatever SPIcan driver is used, though I've been trying to not touch any of the core libraries.

It would be a good solution looking ahead to the expandability of the system.
Post Reply