From 7dc4be3157d666ef05905151b7b4d0f05778b08a Mon Sep 17 00:00:00 2001 From: iysheng Date: Sat, 20 Aug 2022 08:30:59 +0800 Subject: [PATCH] target/arm: Add support with identify STAR-MC1 Tested with an PLUS-F5270 board which uses the MM32F5277E9PV. Signed-off-by: iysheng Change-Id: Icb75ae8337fdc6fa60e39d3d74dd8bc163707bdd Reviewed-on: https://review.openocd.org/c/openocd/+/7136 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/target/cortex_m.c | 6 ++++++ src/target/cortex_m.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index aeaeb1829..727d9ca07 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -103,6 +103,12 @@ static const struct cortex_m_part_info cortex_m_parts[] = { .arch = ARM_ARCH_V8M, .flags = CORTEX_M_F_HAS_FPV5, }, + { + .partno = STAR_MC1_PARTNO, + .name = "STAR-MC1", + .arch = ARM_ARCH_V8M, + .flags = CORTEX_M_F_HAS_FPV5, + }, }; /* forward declarations */ diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h index 69368a919..b1de26ebc 100644 --- a/src/target/cortex_m.h +++ b/src/target/cortex_m.h @@ -36,6 +36,7 @@ enum cortex_m_partno { CORTEX_M_PARTNO_INVALID, + STAR_MC1_PARTNO = 0x132, CORTEX_M0_PARTNO = 0xC20, CORTEX_M1_PARTNO = 0xC21, CORTEX_M3_PARTNO = 0xC23,