Skip to content

Guru meditation panic using websockets #7

@frohro

Description

@frohro

Hi Maddy,
I am having trouble with the ESP32 and ESP32-C3 (haven't tried any others) with websockets. Serial seems to work with serial, but a lot of my students are balancing things that would be much better without a tether cable. I have been trying to fix it this afternoon, but it is not fixing easily. I wonder if you have any advice. Here is the output.

ets Jun 8 2016 00:22:57␍␊
␍␊
rst:0x1 (POWERON_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:2␍␊
load:0x3fff0030,len:1184␍␊
load:0x40078000,len:13232␍␊
load:0x40080400,len:3028␍␊
entry 0x400805e4␍␊
[ 3][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=80, ...)␍␊
[ 10][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=80, ...)␍␊
[ 24][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz␍␊
[ 66][V][esp32-hal-uart.c:330] uartBegin(): UART0 baud(115200) Mode(800001c) rxPin(3) txPin(1)␍␊
[ 76][V][esp32-hal-uart.c:416] uartBegin(): UART0 not installed. Starting installation␍␊
[ 87][V][esp32-hal-uart.c:467] uartBegin(): UART0 initialization done.␍␊


Starting ESP32 WiFi PlotExample␍␊
Connecting to WiFi through CommManager...␍␊
Connecting to Frohne-2.4GHz WiFi [ 1127][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 0 - WIFI_READY␍␊
[ 1214][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0␍␊
[ 1212][V][WiFiGeneric.cpp:341] _arduino_event_cb(): STA Started␍␊
[ 1231][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 2 - STA_START␍␊
.[ 1331][V][WiFiGeneric.cpp:356] _arduino_event_cb(): STA Connected: SSID: Frohne-2.4GHz, BSSID: 14:91:82:60:9d:c6, Channel: 11, Auth: OPEN␍␊
[ 1344][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 4 - STA_CONNECTED␍␊
[ 1368][V][WiFiGeneric.cpp:370] _arduino_event_cb(): STA Got New IP:192.168.1.5␍␊
[ 1376][D][WiFiGeneric.cpp:1040] _eventCallback(): Arduino Event: 7 - STA_GOT_IP␍␊
[ 1383][D][WiFiGeneric.cpp:1103] _eventCallback(): STA IP: 192.168.1.5, MASK: 255.255.255.0, GW: 192.168.1.1␍␊
connected!␍␊
--> 192.168.1.5:80 <--␊
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.␍␊
␍␊
Core 1 register dump:␍␊
PC : 0x00060823 PS : 0x00060130 A0 : 0x800d2d20 A1 : 0x3ffb21d0 ␍␊
A2 : 0x00060823 A3 : 0xcab045da A4 : 0xcab045da A5 : 0x3ffb218c ␍␊
A6 : 0x3ffc61c0 A7 : 0x3ffb218c A8 : 0x800d7a76 A9 : 0x3ffb21b0 ␍␊
A10 : 0x3ffb7d90 A11 : 0x00000000 A12 : 0x00000000 A13 : 0x00000000 ␍␊
A14 : 0x3ffcf578 A15 : 0x00000000 SAR : 0x00000020 EXCCAUSE: 0x00000014 ␍␊
EXCVADDR: 0x00060820 LBEG : 0x400d6d20 LEND : 0x400d6d32 LCOUNT : 0x00000000 ␍␊
␍␊
␍␊
Backtrace: 0x00060820:0x3ffb21d0 0x400d2d1d:0x3ffb21f0 0x400d2bf9:0x3ffb2240 0x400db072:0x3ffb2290␍␊
␍␊
␍␊
␍␊
␍␊
ELF file SHA256: d0f8999387fba1aa␍␊
␍␊
Rebooting...␍␊

As you can see, it happens just after the cm.connect connects to WiFi. I have been using the ESP32 dev kit for this, because it is better tested than the ESP32-C3 in general. My code is in the guru-meditition branch of this repo on github. https://github.com/frohro/WWU6302view.git
If you have any good ideas, I would be grateful!
Rob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions