Skip to main content
Associate II
October 10, 2024
Solved

Issue with Sending Large Web Data Files via LWIP RTOS using STM32H5

  • October 10, 2024
  • 3 replies
  • 1569 views

I am currently working on a project using LWIP with RTOS to send large web data files. I am using the STM32H573VIT MCU. However, I have encountered an issue where I am unable to send the entire file at once. To resolve this, I divided the file into smaller packets of 1KB, which allows the transmission to succeed.
While this approach works initially, after reloading the webpage a few times, I experience a problem where the MCU stops responding after sending only a few packets. The transmission fails, and the program halts unexpectedly.
I would greatly appreciate your assistance in diagnosing and resolving this issue. Could you please guide me on possible reasons for this behavior and suggest any potential fixes?
I attached the lwip config file:

This topic has been closed for replies.
Best answer by Muk

I found the cause and fixed it. The reason has nothing to do with the lwip config but because I mishandled the MCU's interrupt, leading to a memory overflow and the MCU being stopped at that task.

3 replies

MukAuthorBest answer
Associate II
October 10, 2024

I found the cause and fixed it. The reason has nothing to do with the lwip config but because I mishandled the MCU's interrupt, leading to a memory overflow and the MCU being stopped at that task.

Andrew Neil
Super User
October 10, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.