Skip to content

Commit 67d1234

Browse files
committed
Improve debug options based on discord chat
1 parent 401ef42 commit 67d1234

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

users/drashna/rules.mk

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ endif
6565
ifeq ($(strip $(HARDWARE_DEBUG_ENABLE)), yes)
6666
LTO_ENABLE := no
6767
OPT := 0
68-
OPT_DEFS += -g
68+
OPT_DEFS += -g -O0
6969
SEGGER_RTT_DRIVER_REQUIRED = yes
70+
TOP_SYMBOLS = 200
71+
EXTRALDFLAGS = -Xlinker -Map=$(BUILD_DIR)/$(TARGET).map
72+
ifeq ($(PLATFORM_KEY),chibios)
73+
EXTRAFLAGS = -fstack-usage
74+
EXTRALDFLAGS += -Wl,--print-memory-usage
75+
endif
7076
endif
7177

7278
ifeq ($(strip $(HEAVY_OPTIMIZATION_ENABLE)), yes)

0 commit comments

Comments
 (0)