Core 0 panic on Wifi.begin basic sample

franck102
Posts: 8
Joined: Thu Mar 12, 2020 5:45 pm

Core 0 panic on Wifi.begin basic sample

Postby franck102 » Fri Mar 13, 2020 4:28 pm

Hi all,

I am getting a Core 0 IllegalInstruction crash in tx_pwctrl_init (or like below subcalls) when trying to call Wifi.begin(...) on my ESP32 devkit. The same code on a similar (but different supplier) module worked for me a couple days ago, I don't know what to try?
The module is connected to the computer's USB port.

Any suggestion would be really appreciated!
Thanks,
Franck

Code: Select all

#include <WiFiType.h>
#include <WiFi.h>

#define SSID "foo"
#define PASSWORD "bar"

void setup() {
  // WIFI
  Serial.print(F("Starting WIFI"));
  WiFi.begin(SSID, PASSWORD);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  Serial.println(F("WIFI connected."));
}

void loop() {
  // put your main code here, to run repeatedly:
  for (;;) {
    delay(1000);
  }
}
The error is:

Code: Select all

Guru Meditation Error: Core  0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400dc4c0: 97c22c04 033c21a2 120c0b7d
Core 0 register dump:
PC      : 0x400dc4c7  PS      : 0x00060c30  A0      : 0x800dc6ed  A1      : 0x3ffb5180  
A2      : 0x00000000  A3      : 0x0000003e  A4      : 0x00000001  A5      : 0x00000001  
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x800dc481  A9      : 0x3ffb5160  
A10     : 0x80084b87  A11     : 0x0000031d  A12     : 0x3ffc5120  A13     : 0x3ffc1b44  
A14     : 0x00000000  A15     : 0x3ffc1b44  SAR     : 0x00000007  EXCCAUSE: 0x00000000  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000  

Backtrace: 0x400dc4c7:0x3ffb5180 0x400dc6ea:0x3ffb51e0 0x400dc817:0x3ffb5230 0x400da716:0x3ffb5250 0x400dab20:0x3ffb5270 0x400d4a2b:0x3ffb5330 0x400d4caa:0x3ffb5360 0x400eb8b8:0x3ffb5390 0x400eb9a8:0x3ffb53c0 0x400ebcb2:0x3ffb53f0 0x400e808a:0x3ffb5420 0x4008f0e7:0x3ffb5440 0x400886e1:0x3ffb5480

Code: Select all

PC: 0x400dc4c7: ram_tx_pwr_backoff at phy_chip_v7_cal.c line 1447
EXCVADDR: 0x00000000

Decoding stack results
0x400dc4c7: ram_tx_pwr_backoff at phy_chip_v7_cal.c line 1447
0x400dc6ea: tx_pwctrl_init_cal at phy_chip_v7_cal.c line 2105
0x400dc817: tx_pwctrl_init at phy_chip_v7_cal.c line 2173
0x400da716: bb_init at phy_chip_v7.c line 2468
0x400dab20: register_chipv7_phy at phy_chip_v7.c line 3174
0x400d4a2b: esp_phy_rf_init at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/phy_init.c line 156
0x400d4caa: esp_phy_load_cal_and_init at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/phy_init.c line 621
0x400886e1: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

franck102
Posts: 8
Joined: Thu Mar 12, 2020 5:45 pm

Re: Core 0 panic on Wifi.begin basic sample

Postby franck102 » Sat Mar 14, 2020 9:21 am

Answering my own question, this was a power issue.
Powering from a power adapter and using rx0/tx0 to connect to the computer solved the issue.

Franck

Who is online

Users browsing this forum: No registered users and 58 guests