Skip to content

Commit 6cada70

Browse files
committed
Add GD32 device mapping JSON
Introduce `common/scripts/gd32/gd32.json` with initial GD32 MCU definitions keyed by device ID. The file maps series names and flash-size variants, and adds a probe rule to distinguish GD32F407 from GD32F450 for 0x0419 devices.
1 parent ea564b6 commit 6cada70

2 files changed

Lines changed: 31 additions & 1 deletion

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+
}

lib-board/.clangd

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)