@@ -1228,20 +1228,20 @@ def __init__(self):
1228
1228
self .core = "Cortex-M0"
1229
1229
self .extra_labels = ["NORDIC" , "MCU_NRF51" , "MCU_NRF51822" ]
1230
1230
self .macros = ['NRF51' , 'TARGET_NRF51822' ]
1231
- self .supported_toolchains = ["ARM" , "GCC_ARM" , "IAR" ]
1231
+ self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1232
1232
self .is_disk_virtual = True
1233
1233
self .detect_code = ["1070" ]
1234
1234
1235
1235
def program_cycle_s (self ):
1236
1236
return 6
1237
1237
1238
1238
def init_hooks (self , hook , toolchain_name ):
1239
- if toolchain_name in ['ARM_STD' , 'ARM_MICRO' , ' GCC_ARM' , 'IAR ' ]:
1239
+ if toolchain_name in ['ARM_STD' , 'GCC_ARM' ]:
1240
1240
hook .hook_add_binary ("post" , self .binary_hook )
1241
1241
1242
1242
@staticmethod
1243
1243
def binary_hook (t_self , resources , elf , binf ):
1244
-
1244
+
1245
1245
# Scan to find the actual paths of soft device
1246
1246
sdf = None
1247
1247
for softdeviceAndOffsetEntry in t_self .target .EXPECTED_SOFTDEVICES_WITH_OFFSETS :
@@ -1256,7 +1256,7 @@ def binary_hook(t_self, resources, elf, binf):
1256
1256
if sdf is None :
1257
1257
t_self .debug ("Hex file not found. Aborting." )
1258
1258
return
1259
-
1259
+
1260
1260
# Look for bootloader file that matches this soft device or bootloader override image
1261
1261
blf = None
1262
1262
if t_self .target .MERGE_BOOTLOADER is True :
@@ -1288,7 +1288,7 @@ def binary_hook(t_self, resources, elf, binf):
1288
1288
with open (binf .replace (".bin" , ".hex" ), "w" ) as f :
1289
1289
binh .tofile (f , format = 'hex' )
1290
1290
1291
-
1291
+
1292
1292
# 16KB Nordic targets are tight on SRAM using S130 (default) so we
1293
1293
# introduce two possible options:
1294
1294
# 1) Use S130 (default) - for this derive from MCU_NRF51_16K
@@ -1565,7 +1565,6 @@ def __init__(self):
1565
1565
class DELTA_DFCM_NNN40 (MCU_NRF51_32K ):
1566
1566
def __init__ (self ):
1567
1567
MCU_NRF51_32K .__init__ (self )
1568
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1569
1568
self .macros += ['TARGET_NRF_LFCLK_RC' ]
1570
1569
self .progen = {
1571
1570
"target" :"dfcm-nnn40" ,
@@ -1576,7 +1575,6 @@ def program_cycle_s(self):
1576
1575
class DELTA_DFCM_NNN40_BOOT (MCU_NRF51_32K_BOOT ):
1577
1576
def __init__ (self ):
1578
1577
MCU_NRF51_32K_BOOT .__init__ (self )
1579
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1580
1578
self .extra_labels += ['DELTA_DFCM_NNN40' ]
1581
1579
self .macros += ['TARGET_DELTA_DFCM_NNN40' , 'TARGET_NRF_LFCLK_RC' ]
1582
1580
def program_cycle_s (self ):
@@ -1585,7 +1583,6 @@ def program_cycle_s(self):
1585
1583
class DELTA_DFCM_NNN40_OTA (MCU_NRF51_32K_OTA ):
1586
1584
def __init__ (self ):
1587
1585
MCU_NRF51_32K_OTA .__init__ (self )
1588
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1589
1586
self .extra_labels += ['DELTA_DFCM_NNN40' ]
1590
1587
self .macros += ['TARGET_DELTA_DFCM_NNN40' , 'TARGET_NRF_LFCLK_RC' ]
1591
1588
def program_cycle_s (self ):
@@ -1594,7 +1591,6 @@ def program_cycle_s(self):
1594
1591
class NRF51_DK (MCU_NRF51_32K ):
1595
1592
def __init__ (self ):
1596
1593
MCU_NRF51_32K .__init__ (self )
1597
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1598
1594
self .supported_form_factors = ["ARDUINO" ]
1599
1595
self .progen = {
1600
1596
"target" :"nrf51-dk" ,
@@ -1605,15 +1601,13 @@ def __init__(self):
1605
1601
MCU_NRF51_32K_BOOT .__init__ (self )
1606
1602
self .extra_labels += ['NRF51_DK' ]
1607
1603
self .macros += ['TARGET_NRF51_DK' ]
1608
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1609
1604
self .supported_form_factors = ["ARDUINO" ]
1610
1605
1611
1606
class NRF51_DK_OTA (MCU_NRF51_32K_OTA ):
1612
1607
def __init__ (self ):
1613
1608
MCU_NRF51_32K_OTA .__init__ (self )
1614
1609
self .extra_labels += ['NRF51_DK' ]
1615
1610
self .macros += ['TARGET_NRF51_DK' ]
1616
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1617
1611
self .supported_form_factors = ["ARDUINO" ]
1618
1612
1619
1613
class NRF51_DONGLE (MCU_NRF51_32K ):
@@ -1690,7 +1684,7 @@ def __init__(self):
1690
1684
self .macros += ['TARGET_TY51822R3' , 'TARGET_NRF_32MHZ_XTAL' ]
1691
1685
self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1692
1686
1693
-
1687
+
1694
1688
### ARM ###
1695
1689
1696
1690
class ARM_MPS2_Target (Target ):
@@ -1750,7 +1744,7 @@ def __init__(self):
1750
1744
self .macros = ['CMSDK_CM7' ]
1751
1745
self .supported_toolchains = ["ARM" ]
1752
1746
self .default_toolchain = "ARM"
1753
-
1747
+
1754
1748
class ARM_MPS2_BEID (ARM_MPS2_Target ):
1755
1749
def __init__ (self ):
1756
1750
ARM_MPS2_Target .__init__ (self )
@@ -1797,7 +1791,7 @@ def __init__(self):
1797
1791
self .supported_toolchains = ["GCC_ARM" , "IAR" , "ARM" ]
1798
1792
self .default_toolchain = "ARM"
1799
1793
self .progen = {
1800
- "target" : "maxwsnenv" ,
1794
+ "target" : "maxwsnenv" ,
1801
1795
}
1802
1796
1803
1797
class MAX32600MBED (Target ):
@@ -1809,7 +1803,7 @@ def __init__(self):
1809
1803
self .supported_toolchains = ["GCC_ARM" , "IAR" , "ARM" ]
1810
1804
self .default_toolchain = "ARM"
1811
1805
self .progen = {
1812
- "target" : "max32600mbed" ,
1806
+ "target" : "max32600mbed" ,
1813
1807
}
1814
1808
1815
1809
### Silicon Labs ###
@@ -1900,7 +1894,7 @@ def __init__(self):
1900
1894
self .extra_labels = ['WIZNET' , 'W7500x' , 'WIZwiki_W7500ECO' ]
1901
1895
self .supported_toolchains = ["uARM" , "ARM" ]
1902
1896
self .default_toolchain = "ARM"
1903
-
1897
+
1904
1898
class SAMR21G18A (Target ):
1905
1899
def __init__ (self ):
1906
1900
Target .__init__ (self )
0 commit comments