This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-AM263: LWIP memory footprint on AM263x

Part Number: LP-AM263

Hello,

I'm working with the LWIP Sockets example on the AM263x launchpad board and trying to get a sense of the resources used. It looks like the socket example requires ~570k of ram or else I start running into errors:

"

linker.cmd", line 53: error: program will not fit into available memory, or
   the section contains a call site that requires a trampoline that can't be
   generated for this section. placement with alignment fails for section

"

570k seems high, and based on some of the other threads I'm seeing on here, the targeted size is a little less than half of that. Are there any lwip options that can be turned off or optimizations that can be turned on to get that size down to something more reasonable?

Thanks.

  • Hello Michael,

    This issue has been assigned and the subject matter expert is currently OOO and will not be available until next week (10/31/2022) to provide a response. Thank you for your patience.

    Best Regards,
    Zackary Fleenor

  • Hi Michael,

    Are there any lwip options that can be turned off or optimizations that can be turned on to get that size down to something more reasonable?

    You can reduce lwip mem pool size to suit your needs from below mentioned file

    mcu_plus_sdk\source\networking\lwip\lwip-config\am263x\lwippools.h

    Meanwhile let me check with internal team on this.

    BR

    Nilabh A.

  • Hi Michael,

    Please check the latest sdk release as some of these features have been implemented. If you have anyother query feel free to raise a new ticket.