OTA updates are stopping during transfer

nickm2018 wrote on May 31, 2018:

I am using a new device not officially supported in FreeRTOS (Cypress Wi-Fi) and the OTA image size is > 900 Kbytes. The OTA process is stalling somewhere after 146 blocks, or ~149 Kbytes.
I do not know what is stalling the transmissions. I see the OTA thread publishing the get request to the stream after idling for 2 seconds but nothing is received from the server. In Wireshark, I see that the server is acking the TCP message but that is it.

I have tried adjusting the static buffer size and slowing down the recv call in the mqtt thread, both of which slightly increases the number of packets received.

I am guess there is some timeout that is hitting but I can not find it.

I can post the serial output of the update process.

nickm2018 wrote on May 31, 2018:

Found the problem. It was related to the specific secure socket port in my code. I was not freeing buffers properly which consumed all of the memory available in the LwIP RX memory pool.

SarenaAtAws wrote on June 04, 2018:

That is great. Thanks for letting us know your solution!