Fixed flash utility for STM32F4
[fw/stlink] / example / blink / Makefile
index 6f31bb26f02a85f2c136b2b47d68772cc5e14642..a8e3532828d6bda8c832772dc8951cc0be9c7559 100644 (file)
@@ -4,7 +4,8 @@ BIN_IMAGE=blink.bin
 CC=arm-none-eabi-gcc
 OBJCOPY=arm-none-eabi-objcopy
 
-CFLAGS=-O2 -mlittle-endian -mthumb
+CFLAGS=-g -mlittle-endian -mthumb
+#CFLAGS=-g -O2 -mlittle-endian -mthumb
 ifeq ($(CONFIG_STM32L_DISCOVERY), 1)
        CFLAGS+=-mcpu=cortex-m3 -DCONFIG_STM32L_DISCOVERY
 else ifeq ($(CONFIG_STM32VL_DISCOVERY), 1)
@@ -12,7 +13,7 @@ else ifeq ($(CONFIG_STM32VL_DISCOVERY), 1)
 else ifeq ($(CONFIG_STM32F4_DISCOVERY), 1)
        CFLAGS+=-mcpu=cortex-m4 -DCONFIG_STM32F4_DISCOVERY=1    
 endif
-       CFLAGS+=-ffreestanding -nostdlib -nostdinc
+CFLAGS+=-ffreestanding -nostdlib -nostdinc
 
 # to run from SRAM
 CFLAGS+=-Wl,-Ttext,0x20000000 -Wl,-e,0x20000000