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

Fatal Error: esp_intr.h: No such file or directory

Open pas-enzo opened this issue 1 year ago • 6 comments

A new error I have found while testing CAN communication is within the ESP32SJA1000.cpp source code, where Arduino IDE is unable to recognize the "esp_intr.h" reference. Supposedly another library was updated and changed the functionality, because yesterday I ran the same unaltered code using this CAN library and it worked perfectly. The error message was as followed:

c:\Users\Windows 10\Documents\Arduino\libraries\CAN\src\ESP32SJA1000.cpp:6:10: fatal error: esp_intr.h: No such file or directory 6 | #include "esp_intr.h" | ^~~~~~~~~~~~ compilation terminated. exit status 1

Compilation error: exit status 1

pas-enzo avatar Jul 30 '24 21:07 pas-enzo

I get this too

ASingularPhoton avatar Aug 13 '24 20:08 ASingularPhoton

Estou com o mesmo problema. Preciso atualizar para a versão 3.0.0 da placa ESP-32 e a biblioteca não funciona mais.

martin230896 avatar Aug 16 '24 11:08 martin230896

I have this Erro too!

Mr-BAKH avatar Sep 12 '24 13:09 Mr-BAKH

Replace #include "esp_intr.h" as #include "esp_intr_alloc.h" and add #include "rom/gpio.h" In src/ESP32SJA1000.cpp to get it running

minashinne avatar Feb 20 '25 08:02 minashinne

I am getting this error as well.

Edit: I should also add that the above attempt to fix it did not work for me, gave a lot of other errors.

Mr-Newlove avatar May 14 '25 19:05 Mr-Newlove

Applying https://github.com/ZillKhan/arduino-CAN/tree/patch-1 seems to fix it for me

Mr-Newlove avatar May 14 '25 20:05 Mr-Newlove