Skip to content

SD Library- Architecture or board not supported #2191

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
vanvince opened this issue Dec 14, 2018 · 8 comments
Closed

SD Library- Architecture or board not supported #2191

vanvince opened this issue Dec 14, 2018 · 8 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@vanvince
Copy link

Hardware:

Board: ESP32 Dev Module
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600
Computer OS: Windows 10

Description:

Hello everyone,

I tried to run CardInfo.ino example project from the SD library and it turns out the following error:

#error Architecture or board not supported.

This is really weird because on an another computer it's run fine.
Furthermore the console tells me that there are more than one SD library.
Anyone can help me please?

Regards,
Vincenzo

@lbernstone
Copy link
Contributor

There is no CardInfo.ino in the SD library examples. You are running something from another architecture.

@per1234
Copy link
Contributor

per1234 commented Dec 14, 2018

All recent versions of the Arduino IDE do architecture-based library priority inversion. This means that the library with the best library.properties architectures value match with the selected board will be used. The SD library bundled with this package specifies the architectures value esp32:


So, as long as you correctly install the package, that library will have priority over other installed SD libraries which provide a wildcard match (such as the standard Arduino SD library), or an architecture mismatch.

I suspect you have not correctly installed the ESP32 package (similar problem to #20). I recommend you to use the Boards Manager installation method, which will insure it is installed correctly:
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md

@vanvince
Copy link
Author

There is no CardInfo.ino in the SD library examples. You are running something from another architecture.

Hi @lbernstone , thank you for your reply.
I took the example from the arduino IDE. However if I run it on another computer, not my personal laptop, it works fine also on ESP32 board.

Regards.

@vanvince
Copy link
Author

All recent versions of the Arduino IDE do architecture-based library priority inversion. This means that the library with the best library.properties architectures value match with the selected board will be used. The SD library bundled with this package specifies the architectures value esp32:
arduino-esp32/libraries/SD/library.properties

Line 9 in 1289f4b

architectures=esp32

So, as long as you correctly install the package, that library will have priority over other installed SD libraries which provide a wildcard match (such as the standard Arduino SD library), or an architecture mismatch.
I suspect you have not correctly installed the ESP32 package (similar problem to #20). I recommend you to use the Boards Manager installation method, which will insure it is installed correctly:
https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md

Hi @per1234 , thank you for your reply.
I'm going to check the issue you reported. Is it possible a missmatch between the toolsuite version for esp32 that I have on laptop and the pc in lab?

Regards.

@vanvince
Copy link
Author

Hi @per1234 ,

I installed the board manager following the link you had suggested in the precedent post. I have the same error as before. Below there are what I read on the console

#error Architecture or board not supported.

  ^

Più di una libreria trovata per "SD.h"
Usata: C:\Users\crist\Documents\Arduino\libraries\SD
Non usata: C:\Users\crist\Documents\Arduino\hardware\espressif\eps32\libraries\SD
Non usata: C:\Program Files (x86)\Arduino\libraries\SD
exit status 1
Errore durante la compilazione per la scheda ESP32 Dev Module.

Regards,
Vincenzo.

@per1234
Copy link
Contributor

per1234 commented Dec 16, 2018

Non usata: C:\Users\crist\Documents\Arduino\hardware\espressif\eps32\libraries\SD

As I suspected, the problem was caused by an incorrect manual installation. Your architecture folder is named "eps32". This causes the Arduino IDE to consider the architecture of all the boards in this package to be "eps32", which does not match the specified architecture "esp32" of the SD library at C:\Users\crist\Documents\Arduino\hardware\espressif\eps32\libraries\SD (the library you want to be using). That causes the standard SD library at C:\Users\crist\Documents\Arduino\libraries\SD to be used instead. The reason is that library specifies a wildcard in its architectures field and a wildcard architecture match has priority over an architecture mismatch ("esp32" vs. "eps32").

I installed the board manager following the link you had suggested in the precedent post.

If so, then it looks like you have a manual installation at C:\Users\crist\Documents\Arduino\hardware\espressif\eps32 in addition to the version installed via Boards Manager, which is installed to a different location on your computer. You should remove the invalid manual installation by deleting the C:\Users\crist\Documents\Arduino\hardware\espressif\eps32 folder.

@stale
Copy link

stale bot commented Aug 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

3 participants