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

Feature Request: ESP32 calls the ESP-IDF TWAI driver implementation

Open Dazza0 opened this issue 3 years ago • 4 comments

Hi @sandeepmistry,

I was just wondering if any thought has been given to updating the ESP32 support to call the ESP-IDF TWAI driver API instead. Calling the ESP-IDF driver will allow the ESP32 Arduino users to get support for the new HW features (in the ESP32-S2) and the HW errata workarounds. We can create a PR for this update if that is OK with you.

Dazza0 avatar Feb 21 '22 11:02 Dazza0

This would also be useful for the ESP32-C3 which also uses the TWAI driver.

pierreSCpapon avatar Apr 14 '22 08:04 pierreSCpapon

@Dazza0 - If you have code for a pull request that would work, I'd love to be able to use it. I'm not affiliated with arduino-CAN, but we're trying to use an ESP32-S3 with CAN, and would love to stay in Arduino land. Can you post a repo?

Thanks!

johnrbnsn avatar Jun 10 '22 15:06 johnrbnsn

this is the idf TWAI implantation Try This one i try it with S3 https://github.com/Sheimy/TWAI_S3_LISEN

Sheimy avatar Oct 25 '22 04:10 Sheimy

@Sheimy How do I use the TWAI library with the Arduino IDE? I have tried to use a project by Morcibacsi called PSAWIFI but it does not work on the current ESP32 Devkit V4. Nothing appears at the CanTX pin. I think the board is not compatible with the older CAN library by Sandeep Mistry.

Subsea765 avatar Apr 09 '23 18:04 Subsea765