Closed
Description
Describe the bug
When I try to compile some ESP32 code that uses SD library, the following message appears:
/home/danilopinotti/Arduino/libraries/SD/src/utility/Sd2PinMap.h:524:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
I think this is a bug because the exact same code compiles (and works) within Arduino IDE 1.18.
I think it is using the default Arduino SD library instead SD library of Espressif that was installed with the board via board manager (https://github.com/espressif/arduino-esp32/tree/master/libraries).
To Reproduce
Steps to reproduce the behavior:
Import ESP32 boards:
- Go to: File -> Preferences -> Aditional boards manager URLs
- Insert
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
and click at OK button. - Tools -> Board -> Boards Manager
- Search by "esp32" and install version 1.0.6
Select Board
- Go to Tools -> Board -> esp32
- Select "ESP32-Dev-Module"
Code
Use this simple sketch and try to compile
#include "SD.h"
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Expected behavior
The code should compile
Desktop (please complete the following information):
- OS: Linux - PopOS 20.04 LTS
- Version: 2.0.0-rc2
Additional context
In some tests, using v2.0 of esp boards, the code works.