ESP32-Arduino-CAN icon indicating copy to clipboard operation
ESP32-Arduino-CAN copied to clipboard

CAN/TWAI Support for ESP32-C3 ?

Open heliophagus opened this issue 3 years ago • 2 comments
trafficstars

Would it be possible to modify this library to support the ESP32-C3 microcontroller? It has the same CAN controller (SJA1000) as the other ESP32s, but a different, RISC-V based microcontroller. The existing Arduino CAN libraries will not compile for ESP32-C3s, giving the error message "fatal error: soc/dport_reg.h: No such file or directory." The ESP32-C3 is becoming increasingly popular, and modifying this CAN/TWAI library to support it would be a HUGE help to the community.

heliophagus avatar May 08 '22 21:05 heliophagus

Stumbling over this as well at the moment. What is the PWM being used for in this library?

mickeyl avatar May 25 '22 13:05 mickeyl

Even without that it won't compile, due to the great CAN->TWAI renaming. In the meantime I have found the CAN abstraction from https://github.com/meatpiHQ/wican-fw, which works just fine here.

mickeyl avatar May 25 '22 16:05 mickeyl