mbedTls NONOS SDK 2.1 HTTP Server fatal exception

Posts: 3
Joined: Fri Jan 15, 2016 11:14 am

mbedTls NONOS SDK 2.1 HTTP Server fatal exception

Postby chinnaobi » Tue Aug 22, 2017 6:52 pm

Hi All,

I have been playing around with new libmbedtls.a library downloaded from espressif SDK (precompiled from herehttp://espressif.com/sites/default/ ... 160718.zip ) .

It seems there is an issue running IOT Demo HTTP server SSL enabled using mbedTls library. Once I start a client connection this is what happens
=== System init ====
mode : softAP(62:01:94:84:0d:2e)
add if1
dhcp server start:(ip:,mask:,gw:
bcn 100
add 1
aid 1
station: 90:61:0c:32:59:29 join, AID = 1
server handshake start.
server handshake ok!
server's data invalid protocol
webserver's err 8 reconnect
server handshake start.
server handshake ok!
Fatal exception 28(LoadProhibitedCause):
ÿpc1=0x40001b7f, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000004, depc=0x00000000
ets Jan 8 2013,rst cause:1, boot mode:(3,7)

load 0x40100000, len 2592, room 16
tail 0
chksum 0xf3
load 0x3ffe8000, len 764, room 8
tail 4
chksum 0x92
load 0x3ffe82fc, len 676, room 4
tail 0
chksum 0x22
csum 0x22

2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

I have set the SSL settings as follows on the HTTP server

Code: Select all

espconn_secure_set_size(ESPCONN_SERVER, 4096);
         espconn_secure_set_default_certificate(default_certificate, default_certificate_len);
        espconn_secure_set_default_private_key(default_private_key, default_private_key_len);

I have tested by increasing the size of espconn (6*1024), same happens.

Any idea, why it's happening? What am I missing?

Posts: 1641
Joined: Mon Oct 27, 2014 11:08 am

Re: mbedTls NONOS SDK 2.1 HTTP Server fatal exception

Postby ESP_Faye » Thu Aug 24, 2017 4:57 pm

Who is online

Users browsing this forum: No registered users and 14 guests