diff options
author | jaseg <git@jaseg.net> | 2017-09-26 23:54:26 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2017-09-26 23:54:26 +0200 |
commit | 9904ad49f3d18b8af855034a837e671c3c510262 (patch) | |
tree | 216d4175696a17c4d0786bd01d1564af096c3bdb /olsndot/firmware/Makefile | |
parent | f99c06e09793a0887f0273247ecfeaffc2a8df40 (diff) | |
download | olsndot-9904ad49f3d18b8af855034a837e671c3c510262.tar.gz olsndot-9904ad49f3d18b8af855034a837e671c3c510262.tar.bz2 olsndot-9904ad49f3d18b8af855034a837e671c3c510262.zip |
Serial protocol working
Diffstat (limited to 'olsndot/firmware/Makefile')
-rw-r--r-- | olsndot/firmware/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/olsndot/firmware/Makefile b/olsndot/firmware/Makefile index 625865d..33c1139 100644 --- a/olsndot/firmware/Makefile +++ b/olsndot/firmware/Makefile @@ -10,7 +10,7 @@ SIZE := arm-none-eabi-size CFLAGS = -Wall -g -std=gnu11 -Os CFLAGS += -mlittle-endian -mcpu=cortex-m0 -march=armv6-m -mthumb -CFLAGS += -ffunction-sections -fdata-sections -Wl,--gc-sections +#CFLAGS += -ffunction-sections -fdata-sections -Wl,--gc-sections CFLAGS += -Wl,-Map=main.map # Technically we're using an STM32F030F4, but apart from the TSSOP20 package that one is largely identical to the @@ -31,7 +31,7 @@ all: main.elf cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f030x6.h $(CMSIS_PATH)/Include/core_cm0.h python3 gen_cmsis_exports.py $^ > $@ -main.elf: main.c startup_stm32f030x6.s system_stm32f0xx.c $(HAL_PATH)/Src/stm32f0xx_ll_utils.c +main.elf: main.c startup_stm32f030x6.s system_stm32f0xx.c $(HAL_PATH)/Src/stm32f0xx_ll_utils.c cmsis_exports.c $(CC) $(CFLAGS) -o $@ $^ $(OBJCOPY) -O ihex $@ $(@:.elf=.hex) $(OBJCOPY) -O binary $@ $(@:.elf=.bin) |