STM8S firmware template
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
390 B

CC := sdcc
CFLAGS := -mstm8 --std-c99 --opt-code-size --Werror
FIRMWARE := main
all: $(FIRMWARE).ihx
%.ihx: %.c stm8s.h
$(CC) $(CFLAGS) --out-fmt-ihx $<
size $@
flash: $(FIRMWARE).ihx
stm8flash -c stlinkv2 -p stm8s103f3 -w $<
clean:
rm -f $(FIRMWARE).asm $(FIRMWARE).ihx $(FIRMWARE).cdb $(FIRMWARE).lst $(FIRMWARE).map $(FIRMWARE).lk $(FIRMWARE).rel $(FIRMWARE).rst $(FIRMWARE).sym