ESP8266 RTOS MQTT SSL运行错误

jiangnan xiang
Posts: 1
Joined: Tue May 01, 2018 10:15 pm

ESP8266 RTOS MQTT SSL运行错误

Postby jiangnan xiang » Wed May 02, 2018 11:46 pm

我使用了官方给的MQTT SSL例程,利用gencrt.h生成了证书,密钥,利用genheaader.h生成了头文件,并添加到工程中,程序编译正常,但是运行中老是出错,错误位置在如下函数:
X509* cacrt = d2i_X509(NULL, ssl_cck->cacrt, ssl_cck->cacrt_len);
WIFI_INIT
mode : sta(5c:cf:7f:f8:4a:8d)
add if0
wifi_check_ip
STATION_IDLE
load cart.
Fatal exception (0):
epc1=0x40279d20
epc2=0x00000000
epc3=0x402818a7
epcvaddr=0x40108d98
depc=0x00000000
rtn_add=0x40278781

Free Heap Size: 42528
Stack Point: 3fff7e10
3fff7e10: 401086c0 00000362 3fff8c33 00000000
3fff7e20: 00000001 00000000 00000000 00000000
3fff7e30: 00000000 00000000 00000000 00000000
3fff7e40: 00000000 00000000 00000000 4027da17
3fff7e50: a5a5a5a5 00000000 40107948 40108a38
3fff7e60: 00000362 a5a5a5a5 a5a5a5a5 a5a5a5a5
3fff7e70: 00000000 00000000 3fff8638 00000000
3fff7e80: 402206ee 00000362 3fff879b 00000001
根据出错的地址epc1=0x40279d20定位到错误的位置为
ret = mbedtls_asn1_get_tag( p, end, &len,
MBEDTLS_ASN1_CONTEXT_SPECIFIC | MBEDTLS_ASN1_CONSTRUCTED | 0 ) )
请问这是什么错误原因,该如何去解决?
请给我一些帮助,谢谢!

Who is online

Users browsing this forum: No registered users and 6 guests