-
-
Notifications
You must be signed in to change notification settings - Fork 254
Solved: Fatal Error: esp_intr.h: No such file or directory #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same, help pls |
It seems to be a bug in V3 |
#150 pull request should fix this problem in v3 |
This article describes the file has been remove: |
Replace #include "esp_intr.h" with #include "rom/gpio.h" In src/ESP32SJA1000.cpp to get it running |
Hi all, i tried the CANSender.ino sketch. my setup is esp32-S3 dev module. the fix mentionned above compiles for a DOIT ESP32 DEVKIT V1, but i get the following errors for esp32-S3 dev module : In file included from C:\Users\Public\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.3-cfea4f7c-v1\esp32s3/include/soc/esp32s3/include/soc/dport_reg.h:21, exit status 1 Compilation error: exit status 1 I replicated the issue on several computers and fresh installs of Arduino IDE 2.3.2. Any ideas? |
The line C:\Users\Public\Arduino15\libraries\CAN\src\ESP32SJA1000.cpp:57:29: error: 'DPORT_PERIP_RST_EN_REG' was not declared in this scope; did you mean 'SYSTEM_PERIP_RST_EN1_REG'? Tells you everything you need to know: The macro DPORT_PERIP_RST_EN_REG is obviously not resolved in your version of the ESP32 for Arduino SDK. You need to either track it down (if it is now in another header file) and include it, or replace it by the macro which is valid for your SDK (if it was renamed). Just a hail-mary-try: Replace all instances of macros with CAN in them by macros with TWAI replacing it. Or even better redefine the CAN versions from the TWAI versions - the complier will warn you, if you start breaking things. |
I had a look a at the technical reference manual for both esp32 and esp32 s3. I might be able to track down registers and migrate them in the library, but i could not find confirmation that the twai controller in the s3 version is still compatible with the SJA1000 as it was in esp 32. I might be in over my head with this. My end goal is to use the Odrive arduino library with an S3 and builtin TWAI (https://github.com/odriverobotics/ODriveArduino). instead of trying to migrate sandeepmistry's arduino-CAN library to esp32 S3, i might have a better chance of succes in implementing a IS_ESP32-S3_BUILTIN Board-specific includes that uses TWAI in Odrives library. |
Use ESP32 board ver 2.0.11 in board manager.
(Espressif Systems)
The text was updated successfully, but these errors were encountered: