Problems: Use of lwip libraries with freeRTOS, Ram memory of 128kb at 91% of use in MK60DN512.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems: Use of lwip libraries with freeRTOS, Ram memory of 128kb at 91% of use in MK60DN512.

900 Views
Dario_
Contributor I

I am working on a project that requires the use of an ethernet port with TCP/IP communication. We are using the MK60DN512VLQ10 microcontroller with 512 Kb of flash memory and 128 Kb of ram memory. We are using MCUXpresso IDE v11.4 and lwip stack with freeRTOS to solve TCP/IP programming.
The problem that we find is that when using the lwip stack the ram memory is filled to 91% of its capacity.
We also execute the sample project "twrk60d100m_demo_apps_lwip_lwip_httpsrv_freertos" and this example too uses 91% RAM, so there is not much RAM left for other programming tasks. Is it normal that it occupies so much ram memory?
For us it is a big problem because we are advanced in the design of the project and we need more RAM space for additional programming tasks.

Can you suggest us a solution?

Is there any build condition in MCUXpresso to optimize Ram usage?

Thanks for your time

I await your response


Best regards
Darío

0 Kudos
Reply
1 Reply

865 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Darío:

 

Please refer to below discussion for LWIP configuration to maximize TCP throughput and reduce RAM constraints.

https://lwip-users.nongnu.narkive.com/gMlJ234p/lwip-configuration-to-maximize-tcp-throughput-given-r...

 

Regards

Daniel

0 Kudos
Reply