File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ include ../py/mkenv.mk
1717CROSS_COMPILE ?= arm-none-eabi-
1818
1919CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -march=armv7e-m -mabi=aapcs -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion
20- CFLAGS = -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 )
20+ CFLAGS = -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4 ) -Os
2121CFLAGS += -g -ffunction-sections -fdata-sections -fno-common -fsigned-char -mno-unaligned-access
2222CFLAGS += -Iboards/$(BOARD )
2323
Original file line number Diff line number Diff line change 2424 * THE SOFTWARE.
2525 */
2626
27- __stack_size__ = 3K ; /* interrupts are handled within this stack */
27+ __stack_size__ = 2K ; /* interrupts are handled within this stack */
2828__min_heap_size__ = 8K;
2929
3030MEMORY
Original file line number Diff line number Diff line change @@ -183,31 +183,10 @@ $(BUILD)/drivers/cc3100/src/driver.o: CFLAGS += -fno-strict-aliasing
183183
184184# Check if we would like to debug the port code
185185ifeq ($(BTYPE ) , release)
186- # Optimize everything and define the NDEBUG flag
187- CFLAGS += -Os -DNDEBUG
186+ CFLAGS += -DNDEBUG
188187else
189188ifeq ($(BTYPE ) , debug)
190- # Define the DEBUG flag
191- CFLAGS += -DDEBUG=DEBUG
192- # Optimize the stable sources only
193- $(BUILD ) /extmod/% .o : CFLAGS += -Os
194- $(BUILD ) /lib/% .o : CFLAGS += -Os
195- $(BUILD ) /fatfs/src/% .o : CFLAGS += -Os
196- $(BUILD ) /FreeRTOS/Source/% .o : CFLAGS += -Os
197- $(BUILD ) /ftp/% .o : CFLAGS += -Os
198- $(BUILD ) /hal/% .o : CFLAGS += -Os
199- $(BUILD ) /misc/% .o : CFLAGS += -Os
200- $(BUILD ) /mods/% .o : CFLAGS += -Os
201- $(BUILD ) /py/% .o : CFLAGS += -Os
202- $(BUILD ) /simplelink/% .o : CFLAGS += -Os
203- $(BUILD ) /drivers/cc3100/% .o : CFLAGS += -Os
204- $(BUILD ) /stmhal/% .o : CFLAGS += -Os
205- $(BUILD ) /telnet/% .o : CFLAGS += -Os
206- $(BUILD ) /util/% .o : CFLAGS += -Os
207- $(BUILD ) /pins.o : CFLAGS += -Os
208- $(BUILD ) /main.o : CFLAGS += -Os
209- $(BUILD ) /mptask.o : CFLAGS += -Os
210- $(BUILD ) /servertask.o : CFLAGS += -Os
189+ CFLAGS += -DNDEBUG
211190else
212191$(error Invalid BTYPE specified)
213192endif
You can’t perform that action at this time.
0 commit comments