Skip to main content
Explorer
October 10, 2024
Solved

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

  • October 10, 2024
  • 1 reply
  • 1545 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.

    1 reply

    MukAuthorAnswer
    Explorer
    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.

    Super User
    October 10, 2024