Skip to content

Commit 2301258

Browse files
committed
[dfg] Add STM32L5 devices
1 parent b944bf6 commit 2301258

File tree

6 files changed

+37
-14
lines changed

6 files changed

+37
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ These tools and this data set is maintained and curated by
1212
[@salkinium][] only at [modm-io/modm-devices][modm-devices].
1313
It is licensed under the MPLv2 license.
1414

15-
Currently data for <!--devicecount-->3752<!--/devicecount--> devices is available.
15+
Currently data for <!--devicecount-->3796<!--/devicecount--> devices is available.
1616
Please open an issue or better yet a pull request for additional support.
1717

1818
<!--devicetable-->
@@ -24,8 +24,8 @@ Please open an issue or better yet a pull request for additional support.
2424
| STM32F1 | 174 | STM32F2 | 71 | STM32F3 | 145 |
2525
| STM32F4 | 354 | STM32F7 | 181 | STM32G0 | 262 |
2626
| STM32G4 | 309 | STM32H7 | 206 | STM32L0 | 354 |
27-
| STM32L1 | 180 | STM32L4 | 417 | STM32U5 | 61 |
28-
| STM32WB | 37 | STM32WL | 27 |
27+
| STM32L1 | 180 | STM32L4 | 417 | STM32L5 | 44 |
28+
| STM32U5 | 61 | STM32WB | 37 | STM32WL | 27 |
2929
<!--/devicetable-->
3030

3131

tools/generator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ generate-stm32%: raw-device-data/stm32-devices ext/cmsis-5-partial ext/cmsis-hea
7373
generate-stm32: generate-stm32f0 generate-stm32f1 generate-stm32f2 generate-stm32f3 \
7474
generate-stm32f4 generate-stm32f7 generate-stm32g0 generate-stm32g4 \
7575
generate-stm32h7 generate-stm32l0 generate-stm32l1 generate-stm32l4 \
76-
generate-stm32wb generate-stm32wl generate-stm32u5
76+
generate-stm32l5 generate-stm32wb generate-stm32wl generate-stm32u5

tools/generator/dfg/stm32/stm.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ def getGpioRemapForModuleConfig(module, config):
162162
1200: [16, 32, 48, 64, 80],
163163
1000: [6, 12, 18, 26]
164164
}],
165+
'l5': {
166+
1280: [20, 40, 60, 80, 110], # Vcore range 0
167+
1200: [20, 40, 60, 80], # Vcore range 1
168+
1000: [8, 16, 26], # Vcore range 2
169+
},
165170
'g0': {
166171
1200: [24, 48, 64],
167172
1000: [8, 16]
@@ -680,6 +685,18 @@ def getDmaRemap(did, dma, channel, driver, inst, signal):
680685
}
681686
]
682687
},
688+
'l5': {
689+
'start': {
690+
'flash': 0x08000000,
691+
'sram': 0x20000000
692+
},
693+
'model': [
694+
{
695+
'name': ['52', '62'],
696+
'memories': {'flash': 0, 'sram1': 0, 'sram2': 64*1024}
697+
}
698+
]
699+
},
683700
'wb': {
684701
'start': {
685702
'flash': 0x08000000,

tools/generator/dfg/stm32/stm_device_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _properties_from_partname(partname):
7373

7474
@staticmethod
7575
def _properties_from_id(comboDeviceName, device_file, did, core):
76-
if core.endswith("m4") or core.endswith("m7"):
76+
if core.endswith("m4") or core.endswith("m7") or core.endswith("m33"):
7777
core += "f"
7878
if did.family in ["h7"] or (did.family in ["f7"] and did.name not in ["45", "46", "56"]):
7979
core += "d"

tools/generator/dfg/stm32/stm_groups.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@
330330
'name': ['q5']
331331
},
332332

333+
# STM32L5 devices
334+
{
335+
'family': ['l5'],
336+
'name': ['52', '62']
337+
},
338+
333339
# STM32WB devices
334340
{
335341
'family': ['wb'],

tools/generator/dfg/stm32/stm_peripherals.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'hardware': 'stm32-f3',
3535
'features': [],
3636
'protocols': ['analog-in'],
37-
'devices': [{'family': ['f3', 'l4', 'g4', 'wb']}]
37+
'devices': [{'family': ['f3', 'l4', 'l5', 'g4', 'wb']}]
3838
},{
3939
'hardware': 'stm32-h7',
4040
'features': [],
@@ -101,7 +101,7 @@
101101
'hardware': 'stm32',
102102
'features': ['polynomial', 'reverse'],
103103
'protocols': ['crc32'],
104-
'devices': [{'family': ['f0', 'f3', 'f7', 'h7']}]
104+
'devices': [{'family': ['f0', 'f3', 'f7', 'h7', 'l5']}]
105105
},{
106106
# Custom polynomial and reverse data
107107
'hardware': 'stm32',
@@ -159,7 +159,7 @@
159159
'hardware': 'stm32',
160160
'features': ['window'],
161161
'protocols': [],
162-
'devices': [{'family': ['f0', 'f3', 'f7', 'g0', 'g4', 'wb']}]
162+
'devices': [{'family': ['f0', 'f3', 'f7', 'g0', 'g4', 'l5', 'wb']}]
163163
},{
164164
'hardware': 'stm32',
165165
'features': [],
@@ -175,7 +175,7 @@
175175
'hardware': 'stm32',
176176
'features': ['data-size', 'nss-pulse', 'fifo'],
177177
'protocols': [],
178-
'devices': [{'family': ['f0', 'g0', 'f3', 'f7', 'l4', 'g4', 'wb']}]
178+
'devices': [{'family': ['f0', 'g0', 'f3', 'f7', 'l4', 'l5', 'g4', 'wb']}]
179179
},{
180180
'hardware': 'stm32-extended',
181181
'features': [],
@@ -299,7 +299,7 @@
299299
'hardware': 'stm32',
300300
'features': ['exti', 'sram2-wp', 'cfgr2', 'imr'],
301301
'protocols': [],
302-
'devices': [{'family': ['wb']}]
302+
'devices': [{'family': ['l5', 'wb']}]
303303
},{
304304
'hardware': 'stm32',
305305
'features': ['exti', 'cfgr2', 'itline'],
@@ -388,7 +388,7 @@
388388
'hardware': 'stm32-extended',
389389
'features': ['dnf', 'fmp'],
390390
'protocols': ['i2c-v3.0', 'smb-v2.0', 'pmb-v1.1'],
391-
'devices': [{'family': ['f3', 'f7', 'l4', 'h7', 'g4', 'wb']}]
391+
'devices': [{'family': ['f3', 'f7', 'l4', 'l5', 'h7', 'g4', 'wb']}]
392392
}
393393
]
394394
},{
@@ -400,7 +400,7 @@
400400
'hardware': 'stm32-extended',
401401
'features': ['dnf', 'fmp'],
402402
'protocols': ['i2c-v3.0', 'smb-v2.0', 'pmb-v1.1'],
403-
'devices': [{'family': ['f0', 'g0', 'f3', 'f7', 'l0', 'l4', 'h7', 'g4', 'wb']}]
403+
'devices': [{'family': ['f0', 'g0', 'f3', 'f7', 'l0', 'l4', 'l5', 'h7', 'g4', 'wb']}]
404404
}
405405
]
406406
}
@@ -417,7 +417,7 @@
417417
'hardware': 'stm32-extended',
418418
'features': ['tcbgt'],
419419
'protocols': ['uart'],
420-
'devices': [{'family': ['l4'], 'name': ['p5', 'p7', 'p9', 'q5', 'q7', 'q9', 'r5', 'r7', 'r9', 's5', 's7', 's9']}, {'family': ['g0', 'g4', 'wb', 'h7']}]
420+
'devices': [{'family': ['l4'], 'name': ['p5', 'p7', 'p9', 'q5', 'q7', 'q9', 'r5', 'r7', 'r9', 's5', 's7', 's9']}, {'family': ['g0', 'g4', 'wb', 'h7', 'l5']}]
421421
},{
422422
'hardware': 'stm32-extended',
423423
'features': [],
@@ -448,7 +448,7 @@
448448
'hardware': 'stm32-extended',
449449
'features': ['tcbgt'],
450450
'protocols': ['uart', 'spi'],
451-
'devices': [{'family': ['l4'], 'name': ['p5', 'p7', 'p9', 'q5', 'q7', 'q9', 'r5', 'r7', 'r9', 's5', 's7', 's9']}, {'family': ['g0', 'g4', 'wb', 'h7']}]
451+
'devices': [{'family': ['l4'], 'name': ['p5', 'p7', 'p9', 'q5', 'q7', 'q9', 'r5', 'r7', 'r9', 's5', 's7', 's9']}, {'family': ['g0', 'g4', 'wb', 'h7', 'l5']}]
452452
},{
453453
'hardware': 'stm32-extended',
454454
'features': [],

0 commit comments

Comments
 (0)