@typecad/framework-zephyr 1.0.0-alpha.13 → 1.0.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -35
- package/dist/as-built.d.ts +33 -0
- package/dist/as-built.js +188 -0
- package/dist/async/timer-polyfill.js +1 -1
- package/dist/boardgen.d.ts +128 -0
- package/dist/boardgen.js +1366 -0
- package/dist/chips/board-overrides.d.ts +7 -0
- package/dist/chips/board-overrides.js +11 -0
- package/dist/chips/controllers.d.ts +28 -8
- package/dist/chips/controllers.js +49 -12
- package/dist/chips/esp32s3.js +49 -0
- package/dist/chips/index.d.ts +6 -12
- package/dist/chips/index.js +18 -34
- package/dist/chips/resolve.d.ts +16 -2
- package/dist/chips/resolve.js +298 -15
- package/dist/chips/soc/.d.ts +2 -0
- package/dist/chips/soc/.js +129 -0
- package/dist/chips/soc/esp32.d.ts +2 -0
- package/dist/chips/soc/esp32.js +120 -0
- package/dist/chips/soc/esp32c3.d.ts +2 -0
- package/dist/chips/soc/esp32c3.js +90 -0
- package/dist/chips/soc/esp32c6.d.ts +2 -0
- package/dist/chips/soc/esp32c6.js +109 -0
- package/dist/chips/soc/esp32s3.d.ts +2 -0
- package/dist/chips/soc/esp32s3.js +189 -0
- package/dist/chips/soc/index.d.ts +2 -0
- package/dist/chips/soc/index.js +23 -0
- package/dist/chips/soc/nrf52840.d.ts +2 -0
- package/dist/chips/soc/nrf52840.js +130 -0
- package/dist/chips/soc/rp2040.d.ts +2 -0
- package/dist/chips/soc/rp2040.js +141 -0
- package/dist/chips/soc/rp2350a.d.ts +2 -0
- package/dist/chips/soc/rp2350a.js +145 -0
- package/dist/chips/soc/samd21g18a.d.ts +2 -0
- package/dist/chips/soc/samd21g18a.js +143 -0
- package/dist/chips/soc/stm32f411xe.d.ts +2 -0
- package/dist/chips/soc/stm32f411xe.js +251 -0
- package/dist/chips/types.d.ts +382 -12
- package/dist/chips/xiao-ble.js +33 -0
- package/dist/display/profiles.js +1 -1
- package/dist/doctor.js +38 -4
- package/dist/dt-config/custom-board.d.ts +23 -0
- package/dist/dt-config/custom-board.js +227 -0
- package/dist/dt-config/kconfig.d.ts +83 -1
- package/dist/dt-config/kconfig.js +116 -27
- package/dist/dt-config/overlay.js +623 -18
- package/dist/framework.manifest.d.ts +20 -30
- package/dist/framework.manifest.js +124 -178
- package/dist/index.d.ts +4 -1
- package/dist/index.js +8 -2
- package/dist/lowering/adc.d.ts +26 -5
- package/dist/lowering/adc.js +137 -31
- package/dist/lowering/ble.js +31 -28
- package/dist/lowering/dac.js +9 -9
- package/dist/lowering/fs.js +18 -10
- package/dist/lowering/gpio.d.ts +2 -0
- package/dist/lowering/gpio.js +90 -10
- package/dist/lowering/http.js +39 -14
- package/dist/lowering/hwtimer.d.ts +4 -0
- package/dist/lowering/hwtimer.js +35 -10
- package/dist/lowering/i2c.js +46 -54
- package/dist/lowering/index.d.ts +5 -5
- package/dist/lowering/index.js +15 -16
- package/dist/lowering/interrupts.d.ts +22 -5
- package/dist/lowering/interrupts.js +104 -22
- package/dist/lowering/mqtt.js +12 -6
- package/dist/lowering/power.js +0 -4
- package/dist/lowering/preferences.js +49 -77
- package/dist/lowering/pulse.js +5 -36
- package/dist/lowering/pwm.d.ts +32 -3
- package/dist/lowering/pwm.js +105 -17
- package/dist/lowering/random.js +3 -3
- package/dist/lowering/sensor.d.ts +37 -0
- package/dist/lowering/sensor.js +119 -0
- package/dist/lowering/spi.d.ts +12 -0
- package/dist/lowering/spi.js +65 -40
- package/dist/lowering/thread.d.ts +14 -0
- package/dist/lowering/thread.js +55 -0
- package/dist/lowering/timing.js +20 -46
- package/dist/lowering/tone.js +18 -5
- package/dist/lowering/uart.d.ts +13 -0
- package/dist/lowering/uart.js +72 -51
- package/dist/lowering/usb.d.ts +34 -0
- package/dist/lowering/usb.js +206 -0
- package/dist/lowering/wdt.d.ts +1 -1
- package/dist/lowering/wdt.js +17 -7
- package/dist/lowering/wifi.d.ts +3 -2
- package/dist/lowering/wifi.js +120 -111
- package/dist/sdk/board-catalog-sync.d.ts +16 -0
- package/dist/sdk/board-catalog-sync.js +41 -0
- package/dist/sdk/board-data.generated.d.ts +2 -0
- package/dist/sdk/board-data.generated.js +4 -0
- package/dist/sdk/catalog-walker.d.ts +90 -0
- package/dist/sdk/catalog-walker.js +682 -0
- package/dist/sdk/dts-reader.d.ts +83 -0
- package/dist/sdk/dts-reader.js +596 -0
- package/dist/strategy.d.ts +136 -17
- package/dist/strategy.js +881 -212
- package/dist/toolchain/bossac-touch.d.ts +18 -0
- package/dist/toolchain/bossac-touch.js +88 -0
- package/dist/toolchain/compat.d.ts +2 -2
- package/dist/toolchain/compat.js +8 -3
- package/dist/toolchain/debug-config.d.ts +21 -26
- package/dist/toolchain/debug-config.js +212 -72
- package/dist/toolchain/env-check.d.ts +4 -4
- package/dist/toolchain/env-check.js +5 -5
- package/dist/toolchain/index.d.ts +66 -1
- package/dist/toolchain/index.js +713 -58
- package/dist/toolchain/scaffold.d.ts +9 -0
- package/dist/toolchain/scaffold.js +84 -7
- package/dist/toolchain/west-discover.d.ts +8 -1
- package/dist/toolchain/west-discover.js +19 -6
- package/dist/toolchain/west-spawn.js +17 -5
- package/installer/CHANGELOG.md +473 -0
- package/installer/README.md +328 -0
- package/installer/environment.yml +46 -0
- package/installer/etc/conda/activate.d/zephyr.bat +7 -0
- package/installer/etc/conda/activate.d/zephyr.ps1 +12 -0
- package/installer/etc/conda/activate.d/zephyr.sh +20 -0
- package/installer/etc/conda/deactivate.d/zephyr.bat +6 -0
- package/installer/etc/conda/deactivate.d/zephyr.ps1 +6 -0
- package/installer/etc/conda/deactivate.d/zephyr.sh +4 -0
- package/installer/install.mjs +580 -0
- package/installer/install.ps1 +619 -0
- package/installer/install.sh +310 -0
- package/installer/lib/detect-platform.sh +62 -0
- package/installer/lib/fetch-sdk.sh +304 -0
- package/installer/lib/init-workspace.sh +153 -0
- package/installer/lib/write-activation.sh +76 -0
- package/installer/patches/tfm-c-include-separators.patch +19 -0
- package/installer/patches/zephyr-tfm-nordic-zephyr-include.patch +24 -0
- package/installer/templates/project/.typecad/activate-zephyr.ps1 +31 -0
- package/installer/templates/project/.typecad/activate-zephyr.sh +31 -0
- package/installer/templates/project/.vscode/settings.json +30 -0
- package/installer/templates/project/README.md +58 -0
- package/installer/versions.env +110 -0
- package/package.json +16 -16
- package/src/as-built.ts +206 -0
- package/src/boardgen.ts +1428 -0
- package/src/chips/controllers.ts +61 -12
- package/src/chips/index.ts +35 -54
- package/src/chips/resolve.ts +316 -14
- package/src/chips/types.ts +388 -13
- package/src/display/profiles.ts +1 -1
- package/src/doctor.ts +110 -77
- package/src/dt-config/custom-board.ts +325 -0
- package/src/dt-config/kconfig.ts +177 -19
- package/src/dt-config/overlay.ts +1058 -450
- package/src/framework.manifest.ts +125 -178
- package/src/index.ts +57 -41
- package/src/lowering/adc.ts +222 -102
- package/src/lowering/ble.ts +32 -28
- package/src/lowering/dac.ts +82 -82
- package/src/lowering/fs.ts +18 -10
- package/src/lowering/gpio.ts +242 -152
- package/src/lowering/http.ts +512 -488
- package/src/lowering/hwtimer.ts +139 -101
- package/src/lowering/i2c.ts +116 -126
- package/src/lowering/index.ts +91 -93
- package/src/lowering/interrupts.ts +113 -21
- package/src/lowering/mqtt.ts +12 -6
- package/src/lowering/preferences.ts +327 -354
- package/src/lowering/pwm.ts +167 -74
- package/src/lowering/random.ts +3 -3
- package/src/lowering/sensor.ts +155 -0
- package/src/lowering/spi.ts +164 -124
- package/src/lowering/thread.ts +63 -0
- package/src/lowering/timing.ts +46 -72
- package/src/lowering/uart.ts +73 -51
- package/src/lowering/usb.ts +221 -0
- package/src/lowering/wdt.ts +95 -84
- package/src/lowering/wifi.ts +120 -111
- package/src/sdk/board-catalog-sync.ts +62 -0
- package/src/strategy.ts +888 -229
- package/src/toolchain/bossac-touch.ts +112 -0
- package/src/toolchain/compat.ts +8 -3
- package/src/toolchain/debug-config.ts +666 -522
- package/src/toolchain/env-check.ts +9 -9
- package/src/toolchain/index.ts +765 -44
- package/src/toolchain/scaffold.ts +81 -7
- package/src/toolchain/west-discover.ts +334 -316
- package/src/toolchain/west-spawn.ts +17 -5
- package/src/async/timer-polyfill.ts +0 -107
- package/src/chips/esp32.ts +0 -74
- package/src/chips/esp32s3.ts +0 -57
- package/src/chips/xiao-ble.ts +0 -70
- package/src/lowering/power.ts +0 -70
- package/src/lowering/pulse.ts +0 -93
- package/src/lowering/tone.ts +0 -60
- package/src/lowering/worker-backing.ts +0 -94
- package/src/lowering/worker.ts +0 -17
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
+
// board-rp2350 + mcu-rp2350 package data (the exact flatten+reconstruct the build
|
|
3
|
+
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
+
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
+
// migration script was never committed).
|
|
6
|
+
export const RP2350A_SOC = {
|
|
7
|
+
"id": "rpi_pico2/rp2350a/m33",
|
|
8
|
+
"soc": "rp2350a",
|
|
9
|
+
"gpioController": "gpio0",
|
|
10
|
+
"gpio": {
|
|
11
|
+
"dtSpecs": [
|
|
12
|
+
{
|
|
13
|
+
"pin": 25,
|
|
14
|
+
"dtSpec": "led0"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"i2c": {
|
|
19
|
+
"controllers": [
|
|
20
|
+
{
|
|
21
|
+
"nodeLabel": "i2c0"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"nodeLabel": "i2c1"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"spi": {
|
|
29
|
+
"controllers": [
|
|
30
|
+
{
|
|
31
|
+
"nodeLabel": "spi0"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"nodeLabel": "spi1"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"uart": {
|
|
39
|
+
"controllers": [
|
|
40
|
+
{
|
|
41
|
+
"nodeLabel": "uart0"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"nodeLabel": "uart1",
|
|
45
|
+
"pinctrl": {
|
|
46
|
+
"include": "zephyr/dt-bindings/pinctrl/rpi-pico-rp2350a-pinctrl.h",
|
|
47
|
+
"pinmux": [
|
|
48
|
+
"UART1_TX_P22"
|
|
49
|
+
],
|
|
50
|
+
"inputPinmux": [
|
|
51
|
+
"UART1_RX_P23"
|
|
52
|
+
],
|
|
53
|
+
"defines": [
|
|
54
|
+
"RP2_PINCTRL_GPIO_FUNC_UART_ALT 11"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"props": [
|
|
58
|
+
"current-speed = <115200>;"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"pwm": {
|
|
64
|
+
"specs": [
|
|
65
|
+
{
|
|
66
|
+
"pin": 25,
|
|
67
|
+
"controller": "pwm",
|
|
68
|
+
"channel": 9
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"maxFrequencyHz": 75000000,
|
|
72
|
+
"resolutionBits": 16
|
|
73
|
+
},
|
|
74
|
+
"adc": {
|
|
75
|
+
"nodeLabel": "adc",
|
|
76
|
+
"resolution": 12,
|
|
77
|
+
"vrefMv": 3300,
|
|
78
|
+
"channels": [
|
|
79
|
+
{
|
|
80
|
+
"pin": 26,
|
|
81
|
+
"channel": 0
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"pin": 27,
|
|
85
|
+
"channel": 1
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"pin": 28,
|
|
89
|
+
"channel": 2
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"pin": 29,
|
|
93
|
+
"channel": 3
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"wdt": {
|
|
98
|
+
"nodeLabel": "wdt0"
|
|
99
|
+
},
|
|
100
|
+
"storage": {
|
|
101
|
+
"offset": 3145728,
|
|
102
|
+
"size": 1048576
|
|
103
|
+
},
|
|
104
|
+
"usb": {
|
|
105
|
+
"controller": "zephyr_udc0",
|
|
106
|
+
"cdcInstances": 1,
|
|
107
|
+
"vid": "0x2FE3",
|
|
108
|
+
"pid": "0x0005"
|
|
109
|
+
},
|
|
110
|
+
"consoleDescription": "uart0 on GP0 (TX) / GP1 (RX)",
|
|
111
|
+
"probeMethods": [
|
|
112
|
+
{
|
|
113
|
+
"id": "uf2",
|
|
114
|
+
"runner": "uf2",
|
|
115
|
+
"description": "BOOTSEL UF2 bootloader: hold BOOTSEL while plugging in USB (no debug)",
|
|
116
|
+
"debug": false
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "openocd",
|
|
120
|
+
"runner": "openocd",
|
|
121
|
+
"description": "Any CMSIS-DAP-class SWD probe on the SWD header (m33 core) — also debugs",
|
|
122
|
+
"debug": true,
|
|
123
|
+
"debugInterface": "swd",
|
|
124
|
+
"debugCfgSource": [
|
|
125
|
+
"interface/cmsis-dap.cfg",
|
|
126
|
+
"target/rp2350.cfg"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "jlink",
|
|
131
|
+
"runner": "jlink",
|
|
132
|
+
"description": "J-Link probe (SWD) — also debugs",
|
|
133
|
+
"debug": true,
|
|
134
|
+
"debugInterface": "swd",
|
|
135
|
+
"debugDevice": "RP2350_M33_0"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"tier": "validated",
|
|
139
|
+
"pinNaming": "rp-gpio",
|
|
140
|
+
"excludedPins": [
|
|
141
|
+
23,
|
|
142
|
+
24,
|
|
143
|
+
47
|
|
144
|
+
]
|
|
145
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
+
// board-nano-33-iot + mcu-samd21 package data (the exact flatten+reconstruct the build
|
|
3
|
+
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
+
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
+
// migration script was never committed).
|
|
6
|
+
export const SAMD21G18A_SOC = {
|
|
7
|
+
"id": "arduino_nano_33_iot/samd21g18a",
|
|
8
|
+
"soc": "samd21g18a",
|
|
9
|
+
"gpioController": "porta",
|
|
10
|
+
"gpioControllers": [
|
|
11
|
+
{
|
|
12
|
+
"nodelabel": "porta",
|
|
13
|
+
"minPin": 0,
|
|
14
|
+
"maxPin": 31
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"nodelabel": "portb",
|
|
18
|
+
"minPin": 32,
|
|
19
|
+
"maxPin": 55
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"gpio": {
|
|
23
|
+
"dtSpecs": [
|
|
24
|
+
{
|
|
25
|
+
"pin": 17,
|
|
26
|
+
"dtSpec": "led0"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"i2c": {
|
|
31
|
+
"controllers": [
|
|
32
|
+
{
|
|
33
|
+
"nodeLabel": "sercom4"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"spi": {
|
|
38
|
+
"controllers": [
|
|
39
|
+
{
|
|
40
|
+
"nodeLabel": "sercom1"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"uart": {
|
|
45
|
+
"controllers": [
|
|
46
|
+
{
|
|
47
|
+
"nodeLabel": "sercom5"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"pwm": {
|
|
52
|
+
"specs": [
|
|
53
|
+
{
|
|
54
|
+
"pin": 17,
|
|
55
|
+
"dtSpec": "pwm-led0"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"maxFrequencyHz": 46875,
|
|
59
|
+
"resolutionBits": 16
|
|
60
|
+
},
|
|
61
|
+
"adc": {
|
|
62
|
+
"nodeLabel": "adc",
|
|
63
|
+
"resolution": 12,
|
|
64
|
+
"vrefMv": 1650,
|
|
65
|
+
"channels": [
|
|
66
|
+
{
|
|
67
|
+
"pin": 2,
|
|
68
|
+
"channel": 0
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"pin": 40,
|
|
72
|
+
"channel": 2
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"pin": 41,
|
|
76
|
+
"channel": 3
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"pin": 34,
|
|
80
|
+
"channel": 10
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"pin": 9,
|
|
84
|
+
"channel": 17
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"pin": 10,
|
|
88
|
+
"channel": 18
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"pin": 11,
|
|
92
|
+
"channel": 19
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"gain": "ADC_GAIN_1",
|
|
96
|
+
"reference": "ADC_REF_VDD_1_2"
|
|
97
|
+
},
|
|
98
|
+
"usb": {
|
|
99
|
+
"controller": "zephyr_udc0",
|
|
100
|
+
"cdcInstances": 1,
|
|
101
|
+
"vid": "0x2FE3",
|
|
102
|
+
"pid": "0x0003",
|
|
103
|
+
"touchReset": {
|
|
104
|
+
"flagAddress": 536903676,
|
|
105
|
+
"magic": 125010229,
|
|
106
|
+
"bootloaderVid": "0x2341",
|
|
107
|
+
"bootloaderPid": "0x0057"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"consoleDescription": "sercom5 on PB22 (TX, D1) / PB23 (RX, D0) at 115200",
|
|
111
|
+
"probeMethods": [
|
|
112
|
+
{
|
|
113
|
+
"id": "bossac",
|
|
114
|
+
"runner": "bossac",
|
|
115
|
+
"description": "Built-in USB bootloader: double-tap reset, flash over the USB port (no debug)",
|
|
116
|
+
"debug": false
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "openocd",
|
|
120
|
+
"runner": "openocd",
|
|
121
|
+
"description": "Any CMSIS-DAP-class SWD probe on the underside SWD pads — also debugs",
|
|
122
|
+
"debug": true,
|
|
123
|
+
"debugInterface": "swd",
|
|
124
|
+
"debugCfg": [
|
|
125
|
+
"reset_config none"
|
|
126
|
+
],
|
|
127
|
+
"debugCfgSource": [
|
|
128
|
+
"interface/cmsis-dap.cfg",
|
|
129
|
+
"target/at91samd.cfg"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "jlink",
|
|
134
|
+
"runner": "jlink",
|
|
135
|
+
"description": "J-Link probe (SWD) on the underside SWD pads — also debugs",
|
|
136
|
+
"debug": true,
|
|
137
|
+
"debugInterface": "swd",
|
|
138
|
+
"debugDevice": "ATSAMD21G18"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"tier": "validated",
|
|
142
|
+
"pinNaming": "samd-port"
|
|
143
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
// Hand-maintained descriptor table — mechanically migrated from the
|
|
2
|
+
// board-blackpill-f411ce + mcu-stm32f411 package data (the exact flatten+reconstruct the build
|
|
3
|
+
// performed). Curated additions: tier/pinNaming/excludedPins. Regenerate
|
|
4
|
+
// only alongside a descriptor-type change (edit this file; the original
|
|
5
|
+
// migration script was never committed).
|
|
6
|
+
export const STM32F411XE_SOC = {
|
|
7
|
+
"id": "blackpill_f411ce/stm32f411xe",
|
|
8
|
+
"soc": "stm32f411xe",
|
|
9
|
+
"gpioController": "gpioa",
|
|
10
|
+
"gpioControllers": [
|
|
11
|
+
{
|
|
12
|
+
"nodelabel": "gpioa",
|
|
13
|
+
"minPin": 0,
|
|
14
|
+
"maxPin": 15
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"nodelabel": "gpiob",
|
|
18
|
+
"minPin": 16,
|
|
19
|
+
"maxPin": 31
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"nodelabel": "gpioc",
|
|
23
|
+
"minPin": 32,
|
|
24
|
+
"maxPin": 47
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"gpio": {
|
|
28
|
+
"dtSpecs": [
|
|
29
|
+
{
|
|
30
|
+
"pin": 45,
|
|
31
|
+
"dtSpec": "led0"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"pin": 0,
|
|
35
|
+
"dtSpec": "sw0"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"interruptPins": [
|
|
39
|
+
{
|
|
40
|
+
"pin": 0,
|
|
41
|
+
"dtSpec": "sw0"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"i2c": {
|
|
46
|
+
"controllers": [
|
|
47
|
+
{
|
|
48
|
+
"nodeLabel": "i2c1"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"spi": {
|
|
53
|
+
"controllers": [
|
|
54
|
+
{
|
|
55
|
+
"nodeLabel": "spi1"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"uart": {
|
|
60
|
+
"controllers": [
|
|
61
|
+
{
|
|
62
|
+
"nodeLabel": "usart1"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"pwm": {
|
|
67
|
+
"specs": [
|
|
68
|
+
{
|
|
69
|
+
"pin": 22,
|
|
70
|
+
"controller": "pwm4",
|
|
71
|
+
"channel": 1,
|
|
72
|
+
"periodNs": 20000000,
|
|
73
|
+
"pinctrl": "tim4_ch1_pb6"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"pin": 23,
|
|
77
|
+
"controller": "pwm4",
|
|
78
|
+
"channel": 2,
|
|
79
|
+
"periodNs": 20000000,
|
|
80
|
+
"pinctrl": "tim4_ch2_pb7"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"clockHz": 96000000,
|
|
84
|
+
"maxFrequencyHz": 50000000,
|
|
85
|
+
"resolutionBits": 16
|
|
86
|
+
},
|
|
87
|
+
"adc": {
|
|
88
|
+
"nodeLabel": "adc1",
|
|
89
|
+
"resolution": 12,
|
|
90
|
+
"vrefMv": 3300,
|
|
91
|
+
"channels": [
|
|
92
|
+
{
|
|
93
|
+
"pin": 0,
|
|
94
|
+
"channel": 0,
|
|
95
|
+
"pinctrl": "adc1_in0_pa0"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"pin": 1,
|
|
99
|
+
"channel": 1,
|
|
100
|
+
"pinctrl": "adc1_in1_pa1"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"pin": 2,
|
|
104
|
+
"channel": 2,
|
|
105
|
+
"pinctrl": "adc1_in2_pa2"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"pin": 3,
|
|
109
|
+
"channel": 3,
|
|
110
|
+
"pinctrl": "adc1_in3_pa3"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"pin": 4,
|
|
114
|
+
"channel": 4,
|
|
115
|
+
"pinctrl": "adc1_in4_pa4"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"pin": 5,
|
|
119
|
+
"channel": 5,
|
|
120
|
+
"pinctrl": "adc1_in5_pa5"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"pin": 6,
|
|
124
|
+
"channel": 6,
|
|
125
|
+
"pinctrl": "adc1_in6_pa6"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"pin": 7,
|
|
129
|
+
"channel": 7,
|
|
130
|
+
"pinctrl": "adc1_in7_pa7"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"pin": 16,
|
|
134
|
+
"channel": 8,
|
|
135
|
+
"pinctrl": "adc1_in8_pb0"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"pin": 17,
|
|
139
|
+
"channel": 9,
|
|
140
|
+
"pinctrl": "adc1_in9_pb1"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"gain": "ADC_GAIN_1",
|
|
144
|
+
"reference": "ADC_REF_INTERNAL"
|
|
145
|
+
},
|
|
146
|
+
"wdt": {
|
|
147
|
+
"nodeLabel": "iwdg"
|
|
148
|
+
},
|
|
149
|
+
"storage": {
|
|
150
|
+
"offset": 262144,
|
|
151
|
+
"size": 262144
|
|
152
|
+
},
|
|
153
|
+
"usb": {
|
|
154
|
+
"controller": "zephyr_udc0",
|
|
155
|
+
"cdcInstances": 1,
|
|
156
|
+
"vid": "0x2FE3",
|
|
157
|
+
"pid": "0x0002"
|
|
158
|
+
},
|
|
159
|
+
"consoleDescription": "usart1 on PA9 (TX) / PA10 (RX)",
|
|
160
|
+
"probeMethods": [
|
|
161
|
+
{
|
|
162
|
+
"id": "stlink",
|
|
163
|
+
"runner": "openocd",
|
|
164
|
+
"args": [
|
|
165
|
+
"--cmd-pre-init=reset_config none"
|
|
166
|
+
],
|
|
167
|
+
"description": "ST-Link or any SWD probe openocd supports (no BOOT0 needed)",
|
|
168
|
+
"debug": true,
|
|
169
|
+
"debugInterface": "swd",
|
|
170
|
+
"debugCfg": [
|
|
171
|
+
"reset_config none"
|
|
172
|
+
],
|
|
173
|
+
"debugCfgSource": [
|
|
174
|
+
"interface/stlink.cfg",
|
|
175
|
+
"target/stm32f4x.cfg"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "stlink-srst",
|
|
180
|
+
"runner": "openocd",
|
|
181
|
+
"args": [
|
|
182
|
+
"--cmd-pre-init=reset_config srst_only srst_nogate connect_assert_srst"
|
|
183
|
+
],
|
|
184
|
+
"description": "ST-Link with the RST/SRST line wired — connect under reset (recovers wedged targets)",
|
|
185
|
+
"debug": true,
|
|
186
|
+
"debugInterface": "swd",
|
|
187
|
+
"debugCfg": [
|
|
188
|
+
"reset_config srst_only srst_nogate connect_assert_srst"
|
|
189
|
+
],
|
|
190
|
+
"debugCfgSource": [
|
|
191
|
+
"interface/stlink.cfg",
|
|
192
|
+
"target/stm32f4x.cfg"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "dfu",
|
|
197
|
+
"runner": "dfu-util",
|
|
198
|
+
"description": "Built-in USB bootloader: hold BOOT0, tap reset",
|
|
199
|
+
"debug": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "jlink",
|
|
203
|
+
"runner": "jlink",
|
|
204
|
+
"description": "J-Link probe (SWD)",
|
|
205
|
+
"debug": true,
|
|
206
|
+
"debugInterface": "swd",
|
|
207
|
+
"debugDevice": "STM32F411CE"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"customBoard": {
|
|
211
|
+
"socs": [
|
|
212
|
+
"stm32f411xe"
|
|
213
|
+
],
|
|
214
|
+
"dtsIncludes": [
|
|
215
|
+
"st/f4/stm32f411Xe.dtsi",
|
|
216
|
+
"st/f4/stm32f411c(c-e)ux-pinctrl.dtsi"
|
|
217
|
+
],
|
|
218
|
+
"console": {
|
|
219
|
+
"nodeLabel": "usart1",
|
|
220
|
+
"tx": "usart1_tx_pa9",
|
|
221
|
+
"rx": "usart1_rx_pa10",
|
|
222
|
+
"speed": 115200
|
|
223
|
+
},
|
|
224
|
+
"clocks": {
|
|
225
|
+
"hseMHz": 25,
|
|
226
|
+
"pll": {
|
|
227
|
+
"divM": 25,
|
|
228
|
+
"mulN": 192,
|
|
229
|
+
"divP": 2,
|
|
230
|
+
"divQ": 4
|
|
231
|
+
},
|
|
232
|
+
"sysMHz": 96,
|
|
233
|
+
"ahbPrescaler": 1,
|
|
234
|
+
"apb1Prescaler": 2,
|
|
235
|
+
"apb2Prescaler": 1
|
|
236
|
+
},
|
|
237
|
+
"usbNode": "usbotg_fs",
|
|
238
|
+
"usbPinctrl": [
|
|
239
|
+
"usb_otg_fs_dm_pa11",
|
|
240
|
+
"usb_otg_fs_dp_pa12"
|
|
241
|
+
],
|
|
242
|
+
"adcNode": {
|
|
243
|
+
"nodeLabel": "adc1",
|
|
244
|
+
"clockSource": "SYNC",
|
|
245
|
+
"prescaler": 2,
|
|
246
|
+
"pinctrl": "adc1_in1_pa1"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"tier": "validated",
|
|
250
|
+
"pinNaming": "stm32-port"
|
|
251
|
+
};
|