Page 1 of 1

Encrypted record buffer length error.

Posted: Fri May 24, 2024 1:18 pm
by Dhruvit
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.

Re: Encrypted record buffer length error.

Posted: Wed May 29, 2024 4:50 am
by Dhruvit
A gentle reminder!

Thank you in advance for your guidance.

Thanks & Regards,
Dhruvit.