From f3a274604e264e434e98ce7cc58fbc814700f358 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 28 Sep 2022 00:07:05 -0700 Subject: [PATCH] nxp_fmurt1062-v2:Free up RAM consumed by networking With Networking Memory region Used Size Region Size %age Used flash: 722108 B 7 MB 9.84% flashxip: 909032 B 1 MB 86.69% sram: 780212 B 856 KB 89.01% itcm: 0 GB 0 GB dtcm: 0 GB 128 KB 0.00% total used free largest nused nfree total used free largest nused nfree Umem: 267232 229136 38096 37264 906 53 No Network [846/848] Linking CXX executable nxp_fmurt1062-v2_default.elf Memory region Used Size Region Size %age Used flash: 685340 B 7 MB 9.34% flashxip: 895448 B 1 MB 85.40% sram: 722356 B 856 KB 82.41% itcm: 0 GB 0 GB dtcm: 0 GB 128 KB 0.00% total used free largest nused nfree Umem: 325088 200992 124096 123376 813 46 This commit With Networking [4/6] Linking CXX executable nxp_fmurt1062-v2_default.elf Memory region Used Size Region Size %age Used flash: 694852 B 7 MB 9.47% flashxip: 936880 B 1 MB 89.35% sram: 753588 B 856 KB 85.97% itcm: 0 GB 0 GB dtcm: 0 GB 128 KB 0.00% total used free largest nused nfree Umem: 293856 228432 65424 64448 900 51 --- .../nuttx-config/scripts/ocram-script.ld | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/boards/nxp/fmurt1062-v2/nuttx-config/scripts/ocram-script.ld b/boards/nxp/fmurt1062-v2/nuttx-config/scripts/ocram-script.ld index b42ab54b27..ceb910f311 100644 --- a/boards/nxp/fmurt1062-v2/nuttx-config/scripts/ocram-script.ld +++ b/boards/nxp/fmurt1062-v2/nuttx-config/scripts/ocram-script.ld @@ -120,6 +120,50 @@ SECTIONS *(.text.up_taskdump*) *(.text.up_mdelay*) *(.text.up_udelay*) + *(.text.ps_callback*) + *(.text.telnetd_daemon*) + *(.text.imxrt_clockconfig*) + *(.text.imxrt_writemii*) + *(.text.imxrt_readmii*) + *(.text.imxrt_ifup_action*) + *(.text.imxrt_ifup*) + *(.text.imxrt_ifdown*) + *(.text.imxrt_txtimeout_work*) + *(.text.inet_addr*) + *(.text.freeaddrinfo*) + *(.text.getaddrinfo*) + *(.text.getnameinfo*) + *(.text.dns*) + *(.text.lib_checkbase*) + *(.text.lib_isbasedigit*) + *(.text.lib_skipspace*) + *(.text.strftime*) + *(.text.clock_daysbeforemonth*) + *(.text.clock_isleapyear*) + *(.text.gethostentbyname_r*) + *(.text.gethostbyaddr_r*) + *(.text.getservbyname_r*) + *(.text.getservbyport_r*) + *(.text.getopt*) + *(.text.psock_setsockopt*) + *(.text.setsockopt*) + *(.text.udp_setsockopt*) + *(.text.netdev_register*) + *(.text.netdev_findbyname*) + *(.text.netdev_findbyindex*) + *(.text.netdev_nextindex*) + *(.text.arp*) + *(.text.telnet*) + *(.text.procfs*) + *(.text.binfs*) + *(.text.meminfo*) + *(.text.version*) + *(.text.netprocfs*) + *(.text.tcp*) + *(.text.udp*) + *dhcpc.c.*o:*(.text .text.*) + *icmp_ping.c.*o:*(.text .text.*) + *libapps.a:*(.text .text.*) *(.text.board_on_reset*) *(.text.board_spi_reset*) *(.text.board_query_manifest*)