Skip to content

arduino 1.8.14 chooses wrong SD.h library on esp32 #11531

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

Closed
lbernstone opened this issue May 14, 2021 · 1 comment
Closed

arduino 1.8.14 chooses wrong SD.h library on esp32 #11531

lbernstone opened this issue May 14, 2021 · 1 comment
Labels
arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug

Comments

@lbernstone
Copy link

In Arduino 1.8.14, when including the SD.h library, there is a name overlap, and Arduino chooses the library in the sketchbook folder or arduino-1.8.14/libraries instead of the one in the espressif hardware folder. This does not occur in 1.8.13, and continues even if the version in esp32 is bumped to 2.0.0. The architecture specific library should be preferred over *.

In file included from /home/larryb/arduino-1.8.14/libraries/SD/src/utility/Sd2Card.h:26:0,
                 from /home/larryb/arduino-1.8.14/libraries/SD/src/utility/SdFat.h:29,
                 from /home/larryb/arduino-1.8.14/libraries/SD/src/SD.h:20,
                 from /tmp/sketch_may14a/sketch_may14a.ino:1:
/home/larryb/arduino-1.8.14/libraries/SD/src/utility/Sd2PinMap.h:524:2: error: #error Architecture or board not supported.
 #error Architecture or board not supported.
  ^
Multiple libraries were found for "SD.h"
 Used: /home/larryb/arduino-1.8.14/libraries/SD
 Not used: /home/larryb/Arduino/hardware/espressif/esp32/libraries/SD
@per1234
Copy link
Collaborator

per1234 commented May 14, 2021

Hi @lbernstone. Thanks for taking the time to submit a bug report. This has already been fixed by #11529
There will be an Arduino IDE 1.8.15 release out soon with the fix.

For details on the issue, please see this: arduino/arduino-cli#1292

@per1234 per1234 closed this as completed May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arduino-cli Related to the arduino-cli tool Component: Compilation Related to compilation of Arduino sketches Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants