Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Markus
Posts: 6
Joined: Tue Dec 10, 2019 3:49 pm

Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.

Postby Markus » Wed Oct 21, 2020 10:53 am

Hey Ppl,

with below "simple" code I get a strange error on my ESP32-DevKitC-V4, Arduino-Version 1.8.13:
I cannot find anything in my code to resolve this. Can someone help please???

Error:

Code: Select all

12:47:40.490 -> Connected to WiFi network with IP Address: 192.168.4.2
12:47:40.490 -> .
12:47:40.630 -> .
12:47:41.475 -> .
12:47:41.615 -> .
12:47:41.709 -> .
12:47:41.837 -> .
12:47:41.977 -> .
12:47:41.977 -> Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.
12:47:42.024 -> Core 1 register dump:
12:47:42.024 -> PC : 0x00000000 PS : 0x00060430 A0 : 0x800d30de A1 : 0x3ffb1ea0
12:47:42.024 -> A2 : 0x3ffb1f10 A3 : 0x00000000 A4 : 0x3ffcce40 A5 : 0x0000000b
12:47:42.024 -> A6 : 0x3ffcd650 A7 : 0x0000000b A8 : 0x801806ae A9 : 0x3ffb1e80
12:47:42.024 -> A10 : 0x3ffba848 A11 : 0x00000000 A12 : 0x0000000b A13 : 0x3ffcce4b
12:47:42.024 -> A14 : 0x0000000b A15 : 0x00000000 SAR : 0x0000000a EXCCAUSE: 0x00000014
12:47:42.024 -> EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0xffffffff
12:47:42.071 ->
12:47:42.071 -> Backtrace: 0x00000000:0x3ffb1ea0 0x400d30db:0x3ffb1ec0 0x400d3155:0x3ffb1ee0 0x400d1aae:0x3ffb1f00 0x400d62ad:0x3ffb1fb0 0x4008b019:0x3ffb1fd0
12:47:42.071 ->
12:47:42.071 -> Rebooting...
12:47:42.071 -> ets Jun 8 2016 00:22:57
Exception Decoder:

Code: Select all

PC: 0x00000000
EXCVADDR: 0x00000000

Decoding stack results
0x400d326b: HTTPClient::disconnect(bool) at C:\Users\Ishak\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 359
0x400d32e5: HTTPClient::end() at C:\Users\Ishak\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 347
0x400d1aee: loop() at C:\Users\Ishak\Documents\Arduino\MyWifi/MyWifi.ino line 38
0x400d65a5: loopTask(void*) at C:\Users\Ishak\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19
0x4008b019: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
Code:

Code: Select all

#include <WiFi.h>
#include "HTTPClient.h"
#include <iostream>
#include <string>

const char* ssid = "YOURNETWORK";
const char* password = "33333333";
long lastSendTime = 0;
int interval = 100;

void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  Serial.println("Connecting");
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.print("Connected to WiFi network with IP Address: ");
  Serial.println(WiFi.localIP());

}

void loop() {
  if ((millis() - lastSendTime) > interval) {
    Serial.println(".");
    if ((WiFi.status() == WL_CONNECTED)) {
      HTTPClient http;
      http.begin("http://192.168.4.1/hello");
      int httpcode = http.GET();
      if (httpcode > 0) {
        String payload = http.getString();
      }
      http.end();
      lastSendTime = millis();
    }
  }
}

Who is online

Users browsing this forum: No registered users and 76 guests