Page 1 of 1

ESP32 CAN/TWAI using IDF V5.1.1

Posted: Fri Sep 22, 2023 6:20 am
by Ezra_Krause
Hi

I've spent quite a few years on different embedded platforms, but I am new to the ESP32 platform.

I am trying to get CAN/TWAI running on my esp32 device. I have tried using both an ESP32C6 and ESP32S3, but cannot get the TX line to communicate. It remains high. The same goes for the RX line. I pretty much have tried everything I can think of.

I have verified that my CAN transceiver is operational. I am using the TWAI example project provided by the IDF in vsCode.

Any assistance would be appreciated!

Regards
Ezra

Re: ESP32 CAN/TWAI using IDF V5.1.1

Posted: Fri Sep 29, 2023 1:17 pm
by DrMickeyLauer
Seems to work fine here on both chips. Perhaps an incompatibility with your transceiver? Which one are you using?

Re: ESP32 CAN/TWAI using IDF V5.1.1

Posted: Fri Sep 29, 2023 5:00 pm
by ESP_Dazz
@Ezra_Krause A couple of pointers

- Double check which GPIOs you are using and whether they are Input and/or output capable (see Datasheet for list of GPIOs and their capabilities/restrictions)
- Try running the self-test example without the transceiver to see if it's an issue with the GPIOs