ESP32 and CAN or not?

I am trying to setup CAN communication with an esp32-S2 and SN65HVD230.

No matter what I do, the compilation of the example SineWaveCAN fails.

I am using

  1. The definition IS_ARDUINO_BUILTIN
  2. ESP32S2 Dev Module in Boards Manager
  3. Espressif System version 3.3.3
  4. OdriveArduino version 0.10.6 from Feb 22

Are there any hints or is this a dead end?

“IS_ARDUINO_BUILTIN” is only for Arduino Uno R4. For ESP32, you may need to try this pull request someone made: Modified library for ESP32 native TWAI driver by BWV999-MTL · Pull Request #11 · odriverobotics/ODriveArduino · GitHub