Closed
Description
Description:
A build-in library option has been added.
As a result, the library for AVR is loaded.
-built-in-libraries C:\Program Files (x86)\Arduino\libraries
Sketch: (leave the backquotes for code formatting)
#include "SD.h"
void setup() {
}
void loop() {
}
Debug Messages:
In file included from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2Card.h:26:0,
from C:\Program Files (x86)\Arduino\libraries\SD\src/utility/SdFat.h:29,
from C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:20,
from C:\Users\tanaka\Documents\Arduino\buildtest\buildtest.ino:1:
C:\Program Files (x86)\Arduino\libraries\SD\src/utility/Sd2PinMap.h:524:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.
^
Metadata
Metadata
Assignees
Labels
No labels
Activity
tanakamasayuki commentedon May 14, 2021
built-in-libraries
https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/Compiler.java#L249
BaseNoGui.getContentFile
https://github.com/arduino/Arduino/blob/master/arduino-core/src/processing/app/BaseNoGui.java#L199
APP_DIR
https://github.com/arduino/Arduino/blob/master/build/windows/launcher/config.xml#L70
It may be a fixed value.
lbernstone commentedon May 14, 2021
As a workaround, I would propose fixing arduino's version (Arduino/libraries/SD/library.properties and arduino-1.8.14/libraries/SD/library.properties) with:
architectures=avr,samd,sam,megaavr,teensy
I've opened an issue with Arduino about this.
per1234 commentedon May 14, 2021
Hi all. This has already been fixed and new releases of both Arduino IDEs and Arduino CLI will be out soon. For details, please see this: arduino/arduino-cli#1292
lbernstone commentedon May 14, 2021
Ok, fixed in the repo SD library also.
Fixed name on SD library (see espressif#5181)
lbernstone commentedon May 14, 2021
Ok, so rather than changing arduino files, change <esp32>/libraries/SD/library.properties:
name=SD
tanakamasayuki commentedon May 15, 2021
https://github.com/arduino/Arduino/releases/tag/1.8.15
It has been fixed.
Bump library versions to 2.0.0 (#5182)