From d9540895e63fe0d65a3ab4c63401cc854b63b425 Mon Sep 17 00:00:00 2001 From: crlonxp <88241281+crlonxp@users.noreply.github.com> Date: Tue, 27 Jun 2023 01:53:50 +0800 Subject: [PATCH] [mw320] - Add the memory usage and increase the m_text size (#27472) Signed-off-by: Chin-Ran Lo --- examples/all-clusters-app/nxp/mw320/BUILD.gn | 1 + .../platform/nxp/mw320/app/ldscripts/88MW320_xx_xxxx_flash.ld | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/all-clusters-app/nxp/mw320/BUILD.gn b/examples/all-clusters-app/nxp/mw320/BUILD.gn index 0884310a04d18a..3b3aed0c92d52b 100644 --- a/examples/all-clusters-app/nxp/mw320/BUILD.gn +++ b/examples/all-clusters-app/nxp/mw320/BUILD.gn @@ -88,6 +88,7 @@ mw320_executable("shell_mw320") { ldflags = [ "-T" + rebase_path(ldscript, root_build_dir), + "-Wl,-print-memory-usage", "-Wl,--no-warn-rwx-segment", ] defines = [ diff --git a/examples/platform/nxp/mw320/app/ldscripts/88MW320_xx_xxxx_flash.ld b/examples/platform/nxp/mw320/app/ldscripts/88MW320_xx_xxxx_flash.ld index 53bf0dc52cd4c8..7133d2ba8b32b9 100644 --- a/examples/platform/nxp/mw320/app/ldscripts/88MW320_xx_xxxx_flash.ld +++ b/examples/platform/nxp/mw320/app/ldscripts/88MW320_xx_xxxx_flash.ld @@ -38,7 +38,7 @@ _nvram_start = 0x480C0000; MEMORY { m_interrupts (RX) : ORIGIN = 0x1F000100, LENGTH = 0x00000180 - m_text (RX) : ORIGIN = 0x1F000280, LENGTH = 0x000FFD80 + m_text (RX) : ORIGIN = 0x1F000280, LENGTH = 0x003FFD80 m_data0 (RW) : ORIGIN = 0x00100000, LENGTH = 0x0005EFC0 m_data1 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00020000 m_nvram (RW) : ORIGIN = 0x480C0044, LENGTH = 0x00000FBC