Flashing Heltec LoRa V3 with factory firmware Errors

Im trying to simply reset a Heltec LoRa V3 with factory firmware. When I try upload to the device, I get the following errors:

C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino: In function 'void intodeepsleep()':
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:357:11: error: 'RADIO_DIO_1' was not declared in this scope
   pinMode(RADIO_DIO_1,ANALOG);
           ^~~~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:357:11: note: suggested alternative: 'RADIO_SET_RX'
   pinMode(RADIO_DIO_1,ANALOG);
           ^~~~~~~~~~~
           RADIO_SET_RX
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:358:11: error: 'RADIO_NSS' was not declared in this scope
   pinMode(RADIO_NSS,ANALOG);
           ^~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:358:11: note: suggested alternative: 'RADIO_SET_FS'
   pinMode(RADIO_NSS,ANALOG);
           ^~~~~~~~~
           RADIO_SET_FS
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:359:11: error: 'RADIO_RESET' was not declared in this scope
   pinMode(RADIO_RESET,ANALOG);
           ^~~~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:359:11: note: suggested alternative: 'RADIO_SET_TX'
   pinMode(RADIO_RESET,ANALOG);
           ^~~~~~~~~~~
           RADIO_SET_TX
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:360:11: error: 'RADIO_BUSY' was not declared in this scope
   pinMode(RADIO_BUSY,ANALOG);
           ^~~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:360:11: note: suggested alternative: 'RADIO_SET_RX'
   pinMode(RADIO_BUSY,ANALOG);
           ^~~~~~~~~~
           RADIO_SET_RX
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:361:11: error: 'LORA_CLK' was not declared in this scope
   pinMode(LORA_CLK,ANALOG);
           ^~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:361:11: note: suggested alternative: 'LORA_CAD'
   pinMode(LORA_CLK,ANALOG);
           ^~~~~~~~
           LORA_CAD
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:362:11: error: 'LORA_MISO' was not declared in this scope
   pinMode(LORA_MISO,ANALOG);
           ^~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:362:11: note: suggested alternative: 'LORA_CAD'
   pinMode(LORA_MISO,ANALOG);
           ^~~~~~~~~
           LORA_CAD
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:363:11: error: 'LORA_MOSI' was not declared in this scope
   pinMode(LORA_MOSI,ANALOG);
           ^~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:363:11: note: suggested alternative: 'LORA_CAD'
   pinMode(LORA_MOSI,ANALOG);
           ^~~~~~~~~
           LORA_CAD
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino: In function 'void setup()':
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:424:13: error: 'HELTEC_BOARD' was not declared in this scope
   Mcu.begin(HELTEC_BOARD,SLOW_CLK_TPYE);
             ^~~~~~~~~~~~
C:\Users\forml\AppData\Local\Temp\.arduinoIDE-unsaved2024325-18572-1kallwi.g0st\WiFi_LoRa_32_V3_FactoryTest_V2\WiFi_LoRa_32_V3_FactoryTest_V2.ino:424:26: error: 'SLOW_CLK_TPYE' was not declared in this scope
   Mcu.begin(HELTEC_BOARD,SLOW_CLK_TPYE);
                          ^~~~~~~~~~~~~

exit status 1

Compilation error: 'RADIO_DIO_1' was not declared in this scope

Anyone able to help out? As far as I can see, the ESP32 and Heltec libraries are installed, I did it through library manager in Arduino IDE.

Thanks,

FF

what Tools>Board have you selected? I used Heltec WiFi LoRa 32(V3)
what program are you attempting to compile? upload your code?
I compiled File>Examples>Heltec_ESP32_LoRa_V3>LoRa_re_tx OK

I have a V1 and a V2 but not a V3 so unable to run the code

Ah thanks for the reply, I will give this a go!

This worked! Thanks, I was using the Factory example, LoRa_re_tx worked!

mark post 2 as solution so anyone else with the same question can find the answer quickly.

I am having the same issues. I have tried those and still have compilation issue. I have the Board Manager installed with Heltec ESP32 Series Dev-Boards v3.0.0. In the Libraries I have installed Heltec ESP32 Dev-boards v2.0.1. I get the same errors. I tried older versions and couldn't get Heltec's examples to compile.

I was able to use the Heltec-ESP32_LoRa_v3 by Rop Gonggrijp and the LoRa_rx_tx to work. I have tried to contact Heltec three times with little to no support. Any other help would be appreciated.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.