guru meditation error

dhrumil1999
Posts: 1
Joined: Wed Feb 05, 2020 6:42 am

guru meditation error

Postby dhrumil1999 » Wed Feb 05, 2020 6:45 am

How to solve this error :
  1. /*
  2.  *  This sketch demonstrates how to scan WiFi networks.
  3.  *  The API is almost the same as with the WiFi Shield library,
  4.  *  the most obvious difference being the different file you need to include:
  5.  */
  6. #include "WiFi.h"
  7.  
  8. void setup()
  9. {
  10.     Serial.begin(115200);
  11.  
  12.     // Set WiFi to station mode and disconnect from an AP if it was previously connected
  13.     WiFi.mode(WIFI_STA);
  14.     WiFi.disconnect();
  15.     delay(100);
  16.  
  17.     Serial.println("Setup done");
  18. }
  19.  
  20. void loop()
  21. {
  22.     Serial.println("scan start");
  23.  
  24.     // WiFi.scanNetworks will return the number of networks found
  25.     int n = WiFi.scanNetworks();
  26.     Serial.println("scan done");
  27.     if (n == 0) {
  28.         Serial.println("no networks found");
  29.     } else {
  30.         Serial.print(n);
  31.         Serial.println(" networks found");
  32.         for (int i = 0; i < n; ++i) {
  33.             // Print SSID and RSSI for each network found
  34.             Serial.print(i + 1);
  35.             Serial.print(": ");
  36.             Serial.print(WiFi.SSID(i));
  37.             Serial.print(" (");
  38.             Serial.print(WiFi.RSSI(i));
  39.             Serial.print(")");
  40.             Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*");
  41.             delay(10);
  42.         }
  43.     }
  44.     Serial.println("");
  45.  
  46.     // Wait a bit before scanning again
  47.     delay(5000);
  48. }
I got this error :

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400dc99c: 42424923 49426e4b e04a4252
Core 0 register dump:
PC : 0x400dc9a1 PS : 0x00060c30 A0 : 0x800daf77 A1 : 0x3ffb5490
A2 : 0x3ffc516c A3 : 0x400dba38 A4 : 0x00000003 A5 : 0x00000007
A6 : 0x0000000b A7 : 0x00000003 A8 : 0x800dc989 A9 : 0x3ffb5450
A10 : 0x40003f98 A11 : 0x400041fc A12 : 0x3ffc51b4 A13 : 0x00000007
A14 : 0x3ffae0c0 A15 : 0x00000008 SAR : 0x0000001c EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x400838e0 LEND : 0x400838f5 LCOUNT : 0x00000000

Backtrace: 0x400dc9a1:0x3ffb5490 0x400daf74:0x3ffb54c0 0x400db388:0x3ffb54e0 0x400d517f:0x3ffb55a0 0x400d53fe:0x3ffb55d0 0x400ec330:0x3ffb5600 0x400ec420:0x3ffb5630 0x400ec72a:0x3ffb5660 0x400e8b02:0x3ffb5690 0x4008f583:0x3ffb56b0 0x40088b7d:0x3ffb56f0

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: guru meditation error

Postby ESP_Sprite » Wed Feb 05, 2020 10:34 am

First suspect would be the power supply to your board. Make sure that it's capable of delivering 500mA at least. If you use a devboard, make sure the USB cable is not too thin, and the USB port can deliver enough oomph to properly power the ESP32.

Also moving this to general discussion as it is unlikely that this is a bug in ESP-IDF or the Arduino system.

Who is online

Users browsing this forum: No registered users and 128 guests