-
Notifications
You must be signed in to change notification settings - Fork 706
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
SSL fail after 3.1 merge #89
Comments
Wrong report. |
My apologies. I (14454) WIFI: RAM left 4182760 W (14534) wifi: mem fail W (14564) wifi: m f null W (14614) wifi: alloc eb len=24 type=3 fail, heap:4118008 W (14614) wifi: m f null E (21054) aws_iot: failed! mbedtls_net_connect returned -0x52 |
@robertoimai which IDF you used? and did you test the release v1.0 version? |
I'm using ESP-IDF v3.1.1-6-g2aa9a2118 2nd stage bootloader on ADF 1.0 and I'm still having problems connecting to anything that uses tls. W (15061) wifi: mem fail W (15281) wifi: m f null W (15421) wifi: alloc eb len=24 type=3 fail, heap:4071520 W (15421) wifi: m f null E (21981) esp-tls: mbedtls_ssl_handshake returned -0x4c |
I think the reason of this issue may be as discussed in espressif/esp-idf#2184 (comment) |
Ok, so if it is memory issue, can you help me free up some memory? What kind of memory is that I should be freeing up? |
Wow, a lot of good questions :) I think that troubleshooting of Wi-Fi connection problems due to memory limitation is outside of the scope of ESP-ADF repository (use esp32.com forum instead), but since I started I here are my thoughts:
Internal memory normally used by the Wi-Fi driver, see Wi-Fi Buffer Usage.
To use this memory instead, if not done already, try espressif/esp-idf#2184 (comment) Another option is trying espressif/esp-idf#2184 (comment) (i.e. decreasing CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL in menuconfig to 256)
Each new release brings new features. This usually on the expense of extra memory used. If "Try to allocate memories of WiFi and LWIP in SPIRAM firstly", etc. does not help, then if possible, try establishing only a single "HTTP client" or "AWS IoT" connection at a time and check when memory issue is reported. This is to verify if the problem is caused by one particular connection or rather because two of them are present at the same time. |
Agree. |
Hi,
I'm unable to connect to using ssl anymore after I updated ADF and IDF 3.1 merge.
It was fine before.
This is what I get:
E (15355) aws_iot: failed! mbedtls_ssl_handshake returned -0x6800
E (15355) WIFI: Error(-4) connecting to ******-ats.iot.us-east-2.amazonaws.com:8883
I remember I had to make a small change on the prior IDF to make ssl connections, but I was in a rush yesterday and discarded those changes when I merged the latest master branch.
Can this be fixed or I should dig up and apply my small patch again on the 3.1 IDF?
The text was updated successfully, but these errors were encountered: