cancel
Showing results for 
Search instead for 
Did you mean: 

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

Muk
Associate

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:

3 REPLIES 3
Muk
Associate

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.

STea
ST Employee

Hello @Muk ,

Glad to hear you made it work but just for other users could you be more specific about the mishandling of MCU's interrupts ?
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.