lwIP stack ... mandatory modules size is 50 Kb SRAM.
Is there any understandable way to calculate optimum (sic) size SRAM for stack?
There is no special rule to follow when setting the number of buffers, the heap size and the other parameters, because they mainly depend on the application itself.
Start with minimum possible resources and add, if it's not enough :-)
Retrieving data ...