aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoriysheng <iyysheng@gmail.com>2022-08-20 08:30:59 +0800
committerAntonio Borneo <borneo.antonio@gmail.com>2022-09-03 21:26:20 +0000
commit7dc4be3157d666ef05905151b7b4d0f05778b08a (patch)
tree66711ede71e14489ac6c3131e2beb07b10db5577 /src/target
parent6db57051d070fc8d6bb54d21413e5e8610972651 (diff)
downloadriscv-openocd-7dc4be3157d666ef05905151b7b4d0f05778b08a.zip
riscv-openocd-7dc4be3157d666ef05905151b7b4d0f05778b08a.tar.gz
riscv-openocd-7dc4be3157d666ef05905151b7b4d0f05778b08a.tar.bz2
target/arm: Add support with identify STAR-MC1
Tested with an PLUS-F5270 board which uses the MM32F5277E9PV. Signed-off-by: iysheng <iyysheng@gmail.com> Change-Id: Icb75ae8337fdc6fa60e39d3d74dd8bc163707bdd Reviewed-on: https://review.openocd.org/c/openocd/+/7136 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/cortex_m.c6
-rw-r--r--src/target/cortex_m.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c
index aeaeb18..727d9ca 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 69368a9..b1de26e 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,