PATH := c:\Program Files\dave\eclipse\gcc-arm-none-eabi-10.3-2021.07\bin;$(PATH)
P = blink
CFLAGS += -mcpu=cortex-m3 -mthumb -Wall -Wno-parentheses -Os
CFLAGS += -std=c++20
CFLAGS += -fno-common -static
CFLAGS += -specs=nano.specs -specs=nosys.specs
CFLAGS += -Wextra -Wshadow -Wno-register -Wno-volatile
#CFLAGS += -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -fno-exceptions
CFLAGS += -I ../CMSIS3
CFLAGS += -DSTM32F10X_MD
CFLAGS += -DVECTOR_TABLE_OFFSET=2048
CFLAGS += -DPAGE_SIZE=1024
LDFLAGS += -Wl,--gc-sections
LDFLAGS += -Wl,--print-memory-usage
LDFLAGS += -nostdlib
LDFLAGS += -TSTM32F103C8T6.ld
X = arm-none-eabi-
all: $P.bin
$P.elf: *.cpp *.ld Makefile
$Xgcc $(LDFLAGS) $(CFLAGS) $(filter %.cpp,$^) -o $@
%.bin: %.elf
$Xobjcopy -O binary $< $@
$Xobjdump -d $< > $P.dis
$Xstrip $<
flash: $P.bin
../bl/hid-flash $<
Vorgefundene Kodierung: ASCII (7 bit) | 2
|