nrf5: Adding -fstack-usage flag to gcc CFLAGS to be able to trace stack usage on modules.

This commit is contained in:
Glenn Ruben Bakke 2017-05-18 22:41:06 +02:00 committed by glennrub
parent c921bbd9ac
commit d06c6f4587
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ CFLAGS_MCU_m0 = $(CFLAGS_CORTEX_M) --short-enums -mtune=cortex-m0 -mcpu=cortex-m
CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES))
CFLAGS += $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD)
CFLAGS += -fno-strict-aliasing
CFLAGS += -fstack-usage
CFLAGS += -Iboards/$(BOARD)
CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>'