Files
CelloEffects/gcc/include/flash_sections_int_ext.mk
2026-10-18 23:39:44 +02:00

18 lines
814 B
Makefile

ifeq ($(OS),Windows_NT)
_extflash_:
ifeq ($(program_files_path),)
$(error $(error_msg))
endif
@cd "$(st_stm32cube_programmer_path)" && ./$(stm32cube_programmer_filename) -c port=SWD ap=1 -d $(application_path)/$(binary_output_path)/target.hex -el $(stm32cube_loader_relative_path) -hardRst
_intflash_:
ifeq ($(program_files_path),)
$(error $(error_msg))
endif
@cd "$(st_stm32cube_programmer_path)" && ./$(stm32cube_programmer_filename) -c port=SWD ap=1 -d $(application_path)/$(binary_output_path)/intflash.hex -el $(stm32cube_loader_relative_path) -hardRst
else
# macOS/Linux: delegate to gcc/flash.sh (finds STM32_Programmer_CLI, uses ap=1 mode=UR)
flash_project := $(if $(findstring Appli,$(binary_output_path)),appli,boot)
_extflash_ _intflash_:
@"$(application_path)/gcc/flash.sh" $(flash_project)
endif