From e9c98936ceb4a15832d59018ff56af09eec29e3a Mon Sep 17 00:00:00 2001 From: BlakeFreer Date: Sun, 7 Apr 2024 12:49:29 -0400 Subject: [PATCH] renames stm binary --- firmware/Makefile | 2 +- firmware/mcal/stm32f767/PostBuild.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/Makefile b/firmware/Makefile index a2e23a99b..e05629a83 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -32,6 +32,6 @@ else endif st-flash: build - st-flash --reset write $(BUILD_DIR)/main.bin 0x08000000 + st-flash --reset write $(BUILD_DIR)/$(PROJECT).bin 0x08000000 FORCE: diff --git a/firmware/mcal/stm32f767/PostBuild.cmake b/firmware/mcal/stm32f767/PostBuild.cmake index 4a2454240..b58a0ea81 100644 --- a/firmware/mcal/stm32f767/PostBuild.cmake +++ b/firmware/mcal/stm32f767/PostBuild.cmake @@ -5,7 +5,7 @@ add_custom_command( TARGET main POST_BUILD COMMAND ${CMAKE_SIZE} $ - COMMAND ${CMAKE_OBJCOPY} -O ihex $ main.hex - COMMAND ${CMAKE_OBJCOPY} -O binary $ main.bin + COMMAND ${CMAKE_OBJCOPY} -O ihex $ ${PROJECT}.hex + COMMAND ${CMAKE_OBJCOPY} -O binary $ ${PROJECT}.bin # COMMAND ${CMAKE_OBJDUMP} -D -C $ > main.s ) \ No newline at end of file