summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-05-03 23:15:14 +0700
committerhathach <[email protected]>2024-05-03 23:15:14 +0700
commit58248f3e7fd05374d9b4779afb4cb158be96874f (patch)
treedf4b584c0cfc3790b7e5cafebf527ab4eba59d02
parentfcfd5a66256f5fba4b9871d6dd84050f9a238ab8 (diff)
mm32 temp
-rw-r--r--hw/bsp/mm32/boards/mm32f327x_mb39/board.mk9
-rw-r--r--hw/bsp/mm32/family.mk3
2 files changed, 3 insertions, 9 deletions
diff --git a/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk b/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk
index a0d92d1c7..803b3adff 100644
--- a/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk
+++ b/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk
@@ -1,12 +1,9 @@
CFLAGS += \
-DHSE_VALUE=8000000
+JLINK_DEVICE = MM32F3273G9P
+
LD_FILE = $(BOARD_PATH)/flash.ld
SRC_S += $(SDK_DIR)/mm32f327x/MM32F327x/Source/GCC_StartAsm/startup_mm32m3ux_u_gcc.S
-
-# For flash-jlink target
-#JLINK_DEVICE = stm32f411ve
-
-# flash target using on-board stlink
-#flash: flash-jlink
+flash: flash-jlink
diff --git a/hw/bsp/mm32/family.mk b/hw/bsp/mm32/family.mk
index 3981e4e41..2e8e595b9 100644
--- a/hw/bsp/mm32/family.mk
+++ b/hw/bsp/mm32/family.mk
@@ -27,6 +27,3 @@ INC += \
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
$(TOP)/$(SDK_DIR)/mm32f327x/MM32F327x/Include \
$(TOP)/$(SDK_DIR)/mm32f327x/MM32F327x/HAL_Lib/Inc
-
-# flash target using on-board
-flash: flash-jlink