-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build with Lora Wifi 32 v2 unsing Platform.io #147
Comments
I'm really sorry for heltec, I tried before with a lot of satisfaction their cubecell series product, well documented and working flawlessy, I cannot really understand why they choose to customize the ESP32 IDF and not instead supplying a good library that relies on standard framework. To get the compiler be able to compile an example it took me three hours of work. |
Same issue for me. |
Compiling .pio\build\heltec_wifi_lora_32_V2\lib693\Heltec ESP32 Dev-Boards\driver\board.c.o In file included from .pio/libdeps/heltec_wifi_lora_32_V2/Heltec ESP32 Dev-Boards/src/ESP32_Mcu.h:13, In file included from .pio/libdeps/heltec_wifi_lora_32_V2/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:9, In file included from .pio/libdeps/heltec_wifi_lora_32_V2/Heltec ESP32 Dev-Boards/src/ESP32_Mcu.h:13, Compiling .pio\build\heltec_wifi_lora_32_V2\lib693\Heltec ESP32 Dev-Boards\driver\delay.c.o |
I came across this Heltec-Aaron-Lee/WiFi_Kit_series#248 (comment) while looking for a solution to the same issue with the factory test example you provided above. Downgrading to 1.1.5 allowed me to compile and upload the (different) factory test to my v2 board. |
After digging a lot on this issue here is what I've found:
And from "https://raw.githubusercontent.com/espressif/arduino-esp32/master/boards.txt":
So, to make it work, my platformio.ini was like that:
And the BUILD was successful. |
@felipemaion |
Hello @eabase, On my machine it is located inside |
@felipemaion |
Yeap, that's explain it all. |
Yeah, I was using that for a while but with all the Heltec bugs in the examples, AIDE was getting painful to use, as the compilation for a simple LoRa example takes over 2 minutes to complete, while configuration is abstracted away in nightmare. In general the AIDE UX is absolutely horrible, and all support or improvement suggestions are silenced, closed. People say PlatformIO is a way faster, possibly 5x, and I like the simple clear configuration
|
Example Factory project: WiFi_LoRa_32_V2_FactoryTest
This error happens in several lib files (not only in my main one)
error: 'HELTEC_BOARD' was not declared in this scope
And if I handpick fix it in heltec libraries (jsut for testing), some other similar ones ocurr too.
platformio.ini
May be related
For what I see in this Issue it seems that the fix could be already merged a month ago, but I don´t see releases since a week before this fix (Merge on March 27, last release on March 22 )
TLDR; this is the project file if needed
The text was updated successfully, but these errors were encountered: