Skip to content

Architecture or board not supported with ESP32 and SD Library #1590

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
danilopinotti opened this issue Dec 15, 2021 · 2 comments
Closed

Architecture or board not supported with ESP32 and SD Library #1590

danilopinotti opened this issue Dec 15, 2021 · 2 comments
Labels
conclusion: duplicate Has already been submitted conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@danilopinotti
Copy link

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:

  1. Go to: File -> Preferences -> Aditional boards manager URLs
  2. Insert https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json and click at OK button.
  3. Tools -> Board -> Boards Manager
  4. Search by "esp32" and install version 1.0.6

Select Board

  1. Go to Tools -> Board -> esp32
  2. 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.

@ghost ghost assigned per1234 Dec 15, 2021
@per1234 per1234 transferred this issue from arduino/arduino-ide Dec 15, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 15, 2021

Hi @danilopinotti. Thanks for taking the time to submit an issue.

The reason for this behavior is explained in this response to a previous report about the same thing: #1548 (comment)

So this is the expected behavior and has been fixed in the latest version of the ESP32 boards platform. Just use Boards Manager to update to version 2.0.1 and the sketch will compile as expected.

The reason Arduino IDE 1.8.x behaves differently is because it is using an older version of Arduino CLI from before the "Library Name Priority" feature was introduced.

@per1234 per1234 closed this as completed Dec 15, 2021
@per1234 per1234 added conclusion: duplicate Has already been submitted conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Dec 15, 2021
@mathemaphysics

This comment was marked as off-topic.

@arduino arduino locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
conclusion: duplicate Has already been submitted conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants