diff options
author | jaseg <git@jaseg.net> | 2018-04-21 16:21:48 +0200 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-04-21 16:21:48 +0200 |
commit | 0c5b35fa3eecbe8c0035fdc5ca608a5c510df165 (patch) | |
tree | 2892e50a813959a178307958915fcd940bc1c8c7 /firmware/Makefile | |
parent | ddbb807e54245bd5b6686096827f4124ef196957 (diff) | |
download | olsndot-0c5b35fa3eecbe8c0035fdc5ca608a5c510df165.tar.gz olsndot-0c5b35fa3eecbe8c0035fdc5ca608a5c510df165.tar.bz2 olsndot-0c5b35fa3eecbe8c0035fdc5ca608a5c510df165.zip |
Fix new packet-based comms protocol
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 1e668e1..be1709b 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -10,9 +10,10 @@ OBJCOPY := arm-none-eabi-objcopy OBJDUMP := arm-none-eabi-objdump SIZE := arm-none-eabi-size -CFLAGS = -Wall -Wpedantic -Wstrict-aliasing -g -std=gnu11 -Os +#CFLAGS = -Wall -Wpedantic -Wstrict-aliasing -g -std=gnu11 -Os +CFLAGS = -Wall -Wpedantic -Wstrict-aliasing -g -std=gnu11 -O1 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 @@ -43,7 +44,7 @@ sources.tar.xz.zip: sources.tar.xz sources.c: sources.tar.xz.zip xxd -i $< | head -n -1 | sed 's/=/__attribute__((section(".source_tarball"))) =/' > $@ -main.elf: main.c mac.c adc.c serial.c startup_stm32f030x6.s system_stm32f0xx.c $(HAL_PATH)/Src/stm32f0xx_ll_utils.c cmsis_exports.c +main.elf: main.c adc.c serial.c startup_stm32f030x6.s system_stm32f0xx.c $(HAL_PATH)/Src/stm32f0xx_ll_utils.c cmsis_exports.c sources.c $(CC) $(CFLAGS) -o $@ $^ $(OBJCOPY) -O ihex $@ $(@:.elf=.hex) $(OBJCOPY) -O binary $@ $(@:.elf=.bin) |