mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1626] Error compiling for board WiFi Kit 32(V3) #1385
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PKeyes505 on GitHub (Jun 16, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1626
I am fairly new and any help would be appreciated.
I am using the Heltec WiFi Kit 32(V3) with the Arduino IDE version 1.8.19 and I am able to load other sketches that utilize wifi, OTA, Etc.. I have tried to eliminate many variables as possible with a fresh virtual development environment with just the WiFi Manager library and HelTec Board installed but continue to get the "Error compiling for board WiFi Kit 32(V3)." Error.
```c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Temp\arduino_cache_213280\core\core_f796d41ba73a20c2b91f9a376b5bb492.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x4): undefined reference to
temp_sensor_set_config' c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Temp\arduino_cache_213280\core\core_f796d41ba73a20c2b91f9a376b5bb492.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x8): undefined reference totemp_sensor_start'c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Temp\arduino_cache_213280\core\core_f796d41ba73a20c2b91f9a376b5bb492.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0xc): undefined reference to
temp_sensor_read_celsius' c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Temp\arduino_cache_213280\core\core_f796d41ba73a20c2b91f9a376b5bb492.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x10): undefined reference totemp_sensor_stop'c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Temp\arduino_cache_213280\core\core_f796d41ba73a20c2b91f9a376b5bb492.a(esp32-hal-misc.c.o): in function
temperatureRead': C:\Users\pdkey\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:71: undefined reference totemp_sensor_set_config'c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:72: undefined reference to
temp_sensor_start' c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:73: undefined reference totemp_sensor_read_celsius'Multiple libraries were found for "WiFi.h"
Used: C:\Users\pdkey\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
c:/users/pdkey/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\pdkey\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:74: undefined reference to `temp_sensor_stop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board WiFi Kit 32(V3).
@tablatronix commented on GitHub (Jun 17, 2023):
Looks like something is out of date, update arduino and libraries
@PKeyes505 commented on GitHub (Jun 17, 2023):
I am running Arduino 1.8.19 and all installed libraries have been updated and are now at the latest version. I am trying to verify the Basic.ino example and am still getting the Error compiling for board WiFi Kit 32(V3). Other suggestions?
Can you compile with a Heltec Wifi Kit 32 (V3) selected?
https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/releases/download/0.0.7/package_heltec_esp32_index.json
@chriskinal commented on GitHub (Jun 17, 2023):
Looks like the development environment is missing a library for some sort of temperature sensor. Not sure why the WiFI manager example would trigger the issue and not other sketches but the errors point to an issue with the Heltec packages.
Try clearing the cache when you update libraries or packages since the IDE caches stuff to speed up compilation. Google for the process to clear the Arduino IDE cache since it is not straight forward. The cache issue drove me nuts trying to troubleshoot an issue. I would update libraries and still have the issue. Turned out the IDE was not seeing the library was updated so it did not recompile using the new library. It kept using the cached version.
@tablatronix commented on GitHub (Jun 18, 2023):
I saw local/arduino15/ and was wondering...
Yeah using dev in arduino is problematic, why I switched to pio
@chriskinal commented on GitHub (Jun 18, 2023):
That and cleaning the cache is a pain in the Arduino IDE. I switched to VSCode/platformIO. Get integrated GIT to boot.
@Mariano74-ARG commented on GitHub (Aug 30, 2023):
Hi. I'm kind of newbie on arduino. Just trying wifimanager on a Heltec Lora 32 (V.3) (ESP32S3), using Arduino IDE 2.1.1 and I'm getting several compiling errors:
c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Temp\arduino\cores\47bf7ccab0b1915fef044f26ba8939d8\core.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x4): undefined reference to
temp_sensor_set_config' c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Temp\arduino\cores\47bf7ccab0b1915fef044f26ba8939d8\core.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x8): undefined reference totemp_sensor_start'c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Temp\arduino\cores\47bf7ccab0b1915fef044f26ba8939d8\core.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0xc): undefined reference to
temp_sensor_read_celsius' c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Temp\arduino\cores\47bf7ccab0b1915fef044f26ba8939d8\core.a(esp32-hal-misc.c.o):(.literal.temperatureRead+0x10): undefined reference totemp_sensor_stop'c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Temp\arduino\cores\47bf7ccab0b1915fef044f26ba8939d8\core.a(esp32-hal-misc.c.o): in function
temperatureRead': C:\Users\maria\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:71: undefined reference totemp_sensor_set_config'c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:72: undefined reference to
temp_sensor_start' c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:73: undefined reference totemp_sensor_read_celsius'c:/users/maria/appdata/local/arduino15/packages/heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\maria\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.7\cores\esp32/esp32-hal-misc.c:74: undefined reference to `temp_sensor_stop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
Could you guide me to solve these issues (sensor errors and so) ?. Thank you in advance.
@tablatronix commented on GitHub (Sep 9, 2023):
"arduino15" ?
@Mariano74-ARG commented on GitHub (Sep 10, 2023):
Hi again. I am newbie at Arduino and C++ programming. I misunderstood your question. I think you are wright, I modified the libraries under that folder.
Arduino IDE 2
The board is the Heltec Lora 32 V.3 (ESP32 S3).
I got a solution consisting on commentig the lines in the .h file included within Heltec libraries, concerning the error messages about MPU's sensors.
@tablatronix commented on GitHub (Sep 11, 2023):
That looks old or is it just an old pathname? arduino is at Arduino IDE 2.2.1
Ask in aruduino, you have mismatched esp libraries, the s2/s3 do not have temperature sensors before the latest IDF
@xznhj8129 commented on GitHub (Apr 27, 2024):
https://forum.arduino.cc/t/what-is-arduino15-directory/576569/