Hi,
May i suggest to check the return code of "netconn_write" ?
Eric
-------- Message d'origine -------- De : Nguyễn Công Minh <RD08@vietes.vn> Date : 08/10/2024 09:23 (GMT+01:00) À : Axel Wachtler <uracolix@quantentunnel.de>, sukhapl singh <sukhpal_tech@yahoo.com>, avr-chat@nongnu.org, bkchem-user@nongnu.org Objet : RE: Aw: RE: Issue with Sending Large Web Data Files via LWIP RTOS
- I not using calloc and malloc
- We use netconn to create webservice, when I “send” big file over netcom_write (split the file into 1k as shown).
- Sometimes I can send the file multiple times before the program stops but sometimes it stops on the first send
- 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
which MCU you ate working on.
On Mon, 7 Oct 2024 at 18:14, Nguyễn Công Minh
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
|