Hi all, I am trying to coming back to program after some years.
I have a project in mind and I want to use Lora 32 V3, I am not a fan of Arduino IDE, that’s why I want to move this to Platformio (still learning).
I am able to build/upload easy programs in the board, but when I tried to use the OLED screen by adding Heltec ESP32 Dev-Boards. But I see issues by different dependencies:
Here my .ini After add Adafruit dependencies needed for Heltec lib
[[env:heltec_wifi_lora_32_V3]
platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
lib_deps =
heltecautomation/Heltec ESP32 Dev-Boards @ ^2.1.2
adafruit/Adafruit GFX Library@^1.11.11
adafruit/Adafruit BusIO@^1.17.0
Also I had to add next headers requested:
Missing Wire.h header, I added it.
Missing SPI.h header, I added it.
Now I get nex huge list of issues, what is showing I have a problems with my lib dependencies, any suggestion?
Thanks in advantage
Juan
Building in release mode
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/LoRaWan_APP.cpp.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/gpio-board.c.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx1262-board.c.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx126x.c.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx1276-board.c.o
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/gpio-board.c: In function 'GpioMcuWrite':
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/gpio-board.c:56:15: error: 'RADIO_NSS' undeclared (first use in this function); did you mean 'RAD_TO_DEG'?
if(obj->pin==RADIO_NSS && radio_nss_inited==false)
^~~~~~~~~
RAD_TO_DEG
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/gpio-board.c:56:15: note: each undeclared identifier is reported only once for each function it appears in
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx1276.c.o
*** [.pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/gpio-board.c.o] Error 1
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:9,
from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/loramac/LoRaMac.h:141: warning: "LORA_MAC_PRIVATE_SYNCWORD" redefined
#define LORA_MAC_PRIVATE_SYNCWORD 0x12
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/ESP32_Mcu.h:13,
from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:7,
from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/sx126x.h:122: note: this is the location of the previous definition
#define LORA_MAC_PRIVATE_SYNCWORD 0x1424
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:9,
from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/loramac/LoRaMac.h:146: warning: "LORA_MAC_PUBLIC_SYNCWORD" redefined
#define LORA_MAC_PUBLIC_SYNCWORD 0x34
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/ESP32_Mcu.h:13,
from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:7,
from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/sx126x.h:127: note: this is the location of the previous definition
#define LORA_MAC_PUBLIC_SYNCWORD 0x3444
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:40:34: error: 'LoRaWAN_DEBUG_LEVEL' was not declared in this scope
RTC_DATA_ATTR uint8_t debugLevel=LoRaWAN_DEBUG_LEVEL;
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:40:34: note: suggested alternative: 'XCHAL_DEBUGLEVEL'
RTC_DATA_ATTR uint8_t debugLevel=LoRaWAN_DEBUG_LEVEL;
^~~~~~~~~~~~~~~~~~~
XCHAL_DEBUGLEVEL
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp: In member function 'void LoRaWanClass::sleep(DeviceClass_t)':
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:666:33: error: 'HELTEC_BOARD' was not declared in this scope
Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
^~~~~~~~~~~~
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:666:46: error: 'SLOW_CLK_TPYE' was not declared in this scope
Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
^~~~~~~~~~~~~
*** [.pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/LoRaWan_APP.cpp.o] Error 1
======================================== [FAILED] Took 3.48 seconds ========================================
* The terminal process "platformio 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.