Happy times: things work on real hardware!

This commit is contained in:
2019-06-02 21:34:18 -07:00
parent a7f1ffc1b5
commit 1cc2f7adf4
27 changed files with 9353 additions and 9057 deletions

View File

@@ -78,7 +78,7 @@ CPU_FLAGS = -mthumb -mcpu=cortex-m0 -mfloat-abi=soft
# C pedantism
CFLAGS = -Wall -Wextra -Wpedantic
# Debug/optimization
CFLAGS += -ggdb -g3 -Os
CFLAGS += -Os -ggdb -g3
CFLAGS += -fdata-sections -ffunction-sections
# Architecture
CFLAGS += $(CPU_FLAGS)
@@ -141,7 +141,7 @@ STM32FLASH_DEVICE = /dev/ttyUSB0
.PHONY: flash
flash: $(OUTPUT_BIN)
@echo "FLASH $(OUTPUT_BIN)"
$(STM32_PROG) --connect port=SWD reset=Hwrst -w $(OUTPUT_BIN) 0x8000000 -v --go
$(STM32_PROG) -vb 3 --connect port=SWD reset=Hwrst -w $(OUTPUT_BIN) 0x8000000 -v --go
.PHONY: clean
clean: