Skip to content

Commit c9bf3ca

Browse files
committed
[NUCLEO_L011K4] Add to the build and export scripts
1 parent 062962a commit c9bf3ca

File tree

9 files changed

+20
-3
lines changed

9 files changed

+20
-3
lines changed

hal/targets.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,16 @@
839839
"detect_code": ["0816"],
840840
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"]
841841
},
842+
"NUCLEO_L011K4": {
843+
"inherits": ["Target"],
844+
"core": "Cortex-M0+",
845+
"extra_labels": ["STM", "STM32L0", "STM32L011K4"],
846+
"supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"],
847+
"default_toolchain": "uARM",
848+
"supported_form_factors": ["ARDUINO"],
849+
"detect_code": ["0780"],
850+
"progen": {"target":"nucleo-l011k4"}
851+
},
842852
"NUCLEO_L031K6": {
843853
"inherits": ["Target"],
844854
"core": "Cortex-M0",

tools/build_release.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
('DISCO_L476VG', ('ARM', 'uARM', 'IAR', 'GCC_ARM')),
9898
('NUCLEO_L476RG', ('ARM', 'uARM', 'IAR', 'GCC_ARM')),
9999
('NUCLEO_F746ZG', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
100+
('NUCLEO_L011K4', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
100101
('NUCLEO_L031K6', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
101102
('NUCLEO_L073RZ', ('ARM', 'uARM', 'GCC_ARM', 'IAR')),
102103

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_L011K4", "toolchains": "GCC_ARM", "libs": ["dsp"] },
5657
{ "target": "NUCLEO_L031K6", "toolchains": "GCC_ARM", "libs": ["dsp"] },
5758
{ "target": "NUCLEO_L073RZ", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },
5859
{ "target": "NUCLEO_F446RE", "toolchains": "GCC_ARM", "libs": ["dsp", "fat"] },

tools/export/coide.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class CoIDE(Exporter):
2929
'ARCH_PRO',
3030
'ARCH_MAX',
3131
'UBLOX_C027',
32+
'NUCLEO_L011K4',
3233
'NUCLEO_L053R8',
3334
'NUCLEO_L152RE',
3435
'NUCLEO_F030R8',

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_L011K4',
8788
'NUCLEO_L031K6',
8889
'NUCLEO_L053R8',
8990
'NUCLEO_L073RZ',

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_L011K4': {'name': 'NUCLEO-L011K4', 'mcuId': 'STM32L011K4Tx'},
4950
'NUCLEO_L031K6': {'name': 'NUCLEO-L031K6', 'mcuId': 'STM32L031K6Tx'},
5051
'NUCLEO_L053R8': {'name': 'NUCLEO-L053R8', 'mcuId': 'STM32L053R8Tx'},
5152
'NUCLEO_L073RZ': {'name': 'NUCLEO-L073RZ', 'mcuId': 'STM32L073RZTx'},

tools/export/uvision4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,3 @@ def generate(self):
8787
project_data['common']['macros'].append('__ASSERT_MSG')
8888
project_data['common']['build_dir'] = join(project_data['common']['build_dir'], 'uvision4')
8989
self.progen_gen_file('uvision', project_data)
90-

tools/export/uvision5.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ def generate(self):
8686
i += 1
8787
project_data['common']['macros'].append('__ASSERT_MSG')
8888
self.progen_gen_file('uvision5', project_data)
89-

tools/export_test.py

Lines changed: 5 additions & 1 deletion
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_L011K4'),
145146
('uvision', 'NUCLEO_L031K6'),
146147
('uvision', 'NUCLEO_L053R8'),
147148
('uvision', 'NUCLEO_L073RZ'),
@@ -209,6 +210,7 @@ def test_export(toolchain, target, expected_error=None):
209210
('gcc_arm', 'ELMO_F411RE'),
210211
('gcc_arm', 'DISCO_F469NI'),
211212
('gcc_arm', 'NUCLEO_F334R8'),
213+
('gcc_arm', 'NUCLEO_L011K4'),
212214
('gcc_arm', 'NUCLEO_L031K6'),
213215
('gcc_arm', 'MAX32600MBED'),
214216
('gcc_arm', 'MTS_MDOT_F405RG'),
@@ -257,6 +259,7 @@ def test_export(toolchain, target, expected_error=None):
257259
('iar', 'NUCLEO_F410RB'),
258260
('iar', 'NUCLEO_F411RE'),
259261
('iar', 'NUCLEO_F446RE'),
262+
('iar', 'NUCLEO_L011K4'),
260263
('iar', 'NUCLEO_L031K6'),
261264
('iar', 'NUCLEO_L053R8'),
262265
('iar', 'NUCLEO_L073RZ'),
@@ -302,9 +305,10 @@ def test_export(toolchain, target, expected_error=None):
302305
('sw4stm32', 'NUCLEO_F410RB'),
303306
('sw4stm32', 'NUCLEO_F411RE'),
304307
('sw4stm32', 'NUCLEO_F446RE'),
308+
('sw4stm32', 'NUCLEO_L011K4'),
309+
('sw4stm32', 'NUCLEO_L031K6'),
305310
('sw4stm32', 'NUCLEO_L053R8'),
306311
('sw4stm32', 'NUCLEO_L073RZ'),
307-
('sw4stm32', 'NUCLEO_L031K6'),
308312
('sw4stm32', 'NUCLEO_L152RE'),
309313
('sw4stm32', 'NUCLEO_L476RG'),
310314
('sw4stm32', 'NUCLEO_F031K6'),

0 commit comments

Comments
 (0)