Closed
Description
Basic Infos
- This issue complies with the issue POLICY doc.
- I have read the documentation at readthedocs and the issue is not addressed there.
- I have tested that the issue is present in current master branch (aka latest git).
- I have searched the issue tracker for a similar issue.
- If there is a stack dump, I have decoded it.
- I have filled out all fields below.
Platform
- Hardware: ESP8266
- Core Version: e8b411f
- Development Env: Arduino IDE
- Operating System: Windows
Settings in IDE
- Module: LOLIN(WEMOS) D1 R2 & mini
- Flash Size: 4MB
- lwip Variant: v2 Lower Memory
- CPU Frequency: 160MHz
Problem Description
Projects which include I2S library <I2S.h> fail to link.
Sketch
Examples -> I2S -> SimpleTone
Examples -> I2S -> InputSerialPlotter (copy below)
#include <I2S.h>
void setup() {
Serial.begin(115200);
while (!Serial) {}
if (!I2S.begin(I2S_PHILIPS_MODE, 8000, 24)) {
Serial.println("Failed to initialize I2S!");
while (1); // do nothing
}
}
void loop() {
int sample = I2S.read();
if (sample)
Serial.println(sample);
}
Debug Messages
Arduino: 1.8.15 (Windows 7), Board: "LOLIN(WEMOS) D1 R2 & mini, 160 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
c:/users/user/documents/arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\InputSerialPlotter.ino.cpp.o:(.text.setup+0x4): undefined reference to `I2S'
c:/users/user/documents/arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\InputSerialPlotter.ino.cpp.o:(.text.setup+0xc): undefined reference to `_ZN8I2SClass5beginE10i2s_mode_tli'
c:/users/user/documents/arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\InputSerialPlotter.ino.cpp.o: in function `setup':
C:\Users\user\Documents\Arduino\hardware\esp8266com\esp8266\libraries\I2S\examples\InputSerialPlotter/InputSerialPlotter.ino:22: undefined reference to `_ZN8I2SClass5beginE10i2s_mode_tli'
c:/users/user/documents/arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\user\Documents\Arduino\hardware\esp8266com\esp8266\libraries\I2S\examples\InputSerialPlotter/InputSerialPlotter.ino:26: undefined reference to `_ZN8I2SClass4readEv'
c:/users/user/documents/arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\InputSerialPlotter.ino.cpp.o:(.text.loop+0xd): undefined reference to `_ZN8I2SClass4readEv'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.
Metadata
Metadata
Assignees
Labels
No labels