Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSID available but cant connect to esp32gw.local #2

Open
botts7 opened this issue Apr 27, 2021 · 10 comments
Open

SSID available but cant connect to esp32gw.local #2

botts7 opened this issue Apr 27, 2021 · 10 comments

Comments

@botts7
Copy link

botts7 commented Apr 27, 2021

Compiled and running on esp32 wrover

SSID available and can connect with phone or PC

wont load https://esp32gw.local or 192.168.4.1 or 192.168.4.2

Any ideas?

Guru Meditation Error: Core  1 panic'ed (Unhandled debug exception)
Debug exception reason: Stack canary watchpoint triggered (loopTask)
Core 1 register dump:
PC      : 0x400931b8  PS      : 0x00060a36  A0      : 0x4008359c  A1      : 0x3ffcba50
A2      : 0x00000000  A3      : 0x00060a23  A4      : 0x00060a20  A5      : 0x00000001
A6      : 0x00000041  A7      : 0x00000000  A8      : 0x80154689  A9      : 0x3ffcbbe0
A10     : 0x00000081  A11     : 0x00000004  A12     : 0x3ffe0dd4  A13     : 0x1bbe0ce0
A14     : 0x737c2b73  A15     : 0xa9f4439f  SAR     : 0x0000001f  EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0x00000000

ELF file SHA256: 0000000000000000

Backtrace: 0x400931b8:0x3ffcba50 0x40083599:0x3ffcbb20 0x40093b27:0x3ffcbb40 0x4009418a:0x3ffcbb60 0x400838a9:0x3ffcbb80 0x40083a85:0x3ffcbba0 0x40083c1c:0x3ffcbbc0 0x40157f51:0x3ffcbbe0 0x40154686:0x3ffcbc00 0x40154ad6:0x3ffcbc20 0x4015557a:0x3ffcbc40 0x4015568f:0x3ffcbcc0 0x4015590e:0x3ffcbce0 0x4014eaab:0x3ffcc350 0x4014f3ff:0x3ffcc380 0x40150018:0x3ffcc430 0x401500ab:0x3ffcc450 0x40161841:0x3ffcc480 0x40158d4b:0x3ffcc4b0 0x40158d89:0x3ffcc4e0 0x40154375:0x3ffcc510 0x400f135d:0x3ffcd1b0 0x400f158a:0x3ffcd540 0x400d7bfa:0x3ffcd860 0x400d7d35:0x3ffcd900 0x400d3f3f:0x3ffcd970 0x400d3f75:0x3ffcd990 0x400f7446:0x3ffcd9c0 0x400907da:0x3ffcd9e0
  #0  0x400931b8:0x3ffcba50 in _frxt_int_enter at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portasm.S:105
  #1  0x40083599:0x3ffcbb20 in _xt_lowint1 at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_vectors.S:1139
  #2  0x40093b27:0x3ffcbb40 in multi_heap_internal_unlock at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap.c:380
  #3  0x4009418a:0x3ffcbb60 in multi_heap_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c:321
  #4  0x400838a9:0x3ffcbb80 in heap_caps_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c:232
  #5  0x40083a85:0x3ffcbba0 in heap_caps_calloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c:232
  #6  0x40083c1c:0x3ffcbbc0 in esp_mbedtls_mem_calloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/port/esp_mem.c:25
  #7  0x40157f51:0x3ffcbbe0 in mbedtls_calloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/platform.c:93
  #8  0x40154686:0x3ffcbc00 in mbedtls_mpi_grow at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #9  0x40154ad6:0x3ffcbc20 in mbedtls_mpi_shift_l at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #10 0x4015557a:0x3ffcbc40 in mbedtls_mpi_div_mpi at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #11 0x4015568f:0x3ffcbcc0 in mbedtls_mpi_mod_mpi at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #12 0x4015590e:0x3ffcbce0 in mbedtls_mpi_exp_mod at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #13 0x4014eaab:0x3ffcc350 in rsa_prepare_blinding at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:425
  #14 0x4014f3ff:0x3ffcc380 in mbedtls_rsa_private at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:962
  #15 0x40150018:0x3ffcc430 in mbedtls_rsa_rsassa_pkcs1_v15_sign at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:2108
  #16 0x401500ab:0x3ffcc450 in mbedtls_rsa_pkcs1_sign at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:2151
  #17 0x40161841:0x3ffcc480 in rsa_sign_wrap at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk_wrap.c:145
  #18 0x40158d4b:0x3ffcc4b0 in mbedtls_pk_sign_restartable at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk.c:520
  #19 0x40158d89:0x3ffcc4e0 in mbedtls_pk_sign at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk.c:520
  #20 0x40154375:0x3ffcc510 in mbedtls_x509write_crt_der at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/x509write_crt.c:493
  #21 0x400f135d:0x3ffcd1b0 in _ZN11httpsserverL10cert_writeERNS_7SSLCertENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_$constprop$18 at .pio/libdeps/esp-wrover/esp32_https_server/src/SSLCert.cpp:51    
  #22 0x400f158a:0x3ffcd540 in httpsserver::createSelfSignedCert(httpsserver::SSLCert&, httpsserver::SSLKeySize, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) at .pio/libdeps/esp-wrover/esp32_https_server/src/SSLCert.cpp:297 (discriminator 4)
  #23 0x400d7bfa:0x3ffcd860 in WebManager::initCertificate() at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
  #24 0x400d7d35:0x3ffcd900 in WebManager::init() at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
  #25 0x400d3f3f:0x3ffcd970 in setupWeb() at src/main.cpp:66
  #26 0x400d3f75:0x3ffcd990 in setup() at src/main.cpp:79
  #27 0x400f7446:0x3ffcd9c0 in loopTask(void*) at C:/Users/botts/.platformio/packages/framework-arduinoespressif32@src-537c58760dafe7fcc8a1d9bbcf00b6f6/cores/esp32/main.cpp:18
  #28 0x400907da:0x3ffcd9e0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Starting AP for configuration
Generating new HTTPS certificate
Guru Meditation Error: Core  1 panic'ed (Unhandled debug exception)
Debug exception reason: Stack canary watchpoint triggered (loopTask)
Core 1 register dump:
PC      : 0x400930a3  PS      : 0x00060a36  A0      : 0x400931c4  A1      : 0x3ffcba20
A2      : 0x00000000  A3      : 0xffffffff  A4      : 0x00060a20  A5      : 0x00000001
A6      : 0x00000002  A7      : 0x00000000  A8      : 0x8015512f  A9      : 0x3ffcbbb0
A10     : 0x3ffcbbd8  A11     : 0x00000000  A12     : 0x4008359c  A13     : 0x7e281ae2
A14     : 0x43f6e0a0  A15     : 0x3265334b  SAR     : 0x0000001f  EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0xffffffff

ELF file SHA256: 0000000000000000

Backtrace: 0x400930a3:0x3ffcba20 0x400931c1:0x3ffcbaf0 0x40093b27:0x3ffcbb10 0x400941cf:0x3ffcbb30 0x40083946:0x3ffcbb50 0x40083c29:0x3ffcbb70 0x40157f62:0x3ffcbb90 0x4015465f:0x3ffcbbb0 0x4015512c:0x3ffcbbd0 0x4015514f:0x3ffcbc10 0x401554f0:0x3ffcbc40 0x4015568f:0x3ffcbcc0 0x4015590e:0x3ffcbce0 0x4014eaab:0x3ffcc350 0x4014f3ff:0x3ffcc380 0x40150018:0x3ffcc430 0x401500ab:0x3ffcc450 0x40161841:0x3ffcc480 0x40158d4b:0x3ffcc4b0 0x40158d89:0x3ffcc4e0 0x40154375:0x3ffcc510 0x400f135d:0x3ffcd1b0 0x400f158a:0x3ffcd540 0x400d7bfa:0x3ffcd860 0x400d7d35:0x3ffcd900 0x400d3f3f:0x3ffcd970 0x400d3f75:0x3ffcd990 0x400f7446:0x3ffcd9c0 0x400907da:0x3ffcd9e0
  #0  0x400930a3:0x3ffcba20 in _xt_context_save at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/xtensa_context.S:132
  #1  0x400931c1:0x3ffcbaf0 in _frxt_int_enter at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portasm.S:112
  #2  0x40093b27:0x3ffcbb10 in multi_heap_internal_unlock at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap.c:380
  #3  0x400941cf:0x3ffcbb30 in multi_heap_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c:321
  #4  0x40083946:0x3ffcbb50 in heap_caps_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c:232
  #5  0x40083c29:0x3ffcbb70 in esp_mbedtls_mem_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/port/esp_mem.c:35
  #6  0x40157f62:0x3ffcbb90 in mbedtls_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/platform.c:98
  #7  0x4015465f:0x3ffcbbb0 in mbedtls_mpi_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #8  0x4015512c:0x3ffcbbd0 in mbedtls_mpi_mul_mpi at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #9  0x4015514f:0x3ffcbc10 in mbedtls_mpi_mul_int at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #10 0x401554f0:0x3ffcbc40 in mbedtls_mpi_div_mpi at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #11 0x4015568f:0x3ffcbcc0 in mbedtls_mpi_mod_mpi at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #12 0x4015590e:0x3ffcbce0 in mbedtls_mpi_exp_mod at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/bignum.c:2661
  #13 0x4014eaab:0x3ffcc350 in rsa_prepare_blinding at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:425
  #14 0x4014f3ff:0x3ffcc380 in mbedtls_rsa_private at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:962
  #15 0x40150018:0x3ffcc430 in mbedtls_rsa_rsassa_pkcs1_v15_sign at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:2108
  #16 0x401500ab:0x3ffcc450 in mbedtls_rsa_pkcs1_sign at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/rsa.c:2151
  #17 0x40161841:0x3ffcc480 in rsa_sign_wrap at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk_wrap.c:145
  #18 0x40158d4b:0x3ffcc4b0 in mbedtls_pk_sign_restartable at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk.c:520
  #19 0x40158d89:0x3ffcc4e0 in mbedtls_pk_sign at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/pk.c:520
  #20 0x40154375:0x3ffcc510 in mbedtls_x509write_crt_der at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/mbedtls/library/x509write_crt.c:493
  #21 0x400f135d:0x3ffcd1b0 in _ZN11httpsserverL10cert_writeERNS_7SSLCertENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_$constprop$18 at .pio/libdeps/esp-wrover/esp32_https_server/src/SSLCert.cpp:51    
  #22 0x400f158a:0x3ffcd540 in httpsserver::createSelfSignedCert(httpsserver::SSLCert&, httpsserver::SSLKeySize, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) at .pio/libdeps/esp-wrover/esp32_https_server/src/SSLCert.cpp:297 (discriminator 4)
  #23 0x400d7bfa:0x3ffcd860 in WebManager::initCertificate() at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
  #24 0x400d7d35:0x3ffcd900 in WebManager::init() at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
  #25 0x400d3f3f:0x3ffcd970 in setupWeb() at src/main.cpp:66
  #26 0x400d3f75:0x3ffcd990 in setup() at src/main.cpp:79
  #27 0x400f7446:0x3ffcd9c0 in loopTask(void*) at C:/Users/botts/.platformio/packages/framework-arduinoespressif32@src-537c58760dafe7fcc8a1d9bbcf00b6f6/cores/esp32/main.cpp:18
  #28 0x400907da:0x3ffcd9e0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Starting AP for configuration
Generating new HTTPS certificate
@Fusseldieb
Copy link
Collaborator

Fusseldieb commented Apr 27, 2021

Looks like your ESP32 ran out of memory and crashed.

Did you follow the "Preparing" part mentioned in the docs?
Take a look and follow it closely: https://github.com/kind3r/esp32-ble-gateway/#preparing-the-esp32

This is because the HTTPS certificate generation takes more stack space.

@botts7
Copy link
Author

botts7 commented Apr 27, 2021

Had 3 instances of sdkconfig.h updated them all and got a bit further

can log in to config screen but get network error when trying to save credentials

Starting AP for configuration
Loading stored HTTPS certificate
Loaded cert from nvs [esp32gw.local][cert=778][pk=1192]
HTTPS started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      142652          |       38908           ||
HTTP started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      142616          |       38908           ||
Setup complete
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      117292          |       38908           ||
[HTTPS:I] New connection. Socket FID=58
[HTTPS:E] SSL_accept failed. Aborting handshake. FID=58
[HTTPS:I] Connection closed. Socket FID=58
[HTTPS:I] New connection. Socket FID=59
[HTTPS:E] SSL_accept failed. Aborting handshake. FID=59
[HTTPS:I] Connection closed. Socket FID=59
[HTTPS:I] New connection. Socket FID=60
[HTTPS:I] Request: GET / (FID=60)
Auth middleware started
Auth success
||   Miniumum Free DRAM |   Minimum Free IRAM   || 
||      47092           |       38908           ||
[HTTPS:I] Connection closed. Socket FID=60
[HTTPS:I] New connection. Socket FID=61
[HTTPS:E] SSL_accept failed. Aborting handshake. FID=61
[HTTPS:I] Connection closed. Socket FID=61
[HTTPS:I] New connection. Socket FID=62
[HTTPS:I] Request: GET /config (FID=62)
Auth middleware started
Auth success
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      47092           |       38908           ||
[HTTPS:I] Connection closed. Socket FID=62
[HTTPS:I] New connection. Socket FID=63
[HTTPS:E] SSL_accept failed. Aborting handshake. FID=63
[HTTPS:I] Connection closed. Socket FID=63
[HTTPS:I] New connection. Socket FID=58
[HTTPS:I] Request: POST /config (FID=58)
Auth middleware started
Auth success
Checking for config changes
Setting new admin password [Danistheman]
CORRUPT HEAP: Bad head at 0x3ffba54d. Expected 0xabba1234 got 0x77737361
abort() was called at PC 0x40086261 on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x4008f55c:0x3ffcd770 0x4008f7d9:0x3ffcd790 0x40086261:0x3ffcd7b0 0x4008638d:0x3ffcd7e0 0x400ff373:0x3ffcd800 0x400f8eb5:0x3ffcdac0 0x400f8e35:0x3ffcdb10 0x400941c1:0x3ffcdb40 0x40083946:0x3ffcdb60 0x400861a5:0x3ffcdb80 0x4000bec7:0x3ffcdba0 0x401876bd:0x3ffcdbc0 0x401873fd:0x3ffcdbe0 0x400d841f:0x3ffcdc00 0x401cb07f:0x3ffcdd50 0x400d76e2:0x3ffcdd70 0x400f28a5:0x3ffcde30 0x400f25fa:0x3ffcde70 0x400f2676:0x3ffcde90 0x400f28a5:0x3ffcdef0 0x400f25fa:0x3ffcdf30 0x400f2efd:0x3ffcdf50 0x400f0922:0x3ffce120 0x400d7ab2:0x3ffce150 0x400d3fc4:0x3ffce170 0x400f7455:0x3ffce190 0x400907da:0x3ffce1b0
  #0  0x4008f55c:0x3ffcd770 in invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
  #1  0x4008f7d9:0x3ffcd790 in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715
  #2  0x40086261:0x3ffcd7b0 in lock_acquire_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c:143
  #3  0x4008638d:0x3ffcd7e0 in _lock_acquire_recursive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c:171
  #4  0x400ff373:0x3ffcd800 in _vfiprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:860 (discriminator 2)
  #5  0x400f8eb5:0x3ffcdac0 in fiprintf at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/fiprintf.c:50
  #6  0x400f8e35:0x3ffcdb10 in __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:59 (discriminator 8)
  #7  0x400941c1:0x3ffcdb40 in multi_heap_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c:321
  #8  0x40083946:0x3ffcdb60 in heap_caps_free at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c:232
  #9  0x400861a5:0x3ffcdb80 in _free_r at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/syscalls.c:42
  #10 0x4000bec7:0x3ffcdba0 in ?? ??:0
  #11 0x401876bd:0x3ffcdbc0 in operator delete(void*) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/del_op.cc:46
  #12 0x401873fd:0x3ffcdbe0 in operator delete[](void*) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/del_opv.cc:32
  #13 0x400d841f:0x3ffcdc00 in WebManager::handleConfigSet(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*) at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
  #14 0x401cb07f:0x3ffcdd50 in void std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*)>::__call<void, , 0u, 1u>(std::tuple<>&&, std::_Index_tuple<0u, 1u>) at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1074
      (inlined by) void std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*)>::operator()<, void>() at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1133
      (inlined by) std::_Function_handler<void (), std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*)> >::_M_invoke(std::_Any_data const&) at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1871
  #15 0x400d76e2:0x3ffcdd70 in std::function<void ()>::operator()() const at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
      (inlined by) WebManager::middlewareAuthentication(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>) at src/web.cpp:124
  #16 0x400f28a5:0x3ffcde30 in void std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>)>::__call<void, , 0u, 1u, 2u>(std::tuple<>&&, std::_Index_tuple<0u, 1u, 2u>) at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1074
      (inlined by) void std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>)>::operator()<, void>() at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1133
      (inlined by) std::_Function_handler<void (), std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>)> >::_M_invoke(std::_Any_data const&) at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1871
  #17 0x400f25fa:0x3ffcde70 in std::function<void ()>::operator()() const at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:2271
  #18 0x400f2676:0x3ffcde90 in httpsserver::validationMiddleware(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>) at .pio/libdeps/esp-wrover/esp32_https_server/src/HTTPConnection.cpp:641
  #19 0x400f28a5:0x3ffcdef0 in void std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>)>::__call<void, , 0u, 1u, 2u>(std::tuple<>&&, std::_Index_tuple<0u, 1u, 2u>) at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1074
      (inlined by) void std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>)>::operator()<, void>() at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1133
      (inlined by) std::_Function_handler<void (), std::_Bind<void (*(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>))(httpsserver::HTTPRequest*, httpsserver::HTTPResponse*, std::function<void ()>)> >::_M_invoke(std::_Any_data const&) at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:1871
  #20 0x400f25fa:0x3ffcdf30 in std::function<void ()>::operator()() const at c:\users\botts\.platformio\packages\toolchain-xtensa32\xtensa-esp32-elf\include\c++\5.2.0/functional:2271
  #21 0x400f2efd:0x3ffcdf50 in httpsserver::HTTPConnection::loop() at .pio/libdeps/esp-wrover/esp32_https_server/src/HTTPConnection.cpp:510 (discriminator 4)
  #22 0x400f0922:0x3ffce120 in httpsserver::HTTPServer::loop() at .pio/libdeps/esp-wrover/esp32_https_server/src/HTTPServer.cpp:122
  #23 0x400d7ab2:0x3ffce150 in WebManager::loop() at .pio/libdeps/esp-wrover/ArduinoJson/src/ArduinoJson/Variant/VariantData.hpp:244
  #24 0x400d3fc4:0x3ffce170 in loop() at src/main.cpp:103
  #25 0x400f7455:0x3ffce190 in loopTask(void*) at C:/Users/botts/.platformio/packages/framework-arduinoespressif32@src-537c58760dafe7fcc8a1d9bbcf00b6f6/cores/esp32/main.cpp:23
  #26 0x400907da:0x3ffce1b0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Starting AP for configuration
Loading stored HTTPS certificate
Loaded cert from nvs [esp32gw.local][cert=778][pk=1192]
HTTPS started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      142652          |       38908           ||
HTTP started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      142616          |       38908           ||
Setup complete
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      117292          |       38908           ||

@botts7
Copy link
Author

botts7 commented Apr 27, 2021

Seems to now have connected to my network now ?

@Fusseldieb
Copy link
Collaborator

Another memory corruption, although this time I don't know what could've caused that. Maybe @kind3r knows?

Considering that it connected to your network now, does it work?

@kind3r
Copy link
Owner

kind3r commented Apr 28, 2021

Seems something does not really work during the password change when cleaning up the allocated variable. I have removed it and replaced with a reboot required. Can you test the new code ?

@botts7
Copy link
Author

botts7 commented May 3, 2021

Have reflashed successfully and enter credentials. They save but still get a network error message.

After that setting the noble gateway up in the add-on does not discover any locks.

@MarkGardiner
Copy link

I am stuck at the same spot as @botts7. I have set up the gateway but it doesn't seem to be able to discover the lock (which I can at least do directly from my RPi). I also ran into most of the issues re getting the code to compile and having to comment out the platform_packages and digging through every instance of CONFIG_ARDUINO_LOOP_STACK_SIZE to update (of which I had many).

@MarkGardiner
Copy link

MarkGardiner commented Dec 21, 2021

Is they a way to confirm if the bluetooth on the board is turned on?

On the board that I got https://www.amazon.com.au/gp/product/B07Q576VWZ/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&psc=1 there is a cryptic comment about

"If it cann't get bluetooth working?
Using Node32s as the Board selection. To reference GPIO pins in code use just the number, for example "digitalWrite(13, HIGH)" sets GPIO13 high."

@204maker
Copy link

204maker commented Oct 11, 2022

I am getting this error on the serial monitor of the VS Code:

�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Starting AP for configuration
Loading stored HTTPS certificate
Loaded cert from nvs [esp32gw.local][cert=781][pk=1192]
HTTPS started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      141188          |       15560           ||
HTTP started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      141188          |       15560           ||
Setup complete
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      112672          |       15560           ||
�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Starting AP for configuration
Loading stored HTTPS certificate
Loaded cert from nvs [esp32gw.local][cert=781][pk=1192]
HTTPS started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      141188          |       15560           ||
HTTP started
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      141188          |       15560           ||
Setup complete
||   Miniumum Free DRAM |   Minimum Free IRAM   ||
||      113780          |       15560           ||
[HTTPS:I] New connection. Socket FID=52
[HTTPS:I] Request: GET / (FID=52)
Auth middleware started
Auth success
E (12493) SPIFFS: mount failed, -10025
[ 12500][E][SPIFFS.cpp:89] begin(): Mounting SPIFFS failed! Error: -1
[ 12501][E][vfs_api.cpp:24] open(): File system is not mounted

@204maker
Copy link

Sorry, I should have RTFM.
I was able to compile with this fix: #3

Upload to ESP32:

Connect your ESP32 to the PC, go to PlatformIO menu (the alien head on the VSCode's left toolbar, where you have files, search, plugins etc.) then in Project Tasks choose env:esp-wrover -> Platform -> Upload Filesystem Imager. This will 'format' the storage and upload the web UI.

Next, you need to build and upload the main code. In Project Tasks choose env:esp-wrover -> General -> Upload and Monitor. This should start the build process and once it is finished the compiled result will be uploaded to the ESP32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants