Encrypted record buffer length error.

Dhruvit
Posts: 2
Joined: Fri May 24, 2024 12:40 pm

Encrypted record buffer length error.

Postby Dhruvit » Fri May 24, 2024 1:18 pm

Hi team,

We were previously working on the ESP-IDF_V5.0.1. When performed OTA on this SDK, it worked fine for us.

Due to RF improvement requirements, we decided to upgrade to ESP-IDF_V5.2.1 on the suggestions provided by the Espressif RF team.
The application layer remains the same between the old IDF SDK and the recent one.

After migrating to ESP-IDF_V5.2.1, we saw the PEER_CLOSE_NOTIFY(-0x7880) error. We resolved the same by decreasing the MSS value and enabling CONFIG_MBEDTLS_DYNAMIC_BUFFER.

When we perform an OTA and an OTA image download starts in ESP, we get a dynamic allocation error, and the ssl_encrypt_buf() length is a smaller error. The error logs are attached below.
Also, please find attached the sdkconfig file for the application.

Are we missing anything here? Please let us know.

Thank you.
Attachments
sdkconfig.txt
(55.64 KiB) Downloaded 69 times
error_logs.txt
(16.62 KiB) Downloaded 77 times

Dhruvit
Posts: 2
Joined: Fri May 24, 2024 12:40 pm

Re: Encrypted record buffer length error.

Postby Dhruvit » Wed May 29, 2024 4:50 am

A gentle reminder!

Thank you in advance for your guidance.

Thanks & Regards,
Dhruvit.

Who is online

Users browsing this forum: Baidu [Spider], grantb and 101 guests