diff --git a/arch/avr/src/avr/Toolchain.defs b/arch/avr/src/avr/Toolchain.defs index 9737b8d5240..54ba8416ee3 100644 --- a/arch/avr/src/avr/Toolchain.defs +++ b/arch/avr/src/avr/Toolchain.defs @@ -110,6 +110,10 @@ ifeq ($(CONFIG_DEBUG_LINK_MAP),y) LDFLAGS += -Map=$(call CONVERT_PATH,$(TOPDIR)$(DELIM)nuttx.map) endif +ifeq ($(CONFIG_ARCH_TOOLCHAIN_GCC),y) + LDFLAGS += --print-memory-usage +endif + ifneq ($(CONFIG_DEBUG_NOOPT),y) ARCHOPTIMIZATION += -fno-strict-aliasing endif