Skip to content

Commit 61e41df

Browse files
committed
Add H417 series of chips, refactor board generator, add H417 ch32fun currently broken and WCH SDK example
1 parent b8a9d86 commit 61e41df

File tree

77 files changed

+128772
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+128772
-306
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- "examples/blinky-none-os"
2222
- "examples/blinky-none-os-ch5xx"
2323
- "examples/blinky-none-os-ch6xx"
24+
- "examples/blinky-none-os-h41x-dual"
2425
- "examples/ch32fun-blink"
2526
- "examples/ch32fun-oled"
2627
- "examples/ch32fun-rv003usb-composite-hid"

boards/ch32l103c8t6_evt_r0.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"harmony-liteos",
3737
"rt-thread",
3838
"tencent-os",
39+
"ch32v003fun",
3940
"arduino"
4041
],
4142
"name": "CH32L103C8T6-EVT-R0",

boards/ch32v003f4p6_evt_r0.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
},
3333
"frameworks": [
3434
"noneos-sdk",
35-
"arduino",
36-
"ch32v003fun"
35+
"ch32v003fun",
36+
"arduino"
3737
],
3838
"name": "CH32V003F4P6-EVT-R0",
3939
"upload": {

boards/ch32v307_evt.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"harmony-liteos",
3737
"rt-thread",
3838
"tencent-os",
39-
"arduino",
40-
"ch32v003fun"
39+
"ch32v003fun",
40+
"arduino"
4141
],
4242
"name": "CH32V307 EVT",
4343
"upload": {

boards/genericCH32H417MEU6.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"build": {
3+
"clock_source": "hsi+pll",
4+
"extra_flags": "-DCH32H417ME -DCH32H41X -DCH32H41x -DCH32H417",
5+
"f_cpu": "400000000L",
6+
"hwids": [
7+
[
8+
"0x1A86",
9+
"0x8010"
10+
]
11+
],
12+
"mabi": "ilp32",
13+
"march": "rv32imac_zba_zbb_zbc_zbs_xw",
14+
"mcu": "ch32h417meu6",
15+
"series": "ch32h417",
16+
"spl_series": "ch32h417"
17+
},
18+
"debug": {
19+
"onboard_tools": [
20+
"wch-link"
21+
],
22+
"openocd_config": "wch-dual-core.cfg",
23+
"svd_path": "CH32H417xx.svd"
24+
},
25+
"frameworks": [
26+
"noneos-sdk",
27+
"ch32v003fun"
28+
],
29+
"name": "Generic CH32H417MEU6",
30+
"upload": {
31+
"maximum_ram_size": 131072,
32+
"maximum_size": 983040,
33+
"protocol": "wch-link",
34+
"protocols": [
35+
"wch-link",
36+
"minichlink",
37+
"isp",
38+
"wlink"
39+
]
40+
},
41+
"url": "http://www.wch-ic.com/products/CH32H417.html",
42+
"vendor": "W.CH"
43+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"build": {
3+
"clock_source": "hsi+pll",
4+
"cpu_core": "v3f",
5+
"extra_flags": "-DCH32H417ME -DCH32H41X -DCH32H41x -DCH32H417 -DCore_V3F",
6+
"f_cpu": "400000000L",
7+
"hwids": [
8+
[
9+
"0x1A86",
10+
"0x8010"
11+
]
12+
],
13+
"mabi": "ilp32",
14+
"march": "rv32imac_zba_zbb_zbc_zbs_xw",
15+
"mcu": "ch32h417meu6",
16+
"series": "ch32h417",
17+
"spl_series": "ch32h417"
18+
},
19+
"debug": {
20+
"onboard_tools": [
21+
"wch-link"
22+
],
23+
"openocd_config": "wch-dual-core.cfg",
24+
"svd_path": "CH32H417xx.svd"
25+
},
26+
"frameworks": [
27+
"noneos-sdk",
28+
"ch32v003fun"
29+
],
30+
"name": "Generic CH32H417MEU6 (V3F Master)",
31+
"upload": {
32+
"maximum_ram_size": 131072,
33+
"maximum_size": 983040,
34+
"protocol": "wch-link",
35+
"protocols": [
36+
"wch-link",
37+
"minichlink",
38+
"isp",
39+
"wlink"
40+
]
41+
},
42+
"url": "http://www.wch-ic.com/products/CH32H417.html",
43+
"vendor": "W.CH"
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"build": {
3+
"clock_source": "hsi+pll",
4+
"cpu_core": "v5f",
5+
"extra_flags": "-DCH32H417ME -DCH32H41X -DCH32H41x -DCH32H417 -DCore_V5F",
6+
"f_cpu": "400000000L",
7+
"hwids": [
8+
[
9+
"0x1A86",
10+
"0x8010"
11+
]
12+
],
13+
"mabi": "ilp32",
14+
"march": "rv32imac_zba_zbb_zbc_zbs_xw",
15+
"mcu": "ch32h417meu6",
16+
"series": "ch32h417",
17+
"spl_series": "ch32h417"
18+
},
19+
"debug": {
20+
"onboard_tools": [
21+
"wch-link"
22+
],
23+
"openocd_config": "wch-dual-core.cfg",
24+
"svd_path": "CH32H417xx.svd"
25+
},
26+
"frameworks": [
27+
"noneos-sdk",
28+
"ch32v003fun"
29+
],
30+
"name": "Generic CH32H417MEU6 (V5F Slave)",
31+
"upload": {
32+
"maximum_ram_size": 131072,
33+
"maximum_size": 983040,
34+
"protocol": "wch-link",
35+
"protocols": [
36+
"wch-link",
37+
"minichlink",
38+
"isp",
39+
"wlink"
40+
]
41+
},
42+
"url": "http://www.wch-ic.com/products/CH32H417.html",
43+
"vendor": "W.CH"
44+
}

boards/genericCH32H417QEU6.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"build": {
3+
"clock_source": "hsi+pll",
4+
"extra_flags": "-DCH32H417QE -DCH32H41X -DCH32H41x -DCH32H417",
5+
"f_cpu": "400000000L",
6+
"hwids": [
7+
[
8+
"0x1A86",
9+
"0x8010"
10+
]
11+
],
12+
"mabi": "ilp32",
13+
"march": "rv32imac_zba_zbb_zbc_zbs_xw",
14+
"mcu": "ch32h417qeu6",
15+
"series": "ch32h417",
16+
"spl_series": "ch32h417"
17+
},
18+
"debug": {
19+
"onboard_tools": [
20+
"wch-link"
21+
],
22+
"openocd_config": "wch-dual-core.cfg",
23+
"svd_path": "CH32H417xx.svd"
24+
},
25+
"frameworks": [
26+
"noneos-sdk",
27+
"ch32v003fun"
28+
],
29+
"name": "Generic CH32H417QEU6",
30+
"upload": {
31+
"maximum_ram_size": 131072,
32+
"maximum_size": 983040,
33+
"protocol": "wch-link",
34+
"protocols": [
35+
"wch-link",
36+
"minichlink",
37+
"isp",
38+
"wlink"
39+
]
40+
},
41+
"url": "http://www.wch-ic.com/products/CH32H417.html",
42+
"vendor": "W.CH"
43+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"build": {
3+
"clock_source": "hsi+pll",
4+
"cpu_core": "v3f",
5+
"extra_flags": "-DCH32H417QE -DCH32H41X -DCH32H41x -DCH32H417 -DCore_V3F",
6+
"f_cpu": "400000000L",
7+
"hwids": [
8+
[
9+
"0x1A86",
10+
"0x8010"
11+
]
12+
],
13+
"mabi": "ilp32",
14+
"march": "rv32imac_zba_zbb_zbc_zbs_xw",
15+
"mcu": "ch32h417qeu6",
16+
"series": "ch32h417",
17+
"spl_series": "ch32h417"
18+
},
19+
"debug": {
20+
"onboard_tools": [
21+
"wch-link"
22+
],
23+
"openocd_config": "wch-dual-core.cfg",
24+
"svd_path": "CH32H417xx.svd"
25+
},
26+
"frameworks": [
27+
"noneos-sdk",
28+
"ch32v003fun"
29+
],
30+
"name": "Generic CH32H417QEU6 (V3F Master)",
31+
"upload": {
32+
"maximum_ram_size": 131072,
33+
"maximum_size": 983040,
34+
"protocol": "wch-link",
35+
"protocols": [
36+
"wch-link",
37+
"minichlink",
38+
"isp",
39+
"wlink"
40+
]
41+
},
42+
"url": "http://www.wch-ic.com/products/CH32H417.html",
43+
"vendor": "W.CH"
44+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"build": {
3+
"clock_source": "hsi+pll",
4+
"cpu_core": "v5f",
5+
"extra_flags": "-DCH32H417QE -DCH32H41X -DCH32H41x -DCH32H417 -DCore_V5F",
6+
"f_cpu": "400000000L",
7+
"hwids": [
8+
[
9+
"0x1A86",
10+
"0x8010"
11+
]
12+
],
13+
"mabi": "ilp32",
14+
"march": "rv32imac_zba_zbb_zbc_zbs_xw",
15+
"mcu": "ch32h417qeu6",
16+
"series": "ch32h417",
17+
"spl_series": "ch32h417"
18+
},
19+
"debug": {
20+
"onboard_tools": [
21+
"wch-link"
22+
],
23+
"openocd_config": "wch-dual-core.cfg",
24+
"svd_path": "CH32H417xx.svd"
25+
},
26+
"frameworks": [
27+
"noneos-sdk",
28+
"ch32v003fun"
29+
],
30+
"name": "Generic CH32H417QEU6 (V5F Slave)",
31+
"upload": {
32+
"maximum_ram_size": 131072,
33+
"maximum_size": 983040,
34+
"protocol": "wch-link",
35+
"protocols": [
36+
"wch-link",
37+
"minichlink",
38+
"isp",
39+
"wlink"
40+
]
41+
},
42+
"url": "http://www.wch-ic.com/products/CH32H417.html",
43+
"vendor": "W.CH"
44+
}

0 commit comments

Comments
 (0)