I tried the CAN library recommended here - CAN - Arduino Reference
and, I have tried to adjusted the 2 parameters for MCP2515 as it was told here - arduino-CAN/API.md at master · sandeepmistry/arduino-CAN · GitHub
//MCP2515 only //frequency - new SPI frequency to use, defaults to 10E6 //This call is optional and only needs to be used if you need to change the default SPI frequency used. //Some logic level converters cannot support high speeds such as 10 MHz, //so a lower SPI frequency can be selected with CAN.setSPIFrequency(frequency). //Override the default SPI frequency of 10 MHz used by the library. Must be called before CAN.begin(...). CAN.setSPIFrequency(8E6); //MCP2515 only //Override the default clock source frequency that is connected to the MCP2515. Must be called before CAN.begin(...). //clockFrequency - new clock frequency to use (8E6, 16E6) connected to MCP2515, defaults to 16 Mhz //This call is optional and only needs to be used if you need to change the clock source frequency connected to the MCP2515. //Most shields have a 16 MHz clock source on board, some breakout boards have a 8 MHz source. CAN.setClockFrequency(8E6);
while, it was always prompted: Starting CAN failed!
any suggestion is welcome!