ESP32 rebooting when sending lorawan data

Im trying to make a lorawan device. Im using Heltec Wifi LoRa 32 (V2). Im using the arduino example OTAA_OLED. When the device try to join (OTAA) the esp32 reboots:

ESP32 MCU init…
ESP32 MCU inited OK!

LoRaWAN US915 Class A start!

joining…
Guru Meditation Error: Core 1 panic’ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d46cb PS : 0x00060130 A0 : 0x800d445e A1 : 0x3ffb1ef0
A2 : 0x3ffb1f24 A3 : 0x3ffb1f1c A4 : 0x00000031 A5 : 0x00000000
A6 : 0x3ffb8f22 A7 : 0x00000006 A8 : 0x00000000 A9 : 0x00000001
A10 : 0x00000000 A11 : 0x3ffc1d88 A12 : 0x3ffc02fc A13 : 0x00000000
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x0000001b EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

Backtrace: 0x400d46cb:0x3ffb1ef0 0x400d445b:0x3ffb1f10 0x400d6dc7:0x3ffb1f50 0x400d11d7:0x3ffb1f90 0x400d9b2d:0x3ffb1fb0 0x40088f4d:0x3ffb1fd0

Please, someone can help me?

Can only guess

  • usb port doesnot provide enough power
  • faulty cable
  • sketch problem

discard the two first. i already tested the cable and the usb port.

I have exactly the same problem.

It is resolved in this thread: LoRaWAN Library doesn´t work

You need to install the Heltec boards using this repository: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series. Download the repository in: C:\Program Files (x86)\Arduino\hardware

Then unzip it and execute this file: C:\Program Files (x86)\Arduino\hardware\WiFi_Kit_series\esp32\tools\get.exe

After it finished the instalation, open arduino and choose the correct board (in my case it appears two heltecs LoRa Wifi V2 boards). It should appear something like this when you choose the board:

Sin%20t%C3%ADtulo

Once you do all of this it should work. At least for me did it and I had the same problem.

I hope it works also for you!