ESP32 Version 2.0.2

 

The first time I tried to program an ESP32 in the Arduino IDE, I would have tried ESP32 board version 2.0.2:

URL: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html

With this version I was not able to compile the WiFiClientBasic sample sketch:

collect2.exe: error: ld returned 1 exit status error compiling for board esp32 Dev module

Error compoing for board ESP32 Dev Module.

arduino_modified_sketch_501103/WiFiClient.ino:47: undefined reference to `delay'

[+]
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClient.ino.cpp.o:(.literal._Z5setupv+0x30): undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClient.ino.cpp.o:(.literal._Z4loopv+0x4c): undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClient.ino.cpp.o: in function `setup()':

C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_501103/WiFiClient.ino:20: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_501103/WiFiClient.ino:30: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClient.ino.cpp.o: in function `loop()':

C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_501103/WiFiClient.ino:47: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_501103/WiFiClient.ino:76: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_501103/WiFiClient.ino:78: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiGeneric.cpp.o:(.literal._Z9tcpipInitv+0x1c): undefined reference to `xTaskCreateUniversal'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiGeneric.cpp.o: in function `tcpipInit()':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiGeneric.cpp:512: undefined reference to `xTaskCreateUniversal'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(esp32-hal-uart.c.o):(.literal._get_effective_baudrate+0x8): undefined reference to `getApbFrequency'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(esp32-hal-uart.c.o): in function `_get_effective_baudrate':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/esp32-hal-uart.c:76: undefined reference to `getApbFrequency'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(esp32-hal-uart.c.o): in function `uartDetectBaudrate':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/esp32-hal-uart.c:572: undefined reference to `getApbFrequency'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(HardwareSerial.cpp.o):(.literal._ZN14HardwareSerial5beginEmjaabmh+0x4): undefined reference to `yield'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(HardwareSerial.cpp.o): in function `HardwareSerial::end(bool)':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:170: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(HardwareSerial.cpp.o): in function `HardwareSerial::begin(unsigned long, unsigned int, signed char, signed char, bool, unsigned long, unsigned char)':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:143: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:144: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:146: undefined reference to `yield'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:150: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(main.cpp.o):(.literal.app_main+0xc): undefined reference to `initArduino'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(main.cpp.o): in function `app_main':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/main.cpp:70: undefined reference to `initArduino'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/main.cpp:71: undefined reference to `xTaskCreateUniversal'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(Stream.cpp.o): in function `Stream::timedRead()':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Stream.cpp:34: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Stream.cpp:40: undefined reference to `millis'

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "WiFi.h"

 Used: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi

 Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi

exit status 1

Error compiling for board ESP32 Dev Module.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Example WiFiClientBasic

[+]
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiGeneric.cpp.o:(.literal._Z9tcpipInitv+0x1c): undefined reference to `xTaskCreateUniversal'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiGeneric.cpp.o: in function `tcpipInit()':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiGeneric.cpp:512: undefined reference to `xTaskCreateUniversal'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiScan.cpp.o: in function `WiFiScanClass::scanNetworks(bool, bool, bool, unsigned int, unsigned char)':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiScan.cpp:106: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(esp32-hal-uart.c.o):(.literal._get_effective_baudrate+0x8): undefined reference to `getApbFrequency'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(esp32-hal-uart.c.o): in function `_get_effective_baudrate':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/esp32-hal-uart.c:76: undefined reference to `getApbFrequency'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(esp32-hal-uart.c.o): in function `uartDetectBaudrate':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/esp32-hal-uart.c:572: undefined reference to `getApbFrequency'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClientBasic.ino.cpp.o:(.literal._Z5setupv+0x38): undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClientBasic.ino.cpp.o: in function `setup()':

C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_619631/WiFiClientBasic.ino:13: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_619631/WiFiClientBasic.ino:23: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_619631/WiFiClientBasic.ino:29: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClientBasic.ino.cpp.o: in function `loop()':

C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_619631/WiFiClientBasic.ino:53: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\WiFiClientBasic.ino.cpp.o:C:\Users\Bernhard\AppData\Local\Temp\arduino_modified_sketch_619631/WiFiClientBasic.ino:69: more undefined references to `delay' follow

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(HardwareSerial.cpp.o):(.literal._ZN14HardwareSerial5beginEmjaabmh+0x4): undefined reference to `yield'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(HardwareSerial.cpp.o): in function `HardwareSerial::end(bool)':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:170: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(HardwareSerial.cpp.o): in function `HardwareSerial::begin(unsigned long, unsigned int, signed char, signed char, bool, unsigned long, unsigned char)':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:143: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:144: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:146: undefined reference to `yield'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/HardwareSerial.cpp:150: undefined reference to `delay'

Multiple libraries were found for "WiFi.h"

 Used: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi

 Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(main.cpp.o):(.literal.app_main+0xc): undefined reference to `initArduino'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(main.cpp.o): in function `app_main':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/main.cpp:70: undefined reference to `initArduino'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/main.cpp:71: undefined reference to `xTaskCreateUniversal'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiMulti.cpp.o:(.literal._ZN9WiFiMulti3runEj+0x8): undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: libraries\WiFi\WiFiMulti.cpp.o: in function `WiFiMulti::run(unsigned int)':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiMulti.cpp:99: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiMulti.cpp:165: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiMulti.cpp:167: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi\src/WiFiMulti.cpp:168: undefined reference to `delay'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\AppData\Local\Temp\arduino_cache_747157\core\core_46ac49372ba5999c27de57a530d2e1f4.a(Stream.cpp.o): in function `Stream::timedRead()':

C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Stream.cpp:34: undefined reference to `millis'

c:/users/bernhard/documents/arduinodata/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\Bernhard\Documents\ArduinoData\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Stream.cpp:40: undefined reference to `millis'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board ESP32 Dev Module.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

github.com/plerup/espsoftwareserial/issues/104

Test with ESP32-C3

Compile successfully, but,

A fatal error occurred: This chip is ESP32 not ESP32-C3. Wrong --chip argument?

Version 1.0.6 works

The following URL "https://dl.espressif.com/dl/package_esp32_index.json" and version 1.0.6 worked then:

Important: Delete folder 2.0.2:

If multiple versions of a package are installed, the folders may need to be cleaned up. To use version 1.0.6 I had to delete the folder 2.0.2:

see also: Installing Arduino - Prerequisites

 

positive Bewertung({{pro_count}})
Rate Post:
{{percentage}} % positive
negative Bewertung({{con_count}})

THANK YOU for your review!

Questions / Comments


By continuing to browse the site, you agree to our use of cookies. More Details