Compilation error with WiFi LoRa 32 (V3)

Hello, recently I buy two WiFi LoRa 32 (V3) for my final proyecto at the university. I start configuring the microprocessor to use LoRa communication so I decided to use the “WiFi_LoRa_32_V3_TestFactory” example. And finally, when compiling the code, I encounter the following error.

In file included from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/rtc-board.h:32,
from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/ESP32_Mcu.h:6,
from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/LoRaWan_APP.h:4,
from /private/var/folders/kc/dfhpmstj7x3b73cqsj2j481c0000gn/T/.arduinoIDE-unsaved2023822-3415-1dr5qav.bjl2/WiFi_LoRa_32_V3_FactoryTest/WiFi_LoRa_32_V3_FactoryTest.ino:28:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h: In function ‘TimerSysTime_t TimerAddSysTime(TimerSysTime_t, TimerSysTime_t)’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h:91:28: warning: missing initializer for member ‘TimerSysTime_s::SubSeconds’ [-Wmissing-field-initializers]
TimerSysTime_t c = { 0 };
^
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h: In function ‘TimerSysTime_t TimerSubSysTime(TimerSysTime_t, TimerSysTime_t)’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h:113:28: warning: missing initializer for member ‘TimerSysTime_s::SubSeconds’ [-Wmissing-field-initializers]
TimerSysTime_t c = { 0 };
^
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/gpio-board.c:28:24: error: ‘GpioIrq’ defined but not used [-Werror=unused-variable]
static GpioIrqHandler GpioIrq[16];
^~~~~~~
cc1: some warnings being treated as errors
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/board.c:190:6: error: ‘SystemClockReConfig’ defined but not used [-Werror=unused-function]
void SystemClockReConfig( void )
^~~~~~~~~~~~~~~~~~~
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/board.c:176:6: error: ‘CalibrateSystemWakeupTime’ defined but not used [-Werror=unused-function]
void CalibrateSystemWakeupTime( void )
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/board.c:171:6: error: ‘SystemClockConfig’ defined but not used [-Werror=unused-function]
void SystemClockConfig( void )
^~~~~~~~~~~~~~~~~
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/board.c:166:13: error: ‘BoardUnusedIoInit’ defined but not used [-Werror=unused-function]
static void BoardUnusedIoInit( void )
^~~~~~~~~~~~~~~~~
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/board.c:55:13: error: ‘McuInitialized’ defined but not used [-Werror=unused-variable]
static bool McuInitialized = false;
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx1262-board.c: In function ‘SX126xWaitOnBusy’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx1262-board.c:82:7: error: implicit declaration of function ‘lora_printf’; did you mean ‘log_printf’? [-Werror=implicit-function-declaration]
lora_printf(“spi timeout\r\n”);
^~~~~~~~~~~
log_printf
cc1: some warnings being treated as errors
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx126x.c: In function ‘SX126xSetBroadcastAddress’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx126x.c:141:51: warning: passing argument 2 of ‘SX126xWriteRegister’ makes integer from pointer without a cast [-Wint-conversion]
SX126xWriteRegister(REG_LR_BROADCASTRADDRESS, SX126xSetNodeAddress);
^~~~~~~~~~~~~~~~~~~~
In file included from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx126x.c:7:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/sx126x-board.h:96:53: note: expected ‘uint8_t’ {aka ‘unsigned char’} but argument is of type 'void (
)(uint8_t)’ {aka ‘void (*)(unsigned char)’}
void SX126xWriteRegister( uint16_t address, uint8_t value );
^
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx126x.c: In function ‘sx126xSleep’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/sx126x.c:247:5: error: implicit declaration of function ‘delay’; did you mean ‘Delay’? [-Werror=implicit-function-declaration]
delay( 2 );
^

Delay
cc1: some warnings being treated as errors
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/loramac/LoRaMac.c: In function ‘OnRadioRxDone’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/loramac/LoRaMac.c:808:12: error: unused variable ‘temp’ [-Werror=unused-variable]
uint8_t * temp = payload;
^~~~
At top level:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/loramac/LoRaMac.c:1424:13: error: ‘OnRadioCadDone’ defined but not used [-Werror=unused-function]
static void OnRadioCadDone( bool channelActivityDetected )
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
In file included from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/rtc-board.h:32,
from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/ESP32_Mcu.h:6,
from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/LoRaWan_APP.h:4,
from /Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/LoRaWan_APP.cpp:1:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h: In function ‘TimerSysTime_t TimerAddSysTime(TimerSysTime_t, TimerSysTime_t)’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h:91:28: warning: missing initializer for member ‘TimerSysTime_s::SubSeconds’ [-Wmissing-field-initializers]
TimerSysTime_t c = { 0 };
^
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h: In function ‘TimerSysTime_t TimerSubSysTime(TimerSysTime_t, TimerSysTime_t)’:
/Users/mariaizuzquiza/Library/Arduino15/packages/Heltec-esp32/hardware/esp32/0.0.7/libraries/LoraWan102/src/driver/…/driver/timer.h:113:28: warning: missing initializer for member ‘TimerSysTime_s::SubSeconds’ [-Wmissing-field-initializers]
TimerSysTime_t c = { 0 };
^

exit status 1

Compilation error: exit status 1

I am using a MacBook Pro with Intel.
If someone can help me with this issue, I would be very grateful.

I cannot answer your question directly, but there are several threads on the forum discussing various issues with the V3 boards. If you haven’t seen them already, perhaps start by looking at:

and