avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Aw: RE: Issue with Sending Large Web Data Files via LWIP RTOS


From: Nguyễn Công Minh
Subject: RE: Aw: RE: Issue with Sending Large Web Data Files via LWIP RTOS
Date: Tue, 8 Oct 2024 07:22:36 +0000

  1. I not using calloc and malloc
  2. We use netconn to create webservice, when I “send” big file over netcom_write (split the file into 1k as shown).

  1. Sometimes I can send the file multiple times before the program stops but sometimes it stops on the first send

 

 

  1. This is content of the sys_arch_sem_wait

 

 

Best regards!

 

Nguyễn Công Minh (Mr. Muk)

Firmware Engineer 

 

M: (+84) 388 425 928  |    E: RD08@vietes.vn

W: www.vietes.vn

A: No. 91, Trung Kinh Street, Trung Hoa Ward,

Cau Giay District, Hanoi, Vietnam 

 

From: Axel Wachtler <uracolix@quantentunnel.de>
Sent: Tuesday, October 8, 2024 1:43 PM
To: sukhapl singh <sukhpal_tech@yahoo.com>; avr-chat@nongnu.org; bkchem-user@nongnu.org; Nguyễn Công Minh <RD08@vietes.vn>
Subject: Aw: RE: Issue with Sending Large Web Data Files via LWIP RTOS

 

Just some questions, that might Help to track down the issue:

 

Is your memory Handling OK? Are the buffers freed after use? Are you using permanently malloc to create a Buffer or do you have a Buffer Pool?

 

BR, Axel

--
Gesendet mit der GMX Mail App

Am 08.10.24, 04:10 schrieb "Nguyễn Công Minh" <RD08@vietes.vn>:

Dear lwIP Support Team,

Thank you for your response.

To provide more details, I am using the STM32H573VIT MCU. It features a Cortex-M33 core, 2MB of flash memory, and 640KB of SRAM. For Ethernet connectivity, I am using the RTL8201F Ethernet PHY. Additionally, I have integrated an external flash memory with a capacity of 16MB for handling larger data storage needs.

As mentioned earlier, I encounter an issue when sending large web data files. After splitting the data into 1KB packets, the transmission works initially, but after a few webpage reloads, the MCU crashes after sending a few packets.

I would appreciate your guidance in identifying the root cause and any suggestions for resolving this issue.

Thank you for your time and assistance.

 

 

Best regards!

 

Nguyễn Công Minh (Mr. Muk)

Firmware Engineer 

 

M: (+84) 388 425 928  |    E: RD08@vietes.vn

W: www.vietes.vn

A: No. 91, Trung Kinh Street, Trung Hoa Ward,

Cau Giay District, Hanoi, Vietnam 

 

From: sukhapl singh <sukhpal_tech@yahoo.com>
Sent: Monday, October 7, 2024 7:52 PM
To: Nguyễn Công Minh <RD08@vietes.vn>; avr-chat@nongnu.org; bkchem-user@nongnu.org
Subject: Re: Issue with Sending Large Web Data Files via LWIP RTOS

 

hi 

which MCU  you ate working on.

 

regards 

Sukhpal Singh 

+91-9354623640

 

 

 

 

 

 

 

On Mon, 7 Oct 2024 at 18:14, Nguyễn Công Minh

<RD08@vietes.vn> wrote:

Dear lwIP Support Team,

I am currently working on a project using LWIP with RTOS to send large web data files. 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

Best regards!

 

Nguyễn Công Minh (Mr. Muk)

Firmware Engineer 

 

M: (+84) 388 425 928  |    E: RD08@vietes.vn

W: www.vietes.vn

A: No. 91, Trung Kinh Street, Trung Hoa Ward,

Cau Giay District, Hanoi, Vietnam 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]