microcontroller_flash_uploader/Makefile
2023-10-27 23:49:00 +03:00

18 lines
542 B
Makefile

SHELL=/bin/bash
BIN = $(wildcard ./*.bin)
ELF = $(wildcard ./*.elf)
OFFSET = 0x08000000
OPEN_OCD_PROGRAMMER_CFG = /usr/local/share/openocd/scripts/interface/stlink.cfg
OPEN_OCD_MK_CFG = /usr/local/share/openocd/scripts/target/stm32g0x.cfg
.PHONY: help
help:
@echo "Flash uploader to stm32. "
@echo " "
@echo "Before using, perform: install OpenOCD or stlink-tools"
@echo " "
@echo -e $(HELP_FLASH_UPLOADER)
include ./flash_uploader.mk