From: Navaneeth Bhardwaj Date: Sat, 2 Sep 2023 18:47:45 +0000 (+0530) Subject: Print memory percentages X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=a5abf7ff7a105ebfe31b804d1e951b91a6c0a050;p=sensor-watch.git Print memory percentages this gives better idea of memories used. --- diff --git a/make.mk b/make.mk index bf61708..2870c4f 100644 --- a/make.mk +++ b/make.mk @@ -62,6 +62,7 @@ CFLAGS += -MD -MP -MT $(BUILD)/$(*F).o -MF $(BUILD)/$(@F).d LDFLAGS += -mcpu=cortex-m0plus -mthumb LDFLAGS += -Wl,--gc-sections LDFLAGS += -Wl,--script=$(TOP)/watch-library/hardware/linker/saml22j18.ld +LDFLAGS += -Wl,--print-memory-usage LIBS += -lm