cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H75x LwIP Flash Size Way Too Large

CMHenway
Associate

Hello,

 

I am working to implement LwIP onto my MCU (STM32H750VBT6TR) with the PHY (DP83825IRMQR).

 

I got everything set up and was able to do a ping test and create a basic UDP client to send and receive packets (see this thread). This works well on my bare project with just these elements. The issue is that the amount of flash memory taken up by just adding the LwIP peripheral is absurd (it is a combined 110.8 kB out of 128 kB). This leaves little space for the rest of the code this needs to interface with.

 

Looking at tutorials for LwIP implementations show that only around 77 kB is typically used. I am wondering if anyone can help me track down why so much flash memory is being used in my implementation and if it can be minimized?

 

Project files are attached. Thanks in advance.

CMHenway_0-1760033273251.png

CMHenway_1-1760033297361.png

 

 

1 REPLY 1
CMHenway
Associate

Note that if the flash consumption cannot easily be brought down, I will likely swap to a pin-compatible part with more flash storage (STM32H753VIT6). Lots more code needs to run on this, so I don't want to run into flash bottlenecks.