Skip to content

Commit 42a1d86

Browse files
committed
[NUCLEO_L031K6] Add to build and export scripts
1 parent 39486f7 commit 42a1d86

File tree

8 files changed

+34
-10
lines changed

8 files changed

+34
-10
lines changed

workspace_tools/build_release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
('DISCO_L476VG', ('ARM', 'uARM', 'IAR', 'GCC_ARM')),
9797
('NUCLEO_L476RG', ('ARM', 'uARM', 'IAR', 'GCC_ARM')),
9898
('NUCLEO_F746ZG', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
99+
('NUCLEO_L031K6', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
99100
('NUCLEO_L073RZ', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
100101

101102
('MOTE_L152RC', ('ARM', 'uARM', 'IAR', 'GCC_ARM')),

workspace_tools/build_travis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
{ "target": "NUCLEO_F410RB", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "fat"] },
5454
{ "target": "NUCLEO_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp", "rtos", "fat"] },
5555
{ "target": "NUCLEO_L476RG", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
56+
{ "target": "NUCLEO_L031K6", "toolchains": "GCC_ARM", "libs": ["dsp"] },
5657
{ "target": "NUCLEO_L073RZ", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
5758
{ "target": "NUCLEO_F446RE", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
5859

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% extends "gcc_arm_common.tmpl" %}

workspace_tools/export/gccarm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class GccArm(Exporter):
8484
'NUCLEO_F334R8',
8585
'NUCLEO_F746ZG',
8686
'DISCO_L053C8',
87+
'NUCLEO_L031K6',
8788
'NUCLEO_L053R8',
8889
'NUCLEO_L073RZ',
8990
'NUCLEO_L476RG',

workspace_tools/export/sw4stm32.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Sw4STM32(Exporter):
4646
'NUCLEO_F401RE': {'name': 'NUCLEO-F401RE', 'mcuId': 'STM32F401RETx'},
4747
'NUCLEO_F411RE': {'name': 'NUCLEO-F411RE', 'mcuId': 'STM32F411RETx'},
4848
'NUCLEO_F446RE': {'name': 'NUCLEO-F446RE', 'mcuId': 'STM32F446RETx'},
49+
'NUCLEO_L031K6': {'name': 'NUCLEO-L031K6', 'mcuId': 'STM32L031K6Tx'},
4950
'NUCLEO_L053R8': {'name': 'NUCLEO-L053R8', 'mcuId': 'STM32L053R8Tx'},
5051
'NUCLEO_L073RZ': {'name': 'NUCLEO-L073RZ', 'mcuId': 'STM32L073RZTx'},
5152
'NUCLEO_L152RE': {'name': 'NUCLEO-L152RE', 'mcuId': 'STM32L152RETx'},

workspace_tools/export_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def test_export(toolchain, target, expected_error=None):
142142
('uvision', 'NUCLEO_F410RB'),
143143
('uvision', 'NUCLEO_F411RE'),
144144
('uvision', 'NUCLEO_F446RE'),
145+
('uvision', 'NUCLEO_L031K6'),
145146
('uvision', 'NUCLEO_L053R8'),
146147
('uvision', 'NUCLEO_L073RZ'),
147148
('uvision', 'NUCLEO_L152RE'),
@@ -208,6 +209,7 @@ def test_export(toolchain, target, expected_error=None):
208209
('gcc_arm', 'ELMO_F411RE'),
209210
('gcc_arm', 'DISCO_F469NI'),
210211
('gcc_arm', 'NUCLEO_F334R8'),
212+
('gcc_arm', 'NUCLEO_L031K6'),
211213
('gcc_arm', 'MAX32600MBED'),
212214
('gcc_arm', 'MTS_MDOT_F405RG'),
213215
('gcc_arm', 'MTS_MDOT_F411RE'),
@@ -254,6 +256,7 @@ def test_export(toolchain, target, expected_error=None):
254256
('iar', 'NUCLEO_F410RB'),
255257
('iar', 'NUCLEO_F411RE'),
256258
('iar', 'NUCLEO_F446RE'),
259+
('iar', 'NUCLEO_L031K6'),
257260
('iar', 'NUCLEO_L053R8'),
258261
('iar', 'NUCLEO_L073RZ'),
259262
('iar', 'NUCLEO_L152RE'),
@@ -300,6 +303,7 @@ def test_export(toolchain, target, expected_error=None):
300303
('sw4stm32', 'NUCLEO_F446RE'),
301304
('sw4stm32', 'NUCLEO_L053R8'),
302305
('sw4stm32', 'NUCLEO_L073RZ'),
306+
('sw4stm32', 'NUCLEO_L031K6'),
303307
('sw4stm32', 'NUCLEO_L152RE'),
304308
('sw4stm32', 'NUCLEO_L476RG'),
305309
('sw4stm32', 'NUCLEO_F031K6'),

workspace_tools/targets.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,19 @@ def __init__(self):
946946
}
947947
}
948948

949+
class NUCLEO_L031K6(Target):
950+
def __init__(self):
951+
Target.__init__(self)
952+
self.core = "Cortex-M0"
953+
self.extra_labels = ['STM', 'STM32L0', 'STM32L031K6']
954+
self.supported_toolchains = ["ARM", "uARM", "IAR", "GCC_ARM"]
955+
self.default_toolchain = "uARM"
956+
self.supported_form_factors = ["ARDUINO"]
957+
self.detect_code = ["0790"]
958+
self.progen = {
959+
"target":"nucleo-l031k6",
960+
}
961+
949962
class NUCLEO_L053R8(Target):
950963
def __init__(self):
951964
Target.__init__(self)
@@ -972,6 +985,7 @@ def __init__(self):
972985
"target":"nucleo-l073rz",
973986
}
974987

988+
975989
class NUCLEO_L152RE(Target):
976990
def __init__(self):
977991
Target.__init__(self)
@@ -1835,7 +1849,7 @@ def __init__(self):
18351849
self.macros = ['CMSDK_CM7']
18361850
self.supported_toolchains = ["ARM"]
18371851
self.default_toolchain = "ARM"
1838-
1852+
18391853
class ARM_IOTSS_Target(Target):
18401854
def __init__(self):
18411855
Target.__init__(self)
@@ -2157,6 +2171,7 @@ def __init__(self):
21572171
NUCLEO_F746ZG(),
21582172
ELMO_F411RE(),
21592173
NUCLEO_F446RE(),
2174+
NUCLEO_L031K6(),
21602175
NUCLEO_L053R8(),
21612176
NUCLEO_L073RZ(),
21622177
NUCLEO_L152RE(),
@@ -2264,7 +2279,7 @@ def __init__(self):
22642279
SAMD21G18A(),
22652280
SAML21J18A(),
22662281
SAMG55J19(),
2267-
2282+
22682283
]
22692284

22702285
# Map each target name to its unique instance

workspace_tools/tests.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@
680680
"KL25Z", "KL05Z", "K64F", "KL46Z",
681681
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
682682
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
683-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
683+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
684684
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
685685
},
686686
{
@@ -693,7 +693,7 @@
693693
"KL25Z", "KL05Z", "K64F", "KL46Z",
694694
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
695695
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
696-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
696+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
697697
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
698698
},
699699
{
@@ -706,7 +706,7 @@
706706
"KL25Z", "KL05Z", "K64F", "KL46Z",
707707
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
708708
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
709-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
709+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
710710
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
711711
},
712712
{
@@ -718,7 +718,7 @@
718718
"KL25Z", "KL05Z", "K64F", "KL46Z",
719719
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
720720
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
721-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
721+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
722722
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
723723
},
724724
{
@@ -730,7 +730,7 @@
730730
"KL25Z", "KL05Z", "K64F", "KL46Z",
731731
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
732732
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
733-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
733+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
734734
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
735735
},
736736
{
@@ -742,7 +742,7 @@
742742
"KL25Z", "KL05Z", "K64F", "KL46Z",
743743
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
744744
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
745-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
745+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
746746
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
747747
},
748748
{
@@ -756,7 +756,7 @@
756756
"KL25Z", "KL05Z", "K64F", "KL46Z",
757757
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
758758
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
759-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
759+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
760760
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
761761
},
762762
{
@@ -768,7 +768,7 @@
768768
"KL25Z", "KL05Z", "K64F", "KL46Z",
769769
"RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB",
770770
"NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB",
771-
"NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
771+
"NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "DISCO_L476VG", "NUCLEO_L476RG",
772772
"DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG", "MOTE_L152RC", "B96B_F446VE"],
773773
},
774774
{

0 commit comments

Comments
 (0)