File tree Expand file tree Collapse file tree 15 files changed +105
-15
lines changed Expand file tree Collapse file tree 15 files changed +105
-15
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LINKER_SCRIPT = {{linker_script}}
13
13
###############################################################################
14
14
CC = $(GCC_BIN)arm-none-eabi-gcc
15
15
CPP = $(GCC_BIN)arm-none-eabi-g++
16
- CC_FLAGS = -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections
16
+ CC_FLAGS = -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections
17
17
ONLY_C_FLAGS = -std=gnu99
18
18
ONLY_CPP_FLAGS = -std=gnu++98
19
19
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
@@ -27,6 +27,12 @@ LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc
27
27
28
28
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin
31
37
32
38
clean:
Original file line number Diff line number Diff line change @@ -20,14 +20,20 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m0 -mthumb
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -g
23
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections --specs=nano.specs
27
27
#LD_FLAGS += -u _printf_float -u _scanf_float
28
28
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
29
29
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
30
30
31
+ ifeq ($(DEBUG), 1)
32
+ CC_FLAGS += -DDEBUG -O0
33
+ else
34
+ CC_FLAGS += -DNDEBUG -Os
35
+ endif
36
+
31
37
all: $(PROJECT).bin $(PROJECT).hex size
32
38
33
39
clean:
Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m3 -mthumb
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
23
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs
27
27
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
28
28
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin $(PROJECT).hex size
31
37
32
38
clean:
Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -g3
23
+ CC_FLAGS = $(CPU) -c -g3 -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m4 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
27
27
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
28
28
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin $(PROJECT).hex size
31
37
32
38
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m4 -mthumb
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m4 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m0plus -mthumb
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m0plus -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m0plus -mthumb
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m0plus -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m0plus -mthumb
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m0plus -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m0 -mthumb
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
23
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections --specs=nano.specs
27
27
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
28
28
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin $(PROJECT).hex size
31
37
32
38
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m0 -mthumb
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections --specs=nano.specs
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m0 -mthumb
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
23
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections --specs=nano.specs
27
27
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
28
28
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin $(PROJECT).hex size
31
37
32
38
clean:
Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m0 -mthumb
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
23
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m0 -mthumb -Wl,--gc-sections --specs=nano.specs
27
27
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
28
28
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin $(PROJECT).hex size
31
37
32
38
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m3 -mthumb
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m3 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -18,12 +18,18 @@ LD = $(GCC_BIN)arm-none-eabi-gcc
18
18
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
19
19
20
20
CPU = -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
21
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
21
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
22
22
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
23
23
24
24
LD_FLAGS = -mcpu=cortex-m4 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
25
25
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
26
26
27
+ ifeq ($(DEBUG), 1)
28
+ CC_FLAGS += -DDEBUG -O0
29
+ else
30
+ CC_FLAGS += -DNDEBUG -Os
31
+ endif
32
+
27
33
all: $(PROJECT).bin
28
34
29
35
clean:
Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
20
20
SIZE = $(GCC_BIN)arm-none-eabi-size
21
21
22
22
CPU = -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
23
- CC_FLAGS = $(CPU) -c -Os -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
23
+ CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections
24
24
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
25
25
26
26
LD_FLAGS = -mcpu=cortex-m4 -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float
27
27
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
28
28
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
29
29
30
+ ifeq ($(DEBUG), 1)
31
+ CC_FLAGS += -DDEBUG -O0
32
+ else
33
+ CC_FLAGS += -DNDEBUG -Os
34
+ endif
35
+
30
36
all: $(PROJECT).bin $(PROJECT).hex size
31
37
32
38
clean:
You can’t perform that action at this time.
0 commit comments