Closed ibmthinkpad closed 1 year ago
The Due and the ESP32 are completely different chips that use completely different libraries. You can't use the esp32_can code on a Due. The Due itself has two built-in CAN modules. All you need to add are the transceivers (the MCP2551 is one, or an SN65HVD232) If you use the built-in CAN on the Due then you can use the due_can library from my repo here. As luck would have it, I kept the API basically the same between due_can and esp32_can so merely switching libraries from esp32_can to due_can should get you a long way toward a functional program.
Hello,
I am trying to run a piece of code originally written for EVTV's CANDue (http://media3.evtv.me/Model3Battery102.zip), that uses this library . However I do not have it and instead rely on an Arduino Due with a CAN shield. The shield is connected via the SPI header and uses the MCP2515 and MCP2551 (should work when I use CAN1?). The Due uses the SAM3X Cortex-M3.
When I try to upload this sketch with esp32_can, I get some issues when including some of the required FreeRTOS headers:
I figured this error is related with the Arduino environment lacking the required FreeRTOS components, which I thought to have resolved with the "Boards Manager" and adding the Arduino SAM Boards.
Should the library work when I try to use it this way? and am I missing anything obvious?