Ethernet: LWIP memory issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-02 9:27 PM - last edited on ‎2024-07-03 8:37 AM by mƎALLEm
Whenever i am trying to post data i am facing this error this is making my system reboot everytime.
I am using STM32F417VETX controller.
Assertion "detected mem overflow in pool TCPIP_MSG_INPKT" failed at line 109 in ../Middlewares/Third_Party/LwIP/src/core/mem.c
Assertion "detected mem underflow in pool TCPIP_MSG_INPKT" failed at line 120 in ../Middlewares/Third_Party/LwIP/src/core/mem.c
Solved! Go to Solution.
- Labels:
-
Ethernet
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-03 8:02 PM
I just set my MEMP_MEM_MALLOC to 0 which stopped the assertion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 8:46 AM
Hello @VanshajKaistha ,
Can you give more information about your STM32CubeF4 version you are using as well as your memory configuration (buffer and descriptor placement, alignment ..)
Also check you Lwip configuration and share it, if possible, you will find it in lwipopts.h
.
If you are using RTOS make sure you are allocating the right pool, stack sizes.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-25 11:52 PM
I have handled the issue thanks for the response. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-30 2:02 AM
@VanshajKaistha
Hi, could you please elaborate on how you solved this issue? I'm facing the same issue.
Thank you in advance.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-03 8:02 PM
I just set my MEMP_MEM_MALLOC to 0 which stopped the assertion.
