JeroenBeemster / ESP32-WPA2-enterprise

ESP32 WPA2 Enterprise example simplified for Arduino
GNU General Public License v3.0
47 stars 19 forks source link

Guru meditation error #2

Open rautmithil opened 6 years ago

rautmithil commented 6 years ago

I am trying to connect to a university's Wi-Fi network which uses TKIP, PEAP version 0 for phase1 and MSCHAPV2 for phase 2. No certificates are required. I am using this example with Adafruit ESP32 Huzzah with the modified line

esp_wpa2_config_t config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_enable(&config);

One in 10 times, it gets stuck in the connect loop

while (WiFi.status() != WL_CONNECTED) {
        delay(500);
        Serial.print(".");
 }

On other occasion it throws

Guru meditation error of type LoadProhibited occurred on core 1. Exception was unhandled.

as soon as it enters the connect loop. Any leads what could be the problem. Stack traceback reveals this but I am finding it difficult to make sense out of it.


0x4011d43d: mp_read_unsigned_bin at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/wpa_supplicant/src/crypto/libtommath.h line 990
0x4011d43d: mp_read_unsigned_bin at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/wpa_supplicant/src/crypto/libtommath.h line 990
0x4011e175: bignum_set_unsigned_bin at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/wpa_supplicant/src/crypto/bignum.c line 114
0x40119c32: crypto_mod_exp at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/wpa_supplicant/src/crypto/crypto_internal-modexp.c line 40
0x40118af1: x509_certificate_check_signature at ?? line ?
0x40118cdb: x509_certificate_chain_validate at ?? line ?
0x40115cbe: tlsv1_client_set_cred at ?? line ?
0x4011607e: tlsv1_client_process_handshake at ?? line ?
0x40115385: tlsv1_client_handshake at ?? line ?
0x40114e34: tls_connection_handshake2 at ?? line ?
0x40114e8d: tls_connection_handshake at ?? line ?
0x40113646: eap_peer_tls_process_helper at ?? line ?
0x40112e4e: wifi_sta_get_enterprise_disable_time_check at ?? line ?
0x401116d9: eap_sm_process_request at ?? line ?
0x401119ed: wpa2Task at ?? line ?