Skip to content

Commit 75c55c8

Browse files
committed
Add GD32 MCU mapping config JSON
Introduce `common/scripts/gd32/gd32.json` with device metadata for GD32F303, GD32F207, and GD32F407/GD32F450. The file defines series IDs, flash-size-to-part mappings, and a probe rule to distinguish GD32F450 from GD32F407 via APB2EN bit 26.
1 parent fa3aaa4 commit 75c55c8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

common/scripts/gd32/gd32.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"0414": {
3+
"series": "GD32F303",
4+
"uid_base" : "",
5+
"flash": {
6+
"256": "GD32F303XCXX"
7+
}
8+
},
9+
"0418": {
10+
"series": "GD32F207",
11+
"flash": {
12+
"1024": "GD32F207XRXX"
13+
}
14+
},
15+
"0x0419": {
16+
"series": "GD32F407/GD32F450",
17+
"probes": {
18+
"tli_apb2en_bit26": {
19+
"address": "0x40021024",
20+
"bit": 26,
21+
"set": "GD32F450",
22+
"clear": "GD32F407"
23+
}
24+
},
25+
"flash": {
26+
"GD32F407": {
27+
"512": "GD32F407XEXX"
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)