arduino-CAN icon indicating copy to clipboard operation
arduino-CAN copied to clipboard

Unable to run lib on Firebeetle-ESP32

Open xJN4 opened this issue 4 years ago • 1 comments

First of all thank you for this awesome library.

I am getting the following error while trying to run CANSender example on a Firebeetle board with an ESP32-WROOM:

The SPI library is intended to run on esp32 architecture  and may be incompatible with your current card which runs on DFRobot_FireBeetle-ESP32 architecture.
\libraries\CAN\src\MCP2515.cpp: In member function 'virtual void MCP2515Class::onReceive(void (*)(int))':
\libraries\CAN\src\MCP2515.cpp:268:9: error: 'class SPIClass' has no member named 'usingInterrupt'
     SPI.usingInterrupt(digitalPinToInterrupt(_intPin));
         ^
exit status 1

Is there any known fix/workaround for this problem?

xJN4 avatar Mar 08 '21 18:03 xJN4

What kind of board is this and waht kind of CAN interface are you useing?

On board SJA1000 or MCP module?

the first line tells you a lot about your problem:

The SPI library is intended to run on esp32 architecture and may be incompatible with your current card which runs on DFRobot_FireBeetle-ESP32 architecture.

What happens when you use the generic ESP32 module in boards manager?

maybe the Can pins are already used?

Petros144 avatar Mar 09 '21 17:03 Petros144