lwIP | lwipopts: MEM_SIZE is not overridable, defaults cannot fit in 512 KiB SRAM. (#19)
Armaan Chowfin (@ar-in0)
gitlab at rtems.org
Tue Jul 14 19:04:46 UTC 2026
Issue created by Armaan Chowfin: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/work_items/19
## Summary
Two issues related to memory sizing:
a. `legacy_lwipopts.h` defines a 1 MiB lwIP heap unconditionally (no opt config options either) and the TMS570LC4357 has 512 KiB of SRAM in total. Build fails at link stage.
b. `MEM_SIZE` sets an upper bound for total heap available to lwip during a single run. rx chains at init alloc 10 \* 9600 byte for pbufs under `MEMP_MEM_MALLOC` so we cannot lower the `MEM_SIZE` arbitrarily.
{width=900 height=221}
## Steps to reproduce
Run net-ping-shell rtems lwIP app: https://gitlab.rtems.org/ar-in0/rtems-tms570-testing/-/blob/main/net-ping-shell/init.c?ref_type=heads on TI TMS570LC4357 with a debug build of rtems-lwip and rtems.
<!--Pre-set options
- milestone-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/work_items/19
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-4q77qaso3dlabxqon9i4y182a-m/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260714/5993e929/attachment.htm>
More information about the bugs
mailing list