Skip to content

Commit a537775

Browse files
committed
[repo] Enable STM32H7 devices
1 parent 06ce8f0 commit a537775

File tree

5 files changed

+72
-5
lines changed

5 files changed

+72
-5
lines changed

.github/workflows/compile-all.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,3 +425,45 @@ jobs:
425425
with:
426426
name: stm32g4-compile-all-2
427427
path: test/all/log
428+
429+
stm32h7-compile-all-1:
430+
if: github.event.label.name == 'ci:hal'
431+
runs-on: ubuntu-20.04
432+
container:
433+
image: ghcr.io/modm-ext/modm-build-cortex-m:latest
434+
steps:
435+
- name: Check out repository
436+
uses: actions/checkout@v2
437+
- name: Checkout code and update modm tools
438+
run: |
439+
(git submodule sync && git submodule update --init --jobs 8) & pip3 install --upgrade --upgrade-strategy=eager modm & wait
440+
- name: Compile HAL for all STM32H7 Part 1
441+
run: |
442+
(cd test/all && python3 run_all.py stm32h7 --quick-remaining --split 2 --part 0)
443+
- name: Upload log artifacts
444+
if: always()
445+
uses: actions/upload-artifact@v2
446+
with:
447+
name: stm32h7-compile-all-1
448+
path: test/all/log
449+
450+
stm32h7-compile-all-2:
451+
if: github.event.label.name == 'ci:hal'
452+
runs-on: ubuntu-20.04
453+
container:
454+
image: ghcr.io/modm-ext/modm-build-cortex-m:latest
455+
steps:
456+
- name: Check out repository
457+
uses: actions/checkout@v2
458+
- name: Checkout code and update modm tools
459+
run: |
460+
(git submodule sync && git submodule update --init --jobs 8) & pip3 install --upgrade --upgrade-strategy=eager modm & wait
461+
- name: Compile HAL for all STM32H7 Part 2
462+
run: |
463+
(cd test/all && python3 run_all.py stm32h7 --quick-remaining --split 2 --part 1)
464+
- name: Upload log artifacts
465+
if: always()
466+
uses: actions/upload-artifact@v2
467+
with:
468+
name: stm32h7-compile-all-2
469+
path: test/all/log

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ git clone --recurse-submodules --jobs 8 https://github.com/modm-io/modm.git
7474

7575
## Microcontrollers
7676

77-
modm can create a HAL for <!--allcount-->3107<!--/allcount--> devices of these vendors:
77+
modm can create a HAL for <!--allcount-->3138<!--/allcount--> devices of these vendors:
7878

79-
- STMicroelectronics STM32: <!--stmcount-->2438<!--/stmcount--> devices.
79+
- STMicroelectronics STM32: <!--stmcount-->2593<!--/stmcount--> devices.
8080
- Microchip SAM: <!--samcount-->163<!--/samcount--> devices.
81-
- Microchip AVR: <!--avrcount-->506<!--/avrcount--> devices.
81+
- Microchip AVR: <!--avrcount-->382<!--/avrcount--> devices.
8282

8383
Here is a table with all device families and the peripheral drivers they support:
8484

@@ -95,7 +95,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
9595
<table>
9696
<tr>
9797
<th align="center"></th>
98-
<th align="center" colspan="11">STM32</th>
98+
<th align="center" colspan="12">STM32</th>
9999
<th align="center" colspan="1">SAM</th>
100100
<th align="center" colspan="3">AT</th>
101101
</tr><tr>
@@ -108,6 +108,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
108108
<th align="center">F7</th>
109109
<th align="center">G0</th>
110110
<th align="center">G4</th>
111+
<th align="center">H7</th>
111112
<th align="center">L0</th>
112113
<th align="center">L1</th>
113114
<th align="center">L4</th>
@@ -126,6 +127,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
126127
<td align="center">✅</td>
127128
<td align="center">✅</td>
128129
<td align="center">○</td>
130+
<td align="center">○</td>
129131
<td align="center">✅</td>
130132
<td align="center">✅</td>
131133
<td align="center">○</td>
@@ -142,6 +144,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
142144
<td align="center">✅</td>
143145
<td align="center">✗</td>
144146
<td align="center">✅</td>
147+
<td align="center">○</td>
145148
<td align="center">✗</td>
146149
<td align="center">✗</td>
147150
<td align="center">✅</td>
@@ -161,6 +164,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
161164
<td align="center">✅</td>
162165
<td align="center">○</td>
163166
<td align="center">○</td>
167+
<td align="center">○</td>
164168
<td align="center">✅</td>
165169
<td align="center">○</td>
166170
<td align="center">○</td>
@@ -179,6 +183,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
179183
<td align="center">✅</td>
180184
<td align="center">✅</td>
181185
<td align="center">✅</td>
186+
<td align="center">✅</td>
182187
<td align="center">○</td>
183188
<td align="center">✗</td>
184189
<td align="center">○</td>
@@ -193,6 +198,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
193198
<td align="center">○</td>
194199
<td align="center">✅</td>
195200
<td align="center">✅</td>
201+
<td align="center">○</td>
196202
<td align="center">✅</td>
197203
<td align="center">✅</td>
198204
<td align="center">✅</td>
@@ -210,6 +216,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
210216
<td align="center">✅</td>
211217
<td align="center">✗</td>
212218
<td align="center">✗</td>
219+
<td align="center">○</td>
213220
<td align="center">✗</td>
214221
<td align="center">✗</td>
215222
<td align="center">✗</td>
@@ -234,6 +241,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
234241
<td align="center">✅</td>
235242
<td align="center">✅</td>
236243
<td align="center">✅</td>
244+
<td align="center">✅</td>
237245
</tr><tr>
238246
<td align="left">External Memory</td>
239247
<td align="center">✗</td>
@@ -244,6 +252,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
244252
<td align="center">○</td>
245253
<td align="center">✗</td>
246254
<td align="center">○</td>
255+
<td align="center">○</td>
247256
<td align="center">✗</td>
248257
<td align="center">✗</td>
249258
<td align="center">○</td>
@@ -268,6 +277,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
268277
<td align="center">✅</td>
269278
<td align="center">✅</td>
270279
<td align="center">✅</td>
280+
<td align="center">✅</td>
271281
</tr><tr>
272282
<td align="left">I<sup>2</sup>C</td>
273283
<td align="center">✅</td>
@@ -281,6 +291,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
281291
<td align="center">✅</td>
282292
<td align="center">✅</td>
283293
<td align="center">✅</td>
294+
<td align="center">✅</td>
284295
<td align="center">○</td>
285296
<td align="center">✅</td>
286297
<td align="center">✅</td>
@@ -299,6 +310,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
299310
<td align="center">○</td>
300311
<td align="center">○</td>
301312
<td align="center">○</td>
313+
<td align="center">○</td>
302314
<td align="center">✗</td>
303315
<td align="center">✗</td>
304316
<td align="center">✗</td>
@@ -313,6 +325,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
313325
<td align="center">✅</td>
314326
<td align="center">✅</td>
315327
<td align="center">✅</td>
328+
<td align="center">✅</td>
316329
<td align="center">✗</td>
317330
<td align="center">✅</td>
318331
<td align="center">✗</td>
@@ -329,6 +342,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
329342
<td align="center">✅</td>
330343
<td align="center">✅</td>
331344
<td align="center">✅</td>
345+
<td align="center">○</td>
332346
<td align="center">✅</td>
333347
<td align="center">✅</td>
334348
<td align="center">✅</td>
@@ -350,6 +364,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
350364
<td align="center">✅</td>
351365
<td align="center">✅</td>
352366
<td align="center">✅</td>
367+
<td align="center">✅</td>
353368
<td align="center">✗</td>
354369
<td align="center">✗</td>
355370
<td align="center">✗</td>
@@ -366,6 +381,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
366381
<td align="center">✅</td>
367382
<td align="center">✅</td>
368383
<td align="center">✅</td>
384+
<td align="center">✅</td>
369385
<td align="center">○</td>
370386
<td align="center">○</td>
371387
<td align="center">○</td>
@@ -386,6 +402,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
386402
<td align="center">✅</td>
387403
<td align="center">✅</td>
388404
<td align="center">✅</td>
405+
<td align="center">✅</td>
389406
<td align="center">○</td>
390407
</tr><tr>
391408
<td align="left">Unique ID</td>
@@ -400,6 +417,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
400417
<td align="center">✅</td>
401418
<td align="center">✅</td>
402419
<td align="center">✅</td>
420+
<td align="center">✅</td>
403421
<td align="center">✗</td>
404422
<td align="center">✗</td>
405423
<td align="center">✗</td>
@@ -418,6 +436,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
418436
<td align="center">✅</td>
419437
<td align="center">✅</td>
420438
<td align="center">✅</td>
439+
<td align="center">✅</td>
421440
<td align="center">✗</td>
422441
<td align="center">✗</td>
423442
<td align="center">✗</td>

repo.lb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class DevicesCache(dict):
8383
# roughly filter to supported devices
8484
supported = ["stm32f0", "stm32f1", "stm32f2", "stm32f3", "stm32f4", "stm32f7",
8585
"stm32g0", "stm32g4",
86+
"stm32h7",
8687
"stm32l0", "stm32l1", "stm32l4",
8788
"at90", "attiny", "atmega",
8889
"samd21",

test/all/ignored.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,8 @@ samd21e16c-uu
111111
stm32g0b0
112112
stm32g0b1
113113
stm32g0c1
114+
# FIXME: Dual-core devices not supported yet
115+
stm32h745
116+
stm32h755
117+
stm32h747
118+
stm32h757

0 commit comments

Comments
 (0)