From 86ba94a3f38c38cb8911693e468e4d17587de7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Tue, 18 Aug 2020 20:10:15 +0200 Subject: [PATCH] Makefile: Add linker flag to show memory usage after linking --- stm-firmware/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm-firmware/Makefile b/stm-firmware/Makefile index f184317..62cfef2 100644 --- a/stm-firmware/Makefile +++ b/stm-firmware/Makefile @@ -89,7 +89,7 @@ endif LFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork LFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 --disable-newlib-supplied-syscalls -nostartfiles -LFLAGS += -Tstm32f407vet6_flash.ld -Wl,-Map=$(MAPFILE).map +LFLAGS += -Tstm32f407vet6_flash.ld -Wl,-Map=$(MAPFILE).map -Wl,--print-memory-usage CFLAGS += -c -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles