Esp32 & arduino IDE (serial monitor fail)
Posted: Wed Jan 22, 2020 12:17 pm
I have run this code to connect the esp32 to the wifi network the result is this msg on the serial monitor
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:1100
load:0x40078000,len:9564
ho 0 tail 12 room 4
load:0x40080400,len:6320
entry 0x400806a8
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4013236c PS : 0x00060630 A0 : 0x80130239 A1 : 0x3ffb54a0
A2 : 0x00000001 A3 : 0x3ffc7050 A4 : 0x00100000 A5 : 0x0d13007f
A6 : 0x00ad7f98 A7 : 0xfffcffff A8 : 0x81041322 A9 : 0x00000006
A10 : 0x00000001 A11 : 0x3ffbf720 A12 : 0x0000003d A13 : 0x3ffc7061
A14 : 0x3ffb5460 A15 : 0x3ffc7050 SAR : 0x00000007 EXCCAUSE: 0x0000001c
EXCVADDR: 0x81041322 LBEG : 0x4013236c LEND : 0x40132374 LCOUNT : 0x00000005
Code:
#include <WiFi.h>
const char* ssid = "PPPP";
const char* password = "PPPP";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
WiFi .begin( ssid, password );
Serial .print("connecting to WiFi");
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println("\nConnected to the WiFi network");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
if ((WiFi.status() == WL_CONNECTED)) //check the current connection stat
{
Serial.println("you can try to ping me");
delay(5000);
}
else
{
Serial.println("connection lost");
delay(5000);
}
}
please help me solve this problem
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:1100
load:0x40078000,len:9564
ho 0 tail 12 room 4
load:0x40080400,len:6320
entry 0x400806a8
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4013236c PS : 0x00060630 A0 : 0x80130239 A1 : 0x3ffb54a0
A2 : 0x00000001 A3 : 0x3ffc7050 A4 : 0x00100000 A5 : 0x0d13007f
A6 : 0x00ad7f98 A7 : 0xfffcffff A8 : 0x81041322 A9 : 0x00000006
A10 : 0x00000001 A11 : 0x3ffbf720 A12 : 0x0000003d A13 : 0x3ffc7061
A14 : 0x3ffb5460 A15 : 0x3ffc7050 SAR : 0x00000007 EXCCAUSE: 0x0000001c
EXCVADDR: 0x81041322 LBEG : 0x4013236c LEND : 0x40132374 LCOUNT : 0x00000005
Code:
#include <WiFi.h>
const char* ssid = "PPPP";
const char* password = "PPPP";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
WiFi .begin( ssid, password );
Serial .print("connecting to WiFi");
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println("\nConnected to the WiFi network");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
if ((WiFi.status() == WL_CONNECTED)) //check the current connection stat
{
Serial.println("you can try to ping me");
delay(5000);
}
else
{
Serial.println("connection lost");
delay(5000);
}
}
please help me solve this problem