Skip to content

Commit 428d7e0

Browse files
committed
Merge pull request #941 from GustavWi/iar_mbed
IAR support nrf51 based boards
2 parents 83f6c17 + 6cf9a11 commit 428d7e0

16 files changed

+14000
-9
lines changed

workspace_tools/build_release.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@
7474
('ARCH_MAX', ('ARM', 'GCC_ARM')),
7575

7676
('NRF51822', ('ARM', 'GCC_ARM', 'IAR')),
77-
('NRF51_DK', ('ARM', 'GCC_ARM')),
78-
('NRF51_DONGLE', ('ARM', 'GCC_ARM')),
79-
('HRM1017', ('ARM', 'GCC_ARM')),
80-
('ARCH_BLE', ('ARM', 'GCC_ARM')),
81-
('SEEED_TINY_BLE', ('ARM', 'GCC_ARM')),
77+
('NRF51_DK', ('ARM', 'GCC_ARM', 'IAR')),
78+
('NRF51_DONGLE', ('ARM', 'GCC_ARM', 'IAR')),
79+
('HRM1017', ('ARM', 'GCC_ARM', 'IAR')),
80+
('ARCH_BLE', ('ARM', 'GCC_ARM', 'IAR')),
81+
('SEEED_TINY_BLE', ('ARM', 'GCC_ARM', 'IAR')),
8282
('RBLAB_NRF51822', ('ARM', 'GCC_ARM')),
8383
('RBLAB_BLENANO', ('ARM', 'GCC_ARM')),
8484
('WALLBOT_BLE', ('ARM', 'GCC_ARM')),

workspace_tools/export/iar.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ class IAREmbeddedWorkbench(Exporter):
5959
'MTS_MDOT_F411RE',
6060
'MTS_DRAGONFLY_F411RE',
6161
'NRF51822',
62+
'NRF51_DK',
63+
'NRF51_DONGLE',
64+
'DELTA_DFCM_NNN40',
65+
'SEEED_TINY_BLE',
66+
'HRM1017',
67+
'ARCH_BLE',
6268
]
6369

6470
def generate(self):
@@ -67,7 +73,9 @@ def generate(self):
6773
sources += self.resources.c_sources
6874
sources += self.resources.cpp_sources
6975
sources += self.resources.s_sources
70-
76+
# binaries = ""
77+
# if resources.bin_files is not None:
78+
# binaries = resources.bin_files
7179
ctx = {
7280
'name': self.program_name,
7381
'include_paths': self.resources.inc_dirs,
@@ -76,6 +84,7 @@ def generate(self):
7684
'libraries': self.resources.libraries,
7785
'symbols': self.get_symbols(),
7886
'source_files': sources,
87+
'binary_files': self.resources.bin_files,
7988
}
8089
self.gen_file('iar_%s.ewp.tmpl' % self.target.lower(), ctx, '%s.ewp' % self.program_name)
8190
self.gen_file('iar.eww.tmpl', ctx, '%s.eww' % self.program_name)

0 commit comments

Comments
 (0)