From 800625ace00b3d5bbe0ec97fb6f54a267942b7c0 Mon Sep 17 00:00:00 2001 From: Esteban Volentini Date: Mon, 21 Jul 2025 22:27:55 -0300 Subject: [PATCH 1/2] Fix message on library build --- module/base/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/base/makefile b/module/base/makefile index 9f6bd7d..f16d164 100644 --- a/module/base/makefile +++ b/module/base/makefile @@ -164,7 +164,7 @@ define library_link_rule $(call show_message,Definiendo regla de enlazar $(LIB_DIR)/$1.a) PROJECT_LIB += $(LIB_DIR)/$1.a $(LIB_DIR)/$1.a: $$($2_OBJ) - $$(call show_action,Building $$(call short_path,$$<)) + $$(call show_action,Building $$(call short_path,$$@)) -@mkdir -p $$(@D) $$(QUIET) $$(AR) rcs $$@ $$^ endef From ecc416deca495c1b389fc4caa14c9e5807c1fc62 Mon Sep 17 00:00:00 2001 From: Esteban Volentini Date: Mon, 21 Jul 2025 22:28:45 -0300 Subject: [PATCH 2/2] Simplified flashing commands --- module/base/soc/lpc43xx/makefile | 2 +- module/base/soc/stm32f1xx/makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/base/soc/lpc43xx/makefile b/module/base/soc/lpc43xx/makefile index d1045e7..f0fff0d 100644 --- a/module/base/soc/lpc43xx/makefile +++ b/module/base/soc/lpc43xx/makefile @@ -26,7 +26,7 @@ CPU = cortex-m4f # Flash commandfor OpenOCD download target -FLASH_WRITER_COMMANDS = -c "init" -c "halt 0" -c "flash write_image erase $(TARGET_ELF)" -c "reset run" -c "shutdown" +FLASH_WRITER_COMMANDS = -c "program $(TARGET_ELF) verify reset exit" # Variable with LPC Open drivers module root foder LPC_OPEN := external/base/soc/$(SOC)/lpc_open diff --git a/module/base/soc/stm32f1xx/makefile b/module/base/soc/stm32f1xx/makefile index 7a4098e..bf3208e 100644 --- a/module/base/soc/stm32f1xx/makefile +++ b/module/base/soc/stm32f1xx/makefile @@ -26,7 +26,7 @@ CPU = cortex-m3 # Flash commandfor OpenOCD download target -FLASH_WRITER_COMMANDS = -c "init" -c "halt 0" -c "reset halt" -c "stm32f1x unlock 0" -c "reset halt" -c "flash write_image erase $(TARGET_ELF)" -c "reset halt" -c "reset run" -c "shutdown" +FLASH_WRITER_COMMANDS = -c "program $(TARGET_ELF) verify reset exit" # Variable with MCU drivers module root foder MCU_FOLDER := external/base/mcu/$(MCU)