Skip to content
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

Error compiling with Adafruit Feather v2: esp_intr.h: No such file or directory #143

Open
midgarth opened this issue Jul 22, 2024 · 1 comment

Comments

@midgarth
Copy link

midgarth commented Jul 22, 2024

When trying to use Examples on an Adafruit ESP32 Feather V2 with tag 0.3.1 getting following error:

/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

Attempted to update the ESP32SJA1000.cpp to use esp_intr_alloc.h. as mentioned this issue : #138

When doing so get the following errors:

/Arduino/libraries/CAN/src/ESP32SJA1000.cpp: In member function 'virtual int ESP32SJA1000Class::begin(long int)':
/Arduino/libraries/CAN/src/ESP32SJA1000.cpp:61:3: error: 'gpio_matrix_in' was not declared in this scope
   61 |   gpio_matrix_in(_rxPin, CAN_RX_IDX, 0);
      |   ^~~~~~~~~~~~~~
/Arduino/libraries/CAN/src/ESP32SJA1000.cpp:62:3: error: 'gpio_pad_select_gpio' was not declared in this scope; did you mean 'esp_rom_gpio_pad_select_gpio'?
   62 |   gpio_pad_select_gpio(_rxPin);
      |   ^~~~~~~~~~~~~~~~~~~~
      |   esp_rom_gpio_pad_select_gpio
/Arduino/libraries/CAN/src/ESP32SJA1000.cpp:66:3: error: 'gpio_matrix_out' was not declared in this scope; did you mean 'gpio_iomux_out'?
   66 |   gpio_matrix_out(_txPin, CAN_TX_IDX, 0, 0);
      |   ^~~~~~~~~~~~~~~
      |   gpio_iomux_out

Board Manager URLs included:

I apologize if this is a very basic error/question.

@nickskethisnikske
Copy link

Go to boards manager and search for ESP32, then go back to an older version, 3.0.3 gave the same problems you've mentioned.
Going back to for example 2.0.11 will solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants