@@ -1214,20 +1214,20 @@ def __init__(self):
1214
1214
self .core = "Cortex-M0"
1215
1215
self .extra_labels = ["NORDIC" , "MCU_NRF51" , "MCU_NRF51822" ]
1216
1216
self .macros = ['NRF51' , 'TARGET_NRF51822' ]
1217
- self .supported_toolchains = ["ARM" , "GCC_ARM" , "IAR" ]
1217
+ self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1218
1218
self .is_disk_virtual = True
1219
1219
self .detect_code = ["1070" ]
1220
1220
1221
1221
def program_cycle_s (self ):
1222
1222
return 6
1223
1223
1224
1224
def init_hooks (self , hook , toolchain_name ):
1225
- if toolchain_name in ['ARM_STD' , 'ARM_MICRO' , ' GCC_ARM' , 'IAR ' ]:
1225
+ if toolchain_name in ['ARM_STD' , 'GCC_ARM' ]:
1226
1226
hook .hook_add_binary ("post" , self .binary_hook )
1227
1227
1228
1228
@staticmethod
1229
1229
def binary_hook (t_self , resources , elf , binf ):
1230
-
1230
+
1231
1231
# Scan to find the actual paths of soft device
1232
1232
sdf = None
1233
1233
for softdeviceAndOffsetEntry in t_self .target .EXPECTED_SOFTDEVICES_WITH_OFFSETS :
@@ -1242,7 +1242,7 @@ def binary_hook(t_self, resources, elf, binf):
1242
1242
if sdf is None :
1243
1243
t_self .debug ("Hex file not found. Aborting." )
1244
1244
return
1245
-
1245
+
1246
1246
# Look for bootloader file that matches this soft device or bootloader override image
1247
1247
blf = None
1248
1248
if t_self .target .MERGE_BOOTLOADER is True :
@@ -1274,7 +1274,7 @@ def binary_hook(t_self, resources, elf, binf):
1274
1274
with open (binf .replace (".bin" , ".hex" ), "w" ) as f :
1275
1275
binh .tofile (f , format = 'hex' )
1276
1276
1277
-
1277
+
1278
1278
# 16KB Nordic targets are tight on SRAM using S130 (default) so we
1279
1279
# introduce two possible options:
1280
1280
# 1) Use S130 (default) - for this derive from MCU_NRF51_16K
@@ -1551,7 +1551,6 @@ def __init__(self):
1551
1551
class DELTA_DFCM_NNN40 (MCU_NRF51_32K ):
1552
1552
def __init__ (self ):
1553
1553
MCU_NRF51_32K .__init__ (self )
1554
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1555
1554
self .macros += ['TARGET_NRF_LFCLK_RC' ]
1556
1555
self .progen = {
1557
1556
"target" :"dfcm-nnn40" ,
@@ -1562,7 +1561,6 @@ def program_cycle_s(self):
1562
1561
class DELTA_DFCM_NNN40_BOOT (MCU_NRF51_32K_BOOT ):
1563
1562
def __init__ (self ):
1564
1563
MCU_NRF51_32K_BOOT .__init__ (self )
1565
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1566
1564
self .extra_labels += ['DELTA_DFCM_NNN40' ]
1567
1565
self .macros += ['TARGET_DELTA_DFCM_NNN40' , 'TARGET_NRF_LFCLK_RC' ]
1568
1566
def program_cycle_s (self ):
@@ -1571,7 +1569,6 @@ def program_cycle_s(self):
1571
1569
class DELTA_DFCM_NNN40_OTA (MCU_NRF51_32K_OTA ):
1572
1570
def __init__ (self ):
1573
1571
MCU_NRF51_32K_OTA .__init__ (self )
1574
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1575
1572
self .extra_labels += ['DELTA_DFCM_NNN40' ]
1576
1573
self .macros += ['TARGET_DELTA_DFCM_NNN40' , 'TARGET_NRF_LFCLK_RC' ]
1577
1574
def program_cycle_s (self ):
@@ -1580,7 +1577,6 @@ def program_cycle_s(self):
1580
1577
class NRF51_DK (MCU_NRF51_32K ):
1581
1578
def __init__ (self ):
1582
1579
MCU_NRF51_32K .__init__ (self )
1583
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1584
1580
self .supported_form_factors = ["ARDUINO" ]
1585
1581
self .progen = {
1586
1582
"target" :"nrf51-dk" ,
@@ -1591,15 +1587,13 @@ def __init__(self):
1591
1587
MCU_NRF51_32K_BOOT .__init__ (self )
1592
1588
self .extra_labels += ['NRF51_DK' ]
1593
1589
self .macros += ['TARGET_NRF51_DK' ]
1594
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1595
1590
self .supported_form_factors = ["ARDUINO" ]
1596
1591
1597
1592
class NRF51_DK_OTA (MCU_NRF51_32K_OTA ):
1598
1593
def __init__ (self ):
1599
1594
MCU_NRF51_32K_OTA .__init__ (self )
1600
1595
self .extra_labels += ['NRF51_DK' ]
1601
1596
self .macros += ['TARGET_NRF51_DK' ]
1602
- self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1603
1597
self .supported_form_factors = ["ARDUINO" ]
1604
1598
1605
1599
class NRF51_DONGLE (MCU_NRF51_32K ):
@@ -1676,7 +1670,7 @@ def __init__(self):
1676
1670
self .macros += ['TARGET_TY51822R3' , 'TARGET_NRF_32MHZ_XTAL' ]
1677
1671
self .supported_toolchains = ["ARM" , "GCC_ARM" ]
1678
1672
1679
-
1673
+
1680
1674
### ARM ###
1681
1675
1682
1676
class ARM_MPS2_Target (Target ):
@@ -1736,7 +1730,7 @@ def __init__(self):
1736
1730
self .macros = ['CMSDK_CM7' ]
1737
1731
self .supported_toolchains = ["ARM" ]
1738
1732
self .default_toolchain = "ARM"
1739
-
1733
+
1740
1734
class ARM_MPS2_BEID (ARM_MPS2_Target ):
1741
1735
def __init__ (self ):
1742
1736
ARM_MPS2_Target .__init__ (self )
@@ -1783,7 +1777,7 @@ def __init__(self):
1783
1777
self .supported_toolchains = ["GCC_ARM" , "IAR" , "ARM" ]
1784
1778
self .default_toolchain = "ARM"
1785
1779
self .progen = {
1786
- "target" : "maxwsnenv" ,
1780
+ "target" : "maxwsnenv" ,
1787
1781
}
1788
1782
1789
1783
class MAX32600MBED (Target ):
@@ -1795,7 +1789,7 @@ def __init__(self):
1795
1789
self .supported_toolchains = ["GCC_ARM" , "IAR" , "ARM" ]
1796
1790
self .default_toolchain = "ARM"
1797
1791
self .progen = {
1798
- "target" : "max32600mbed" ,
1792
+ "target" : "max32600mbed" ,
1799
1793
}
1800
1794
1801
1795
### Silicon Labs ###
@@ -1886,7 +1880,7 @@ def __init__(self):
1886
1880
self .extra_labels = ['WIZNET' , 'W7500x' , 'WIZwiki_W7500ECO' ]
1887
1881
self .supported_toolchains = ["uARM" , "ARM" ]
1888
1882
self .default_toolchain = "ARM"
1889
-
1883
+
1890
1884
class SAMR21G18A (Target ):
1891
1885
def __init__ (self ):
1892
1886
Target .__init__ (self )
0 commit comments