sandeepmistry / arduino-CAN

An Arduino library for sending and receiving data using CAN bus.
MIT License
685 stars 235 forks source link

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

Open Dazza0 opened 2 years ago

Dazza0 commented 2 years ago

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.

pierreSCpapon commented 2 years ago

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

johnrbnsn commented 2 years ago

@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!

Sheimy commented 2 years ago

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

Subsea765 commented 1 year ago

@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.