Hi to all,
I am using some boards Heltec ESP32 WiFi LoRa v2, with the Arduino development environment.
On these boards I have enabled both WiFi and LoRa (class C), and over WiFi runs the MQTT protocol (by using the PubSubClient lib).
The flow is: send a downlink, the board manages the packet and sends back an answer (all via LoRa).
The issue is that about 1 over 15 times, there is a Guru Meditation panic, and it restarts the board, just after the board has started to send the reply.
Interestingly, if I do not include the MQTT (but still activate the WiFi), everything is fine. Also, if I send the same packet by MQTT, the board replies and never crushes.
Do you have any suggestions to get rid of this issue?
Are you aware of some incompatibilities between the PubSubClient library and your ESP32_LoRaWAN libs?
Here is the error:
16:21:49.594 -> receive data: rssi = -77, snr = 27, datarate = 0
16:21:49.594 -> LoRa: RECV DATA downlink RXWIN2 RXSIZE: 1 PORT: 2
16:21:49.594 -> Managing LORA command...
16:21:49.594 -> Managing command...
16:21:49.594 -> Ping command...
16:21:49.594 -> Formatting LoRa reply...
16:21:49.594 -> Sending LoRa reply...
16:21:49.594 -> Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
16:21:49.594 -> Core 0 register dump:
16:21:49.901 -> PC : 0x4008c305 PS : 0x00060c33 A0 : 0x8008b7a3 A1 : 0x3ffbd0b0
16:21:49.901 -> A2 : 0x3ffb8074 A3 : 0x3ffbd234 A4 : 0x00000001 A5 : 0x00000001
16:21:49.901 -> A6 : 0x00060c23 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffb8074
16:21:49.901 -> A10 : 0x3ffb8074 A11 : 0x00000000 A12 : 0x00060023 A13 : 0x3ffb5af0
16:21:49.901 -> A14 : 0x0000000a A15 : 0x3ffbc170 SAR : 0x00000000 EXCCAUSE: 0x0000001c
16:21:49.901 -> EXCVADDR: 0x00000004 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
16:21:49.901 ->
16:21:49.901 -> Backtrace: 0x4008c305:0x3ffbd0b0 0x4008b7a0:0x3ffbd0d0 0x4008a062:0x3ffbd0f0 0x4008a0dd:0x3ffbd110 0x4008be36:0x3ffbd130 0x4008bf17:0x3ffbd170 0x400898fd:0x3ffbd1a0
16:21:49.901 ->
16:21:49.901 -> Rebooting...
And this is the decoded stack trace:
0x4008c305: uxListRemove at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/list.c:2180x4008b7a0: xTaskRemoveFromUnorderedEventList at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c:3507
0x4008a062: xEventGroupSetBits at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/event_groups.c:338
0x4008a0dd: vEventGroupSetBitsCallback at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/event_groups.c:696
0x4008be36: prvProcessReceivedCommands at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/timers.c:981
0x4008bf17: prvTimerTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/timers.c:981
0x400898fd: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
Thank you for the reply,
best regards