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