Heltec_ESP32
Heltec_ESP32 copied to clipboard
Getting these error when trying to upload a sketch with Plaform.io any ideas?
Executing task in folder X: C:\Users\ArtofWar.platformio\penv\Scripts\pio.exe run <
Processing heltec_wifi_lora_32_V2 (platform: espressif32; board: heltec_wifi_lora_32_V2; framework: arduino)
----------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/heltec_wifi_lora_32_V2.html
PLATFORM: Espressif 32 (2.1.0) > Heltec WiFi LoRa 32 (V2)
HARDWARE: ESP32 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 3.10004.201016 (1.0.4)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa32 2.50200.80 (5.2.0) LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Library Manager: Installing heltecautomation/Heltec ESP32 Dev-Boards @ ^1.1.0 Library Manager: Heltec ESP32 Dev-Boards @ 1.1.0 has been installed! Found 27 compatible libraries Scanning dependencies... Dependency Graph |-- <Heltec ESP32 Dev-Boards> 1.1.0 Building in release mode Compiling .pio\build\heltec_wifi_lora_32_V2\src\main.cpp.o Generating partitions .pio\build\heltec_wifi_lora_32_V2\partitions.bin Compiling .pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\BMP180.cpp.o Compiling .pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\heltec.cpp.o Compiling .pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\lora\LoRa.cpp.o In file included from .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\heltec.cpp:4:0: .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\heltec.h:10:18: fatal error: Wire.h: No such file or directory
- Looking for Wire.h dependency? Check our library registry!
- CLI > platformio lib search "header:Wire.h"
- Web > https://platformio.org/lib/search?query=header:Wire.h
compilation terminated. In file included from .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\BMP180.cpp:1:0: .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\BMP180.h:5:18: fatal error: Wire.h: No such file or directory
- Looking for Wire.h dependency? Check our library registry!
- CLI > platformio lib search "header:Wire.h"
- Web > https://platformio.org/lib/search?query=header:Wire.h
compilation terminated. In file included from .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\lora\LoRa.cpp:1:0: .pio\libdeps\heltec_wifi_lora_32_V2\Heltec ESP32 Dev-Boards\src\lora\LoRa.h:5:17: fatal error: SPI.h: No such file or directory
- Looking for SPI.h dependency? Check our library registry!
- CLI > platformio lib search "header:SPI.h"
- Web > https://platformio.org/lib/search?query=header:SPI.h
compilation terminated. *** [.pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\heltec.cpp.o] Error 1 *** [.pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\BMP180.cpp.o] Error 1 *** [.pio\build\heltec_wifi_lora_32_V2\libd3c\Heltec ESP32 Dev-Boards\lora\LoRa.cpp.o] Error 1 ========================================== [FAILED] Took 6.73 seconds ==========================================The terminal process "C:\Users\ArtofWar.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
I was getting the same error when trying to compile a sketch using the v1.1.0 library after importing it into PlatformIO. I had to delete the BMP* and Heltec* files from the .pio/libdeps/Heltec ESP32 Dev-Boards/src folder under my project folder. Once I did that, everything worked.
I did notice that I only received this error if I had another library imported into my project. If I just had this library, it worked fine.
I did not try rolling back to the 1.0.9 version, but I have used that in older projects with no issues.