Closed
Description
Hardware:
Board: Adafruit Feather ESP32
Core Installation/update date: ?8/9/2018?
IDE name: Arduino IDE and Platform.io
Flash Frequency: 80Mhz
Upload Speed: 921600
Description:
Fails on esp_wifi_sta_wpa2_ent_enable(&config);
Sketch:
#include "esp_wpa2.h"
#include <WiFi.h>
const char* ssid = "eduroam";
const char* eap_username = "hunter";
const char* eap_password = "hunter123";
void setup() {
Serial.begin(115200);
delay(10);
Serial.print("Connecting to network: ");
Serial.println(ssid);
WiFi.disconnect(true); //disconnect form wifi to set new wifi connection
esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)eap_username, strlen(eap_username));
esp_wifi_sta_wpa2_ent_set_username((uint8_t *)eap_username, strlen(eap_username));
esp_wifi_sta_wpa2_ent_set_password((uint8_t *)eap_password, strlen(eap_password));
esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_enable(&config);
WiFi.begin(ssid);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address set: ");
Serial.println(WiFi.localIP()); //print LAN IP
}
void loop() {}
Debug Messages:
Enable Core debug level: Debug on tools menu of Arduino IDE, then put the serial output here
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400e6f51 PS : 0x00060530 A0 : 0x800d1ca6 A1 : 0x3ffb1f40
A2 : 0x3ffb1f74 A3 : 0x3ffc5890 A4 : 0x00000000 A5 : 0x526312a6
A6 : 0x00000001 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffb1f40
A10 : 0x3ffb23cc A11 : 0x3f4010a5 A12 : 0x0000000a A13 : 0x3ffb23d6
A14 : 0x00000079 A15 : 0x00000033 SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000138 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0xffffffff
Backtrace: 0x400e6f51:0x3ffb1f40 0x400d1ca3:0x3ffb1f70 0x4012ad1f:0x3ffb1fa0
PC: 0x400e6f51
EXCVADDR: 0x00000138
Decoding stack results
0x400d1ca3: setup() at /home/hunter/Documents/Arduino/sketch_aug09a/sketch_aug09a.ino line 24
0x4012ad1f: loopTask(void*) at /home/hunter/.arduino15/packages/esp32/hardware/esp32/1.0.0/cores/esp32/main.cpp line 15