Page 1 of 1

MCP2515 - Driver for Multiple channels?

Posted: Tue Apr 15, 2025 11:30 am
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.

Re: MCP2515 - Driver for Multiple channels?

Posted: Wed Apr 16, 2025 5:24 am
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? ;)

Re: MCP2515 - Driver for Multiple channels?

Posted: Wed Apr 16, 2025 6:02 am
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.