Maxim mbed development library

Dependents:   sensomed

Committer:
switches
Date:
Tue Nov 08 18:27:11 2016 +0000
Revision:
0:0e018d759a2a
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
switches 0:0e018d759a2a 1 #!/usr/bin/env python
switches 0:0e018d759a2a 2 """
switches 0:0e018d759a2a 3 mbed SDK
switches 0:0e018d759a2a 4 Copyright (c) 2011-2013 ARM Limited
switches 0:0e018d759a2a 5
switches 0:0e018d759a2a 6 Licensed under the Apache License, Version 2.0 (the "License");
switches 0:0e018d759a2a 7 you may not use this file except in compliance with the License.
switches 0:0e018d759a2a 8 You may obtain a copy of the License at
switches 0:0e018d759a2a 9
switches 0:0e018d759a2a 10 http://www.apache.org/licenses/LICENSE-2.0
switches 0:0e018d759a2a 11
switches 0:0e018d759a2a 12 Unless required by applicable law or agreed to in writing, software
switches 0:0e018d759a2a 13 distributed under the License is distributed on an "AS IS" BASIS,
switches 0:0e018d759a2a 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
switches 0:0e018d759a2a 15 See the License for the specific language governing permissions and
switches 0:0e018d759a2a 16 limitations under the License.
switches 0:0e018d759a2a 17 """
switches 0:0e018d759a2a 18 import sys
switches 0:0e018d759a2a 19 from os.path import join, abspath, dirname, exists
switches 0:0e018d759a2a 20 ROOT = abspath(join(dirname(__file__), ".."))
switches 0:0e018d759a2a 21 sys.path.insert(0, ROOT)
switches 0:0e018d759a2a 22
switches 0:0e018d759a2a 23 from shutil import move
switches 0:0e018d759a2a 24
switches 0:0e018d759a2a 25 from tools.paths import *
switches 0:0e018d759a2a 26 from tools.utils import mkdir, cmd
switches 0:0e018d759a2a 27 from tools.export import export, setup_user_prj
switches 0:0e018d759a2a 28
switches 0:0e018d759a2a 29
switches 0:0e018d759a2a 30 USR_PRJ_NAME = "usr_prj"
switches 0:0e018d759a2a 31 USER_PRJ = join(EXPORT_WORKSPACE, USR_PRJ_NAME)
switches 0:0e018d759a2a 32 USER_SRC = join(USER_PRJ, "src")
switches 0:0e018d759a2a 33
switches 0:0e018d759a2a 34
switches 0:0e018d759a2a 35 def setup_test_user_prj():
switches 0:0e018d759a2a 36 if exists(USER_PRJ):
switches 0:0e018d759a2a 37 print 'Test user project already generated...'
switches 0:0e018d759a2a 38 return
switches 0:0e018d759a2a 39
switches 0:0e018d759a2a 40 setup_user_prj(USER_PRJ, join(TEST_DIR, "rtos", "mbed", "basic"), [join(ROOT, "rtos"), join(LIB_DIR, "tests", "mbed", "env")])
switches 0:0e018d759a2a 41
switches 0:0e018d759a2a 42 # FAKE BUILD URL
switches 0:0e018d759a2a 43 open(join(USER_SRC, "mbed.bld"), 'w').write("http://mbed.org/users/mbed_official/code/mbed/builds/976df7c37ad5\n")
switches 0:0e018d759a2a 44
switches 0:0e018d759a2a 45
switches 0:0e018d759a2a 46 def fake_build_url_resolver(url):
switches 0:0e018d759a2a 47 # FAKE BUILD URL: Ignore the URL, always return the path to the mbed library
switches 0:0e018d759a2a 48 return {'path':MBED_LIBRARIES, 'name':'mbed'}
switches 0:0e018d759a2a 49
switches 0:0e018d759a2a 50
switches 0:0e018d759a2a 51 def test_export(toolchain, target, expected_error=None):
switches 0:0e018d759a2a 52 if toolchain is None and target is None:
switches 0:0e018d759a2a 53 base_dir = join(EXPORT_TMP, "zip")
switches 0:0e018d759a2a 54 else:
switches 0:0e018d759a2a 55 base_dir = join(EXPORT_TMP, toolchain, target)
switches 0:0e018d759a2a 56 temp_dir = join(base_dir, "temp")
switches 0:0e018d759a2a 57 mkdir(temp_dir)
switches 0:0e018d759a2a 58
switches 0:0e018d759a2a 59 zip_path, report = export(USER_PRJ, USR_PRJ_NAME, toolchain, target, base_dir, temp_dir, False, None, fake_build_url_resolver)
switches 0:0e018d759a2a 60
switches 0:0e018d759a2a 61 if report['success']:
switches 0:0e018d759a2a 62 move(zip_path, join(EXPORT_DIR, "export_%s_%s.zip" % (toolchain, target)))
switches 0:0e018d759a2a 63 print "[OK]"
switches 0:0e018d759a2a 64 else:
switches 0:0e018d759a2a 65 if expected_error is None:
switches 0:0e018d759a2a 66 print '[ERRROR] %s' % report['errormsg']
switches 0:0e018d759a2a 67 else:
switches 0:0e018d759a2a 68 if (zip_path is None) and (expected_error in report['errormsg']):
switches 0:0e018d759a2a 69 print '[OK]'
switches 0:0e018d759a2a 70 else:
switches 0:0e018d759a2a 71 print '[ERROR]'
switches 0:0e018d759a2a 72 print ' zip:', zip_path
switches 0:0e018d759a2a 73 print ' msg:', report['errormsg']
switches 0:0e018d759a2a 74
switches 0:0e018d759a2a 75
switches 0:0e018d759a2a 76 if __name__ == '__main__':
switches 0:0e018d759a2a 77 setup_test_user_prj()
switches 0:0e018d759a2a 78
switches 0:0e018d759a2a 79 for toolchain, target in [
switches 0:0e018d759a2a 80 ('zip', 'LPC1768'),
switches 0:0e018d759a2a 81
switches 0:0e018d759a2a 82 ('emblocks', 'LPC1768'),
switches 0:0e018d759a2a 83 ('emblocks', 'LPC1549'),
switches 0:0e018d759a2a 84 ('emblocks', 'LPC1114'),
switches 0:0e018d759a2a 85 ('emblocks', 'LPC11U35_401'),
switches 0:0e018d759a2a 86 ('emblocks', 'LPC11U35_501'),
switches 0:0e018d759a2a 87 ('emblocks', 'LPCCAPPUCCINO'),
switches 0:0e018d759a2a 88 ('emblocks', 'LPC2368'),
switches 0:0e018d759a2a 89 ('emblocks', 'STM32F407'),
switches 0:0e018d759a2a 90 ('emblocks', 'DISCO_F100RB'),
switches 0:0e018d759a2a 91 ('emblocks', 'DISCO_F051R8'),
switches 0:0e018d759a2a 92 ('emblocks', 'DISCO_F407VG'),
switches 0:0e018d759a2a 93 ('emblocks', 'DISCO_F303VC'),
switches 0:0e018d759a2a 94 ('emblocks', 'NRF51822'),
switches 0:0e018d759a2a 95 ('emblocks', 'NUCLEO_F401RE'),
switches 0:0e018d759a2a 96 ('emblocks', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 97 ('emblocks', 'NUCLEO_F411RE'),
switches 0:0e018d759a2a 98 ('emblocks', 'MTS_MDOT_F405RG'),
switches 0:0e018d759a2a 99 ('emblocks', 'MTS_MDOT_F411RE'),
switches 0:0e018d759a2a 100
switches 0:0e018d759a2a 101 ('coide', 'KL05Z'),
switches 0:0e018d759a2a 102 ('coide', 'KL25Z'),
switches 0:0e018d759a2a 103 ('coide', 'LPC1768'),
switches 0:0e018d759a2a 104 ('coide', 'ARCH_PRO'),
switches 0:0e018d759a2a 105 ('coide', 'DISCO_F407VG'),
switches 0:0e018d759a2a 106 ('coide', 'NUCLEO_F401RE'),
switches 0:0e018d759a2a 107 ('coide', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 108 ('coide', 'NUCLEO_F411RE'),
switches 0:0e018d759a2a 109 ('coide', 'DISCO_F429ZI'),
switches 0:0e018d759a2a 110 ('coide', 'NUCLEO_F429ZI'),
switches 0:0e018d759a2a 111 #('coide', 'DISCO_F469NI'), removed because template not available
switches 0:0e018d759a2a 112 ('coide', 'NUCLEO_F334R8'),
switches 0:0e018d759a2a 113 ('coide', 'NUCLEO_F303ZE'),
switches 0:0e018d759a2a 114 ('coide', 'MTS_MDOT_F405RG'),
switches 0:0e018d759a2a 115 ('coide', 'MTS_MDOT_F411RE'),
switches 0:0e018d759a2a 116
switches 0:0e018d759a2a 117 ('uvision', 'LPC1768'),
switches 0:0e018d759a2a 118 ('uvision', 'LPC11U24'),
switches 0:0e018d759a2a 119 ('uvision', 'LPC11U35_401'),
switches 0:0e018d759a2a 120 ('uvision', 'LPC11U35_501'),
switches 0:0e018d759a2a 121 ('uvision', 'KL25Z'),
switches 0:0e018d759a2a 122 ('uvision', 'LPC1347'),
switches 0:0e018d759a2a 123 ('uvision', 'LPC1114'),
switches 0:0e018d759a2a 124 ('uvision', 'LPC4088'),
switches 0:0e018d759a2a 125 ('uvision', 'LPC4088_DM'),
switches 0:0e018d759a2a 126 ('uvision', 'LPC4337'),
switches 0:0e018d759a2a 127 ('uvision', 'LPC824'),
switches 0:0e018d759a2a 128 ('uvision', 'SSCI824'),
switches 0:0e018d759a2a 129 ('uvision', 'HRM1017'),
switches 0:0e018d759a2a 130
switches 0:0e018d759a2a 131 ('uvision', 'B96B_F446VE'),
switches 0:0e018d759a2a 132 ('uvision', 'NUCLEO_F030R8'),
switches 0:0e018d759a2a 133 ('uvision', 'NUCLEO_F031K6'),
switches 0:0e018d759a2a 134 ('uvision', 'NUCLEO_F042K6'),
switches 0:0e018d759a2a 135 ('uvision', 'NUCLEO_F070RB'),
switches 0:0e018d759a2a 136 ('uvision', 'NUCLEO_F072RB'),
switches 0:0e018d759a2a 137 ('uvision', 'NUCLEO_F091RC'),
switches 0:0e018d759a2a 138 ('uvision', 'NUCLEO_F103RB'),
switches 0:0e018d759a2a 139 ('uvision', 'NUCLEO_F302R8'),
switches 0:0e018d759a2a 140 ('uvision', 'NUCLEO_F303K8'),
switches 0:0e018d759a2a 141 ('uvision', 'NUCLEO_F303RE'),
switches 0:0e018d759a2a 142 ('uvision', 'NUCLEO_F334R8'),
switches 0:0e018d759a2a 143 ('uvision', 'NUCLEO_F303ZE'),
switches 0:0e018d759a2a 144 ('uvision', 'NUCLEO_F401RE'),
switches 0:0e018d759a2a 145 ('uvision', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 146 ('uvision', 'NUCLEO_F411RE'),
switches 0:0e018d759a2a 147 ('uvision', 'NUCLEO_F429ZI'),
switches 0:0e018d759a2a 148 ('uvision', 'NUCLEO_F446RE'),
switches 0:0e018d759a2a 149 ('uvision', 'NUCLEO_F446ZE'),
switches 0:0e018d759a2a 150 ('uvision', 'NUCLEO_L011K4'),
switches 0:0e018d759a2a 151 ('uvision', 'NUCLEO_L031K6'),
switches 0:0e018d759a2a 152 ('uvision', 'NUCLEO_L053R8'),
switches 0:0e018d759a2a 153 ('uvision', 'NUCLEO_L073RZ'),
switches 0:0e018d759a2a 154 ('uvision', 'NUCLEO_L152RE'),
switches 0:0e018d759a2a 155 ('uvision', 'NUCLEO_L432KC'),
switches 0:0e018d759a2a 156 ('uvision', 'NUCLEO_L476RG'),
switches 0:0e018d759a2a 157 ('uvision', 'MTS_MDOT_F405RG'),
switches 0:0e018d759a2a 158 ('uvision', 'MAXWSNENV'),
switches 0:0e018d759a2a 159 ('uvision', 'MAX32600MBED'),
switches 0:0e018d759a2a 160 ('uvision', 'MAX32620HSP'),
switches 0:0e018d759a2a 161 ('uvision', 'DISCO_F051R8'),
switches 0:0e018d759a2a 162 ('uvision', 'DISCO_F103RB'),
switches 0:0e018d759a2a 163 ('uvision', 'DISCO_F303VC'),
switches 0:0e018d759a2a 164 ('uvision', 'DISCO_L053C8'),
switches 0:0e018d759a2a 165 ('uvision', 'DISCO_F334C8'),
switches 0:0e018d759a2a 166 ('uvision', 'DISCO_F407VG'),
switches 0:0e018d759a2a 167 ('uvision', 'DISCO_F429ZI'),
switches 0:0e018d759a2a 168 ('uvision', 'DISCO_F746NG'),
switches 0:0e018d759a2a 169 ('uvision', 'DISCO_F469NI'),
switches 0:0e018d759a2a 170 ('uvision', 'DISCO_L476VG'),
switches 0:0e018d759a2a 171 ('uvision', 'MOTE_L152RC'),
switches 0:0e018d759a2a 172 ('uvision', 'ARM_BEETLE_SOC'),
switches 0:0e018d759a2a 173
switches 0:0e018d759a2a 174 ('lpcxpresso', 'LPC1768'),
switches 0:0e018d759a2a 175 ('lpcxpresso', 'LPC4088'),
switches 0:0e018d759a2a 176 ('lpcxpresso', 'LPC4088_DM'),
switches 0:0e018d759a2a 177 ('lpcxpresso', 'LPC1114'),
switches 0:0e018d759a2a 178 ('lpcxpresso', 'LPC11U35_401'),
switches 0:0e018d759a2a 179 ('lpcxpresso', 'LPC11U35_501'),
switches 0:0e018d759a2a 180 ('lpcxpresso', 'LPCCAPPUCCINO'),
switches 0:0e018d759a2a 181 ('lpcxpresso', 'LPC1549'),
switches 0:0e018d759a2a 182 ('lpcxpresso', 'LPC11U68'),
switches 0:0e018d759a2a 183
switches 0:0e018d759a2a 184 # Linux path: /home/emimon01/bin/gcc-arm/bin/
switches 0:0e018d759a2a 185 # Windows path: C:/arm-none-eabi-gcc-4_7/bin/
switches 0:0e018d759a2a 186 ('gcc_arm', 'LPC1768'),
switches 0:0e018d759a2a 187 ('gcc_arm', 'LPC4088_DM'),
switches 0:0e018d759a2a 188 ('gcc_arm', 'LPC1549'),
switches 0:0e018d759a2a 189 ('gcc_arm', 'LPC1114'),
switches 0:0e018d759a2a 190 ('gcc_arm', 'LPC11U35_401'),
switches 0:0e018d759a2a 191 ('gcc_arm', 'LPC11U35_501'),
switches 0:0e018d759a2a 192 ('gcc_arm', 'LPCCAPPUCCINO'),
switches 0:0e018d759a2a 193 ('gcc_arm', 'LPC2368'),
switches 0:0e018d759a2a 194 ('gcc_arm', 'LPC2460'),
switches 0:0e018d759a2a 195 ('gcc_arm', 'LPC824'),
switches 0:0e018d759a2a 196 ('gcc_arm', 'SSCI824'),
switches 0:0e018d759a2a 197
switches 0:0e018d759a2a 198 ('gcc_arm', 'B96B_F446VE'),
switches 0:0e018d759a2a 199 ('gcc_arm', 'STM32F407'),
switches 0:0e018d759a2a 200 ('gcc_arm', 'DISCO_F100RB'),
switches 0:0e018d759a2a 201 ('gcc_arm', 'DISCO_F051R8'),
switches 0:0e018d759a2a 202 ('gcc_arm', 'DISCO_F407VG'),
switches 0:0e018d759a2a 203 ('gcc_arm', 'DISCO_F303VC'),
switches 0:0e018d759a2a 204 ('gcc_arm', 'DISCO_L053C8'),
switches 0:0e018d759a2a 205 ('gcc_arm', 'DISCO_F334C8'),
switches 0:0e018d759a2a 206 ('gcc_arm', 'DISCO_L053C8'),
switches 0:0e018d759a2a 207 ('gcc_arm', 'DISCO_F429ZI'),
switches 0:0e018d759a2a 208 ('gcc_arm', 'DISCO_F746NG'),
switches 0:0e018d759a2a 209 ('gcc_arm', 'NUCLEO_F031K6'),
switches 0:0e018d759a2a 210 ('gcc_arm', 'NUCLEO_F042K6'),
switches 0:0e018d759a2a 211 ('gcc_arm', 'NRF51822'),
switches 0:0e018d759a2a 212 ('gcc_arm', 'RBLAB_BLENANO'),
switches 0:0e018d759a2a 213 ('gcc_arm', 'HRM1017'),
switches 0:0e018d759a2a 214 ('gcc_arm', 'NUCLEO_F401RE'),
switches 0:0e018d759a2a 215 ('gcc_arm', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 216 ('gcc_arm', 'NUCLEO_F411RE'),
switches 0:0e018d759a2a 217 ('gcc_arm', 'NUCLEO_F429ZI'),
switches 0:0e018d759a2a 218 ('gcc_arm', 'NUCLEO_F446RE'),
switches 0:0e018d759a2a 219 ('gcc_arm', 'NUCLEO_F446ZE'),
switches 0:0e018d759a2a 220 ('gcc_arm', 'NUCLEO_F303ZE'),
switches 0:0e018d759a2a 221 ('gcc_arm', 'ELMO_F411RE'),
switches 0:0e018d759a2a 222 ('gcc_arm', 'DISCO_F469NI'),
switches 0:0e018d759a2a 223 ('gcc_arm', 'NUCLEO_F334R8'),
switches 0:0e018d759a2a 224 ('gcc_arm', 'NUCLEO_L011K4'),
switches 0:0e018d759a2a 225 ('gcc_arm', 'NUCLEO_L031K6'),
switches 0:0e018d759a2a 226 ('gcc_arm', 'NUCLEO_L432KC'),
switches 0:0e018d759a2a 227 ('gcc_arm', 'MAX32600MBED'),
switches 0:0e018d759a2a 228 ('gcc_arm', 'MTS_MDOT_F405RG'),
switches 0:0e018d759a2a 229 ('gcc_arm', 'MTS_MDOT_F411RE'),
switches 0:0e018d759a2a 230 ('gcc_arm', 'RZ_A1H'),
switches 0:0e018d759a2a 231 ('gcc_arm', 'MAXWSNENV'),
switches 0:0e018d759a2a 232 ('gcc_arm', 'MAX32600MBED'),
switches 0:0e018d759a2a 233 ('gcc_arm', 'MAX32620HSP'),
switches 0:0e018d759a2a 234 ('gcc_arm', 'ARCH_BLE'),
switches 0:0e018d759a2a 235 ('gcc_arm', 'ARCH_MAX'),
switches 0:0e018d759a2a 236 ('gcc_arm', 'ARCH_PRO'),
switches 0:0e018d759a2a 237 ('gcc_arm', 'DELTA_DFCM_NNN40'),
switches 0:0e018d759a2a 238 ('gcc_arm', 'K20D50M'),
switches 0:0e018d759a2a 239 ('gcc_arm', 'K22F'),
switches 0:0e018d759a2a 240 ('gcc_arm', 'K64F'),
switches 0:0e018d759a2a 241 ('gcc_arm', 'KL05Z'),
switches 0:0e018d759a2a 242 ('gcc_arm', 'KL25Z'),
switches 0:0e018d759a2a 243 ('gcc_arm', 'KL43Z'),
switches 0:0e018d759a2a 244 ('gcc_arm', 'KL46Z'),
switches 0:0e018d759a2a 245 ('gcc_arm', 'EFM32GG_STK3700'),
switches 0:0e018d759a2a 246 ('gcc_arm', 'EFM32LG_STK3600'),
switches 0:0e018d759a2a 247 ('gcc_arm', 'EFM32WG_STK3800'),
switches 0:0e018d759a2a 248 ('gcc_arm', 'EFM32ZG_STK3200'),
switches 0:0e018d759a2a 249 ('gcc_arm', 'EFM32HG_STK3400'),
switches 0:0e018d759a2a 250 ('gcc_arm', 'EFM32PG_STK3401'),
switches 0:0e018d759a2a 251
switches 0:0e018d759a2a 252 ('ds5_5', 'LPC1768'),
switches 0:0e018d759a2a 253 ('ds5_5', 'LPC11U24'),
switches 0:0e018d759a2a 254 ('ds5_5', 'RZ_A1H'),
switches 0:0e018d759a2a 255
switches 0:0e018d759a2a 256 ('iar', 'LPC1768'),
switches 0:0e018d759a2a 257 ('iar', 'LPC4088_DM'),
switches 0:0e018d759a2a 258 ('iar', 'LPC1347'),
switches 0:0e018d759a2a 259
switches 0:0e018d759a2a 260 ('iar', 'B96B_F446VE'),
switches 0:0e018d759a2a 261 ('iar', 'NUCLEO_F030R8'),
switches 0:0e018d759a2a 262 ('iar', 'NUCLEO_F031K6'),
switches 0:0e018d759a2a 263 ('iar', 'NUCLEO_F042K6'),
switches 0:0e018d759a2a 264 ('iar', 'NUCLEO_F070RB'),
switches 0:0e018d759a2a 265 ('iar', 'NUCLEO_F072RB'),
switches 0:0e018d759a2a 266 ('iar', 'NUCLEO_F091RC'),
switches 0:0e018d759a2a 267 ('iar', 'NUCLEO_F302R8'),
switches 0:0e018d759a2a 268 ('iar', 'NUCLEO_F303K8'),
switches 0:0e018d759a2a 269 ('iar', 'NUCLEO_F303RE'),
switches 0:0e018d759a2a 270 ('iar', 'NUCLEO_F334R8'),
switches 0:0e018d759a2a 271 ('iar', 'NUCLEO_F303ZE'),
switches 0:0e018d759a2a 272 ('iar', 'NUCLEO_F401RE'),
switches 0:0e018d759a2a 273 ('iar', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 274 ('iar', 'NUCLEO_F411RE'),
switches 0:0e018d759a2a 275 ('iar', 'NUCLEO_F429ZI'),
switches 0:0e018d759a2a 276 ('iar', 'NUCLEO_F446RE'),
switches 0:0e018d759a2a 277 ('iar', 'NUCLEO_F446ZE'),
switches 0:0e018d759a2a 278 ('iar', 'NUCLEO_L011K4'),
switches 0:0e018d759a2a 279 ('iar', 'NUCLEO_L031K6'),
switches 0:0e018d759a2a 280 ('iar', 'NUCLEO_L053R8'),
switches 0:0e018d759a2a 281 ('iar', 'NUCLEO_L073RZ'),
switches 0:0e018d759a2a 282 ('iar', 'NUCLEO_L152RE'),
switches 0:0e018d759a2a 283 ('iar', 'NUCLEO_L432KC'),
switches 0:0e018d759a2a 284 ('iar', 'NUCLEO_L476RG'),
switches 0:0e018d759a2a 285 ('iar', 'DISCO_L053C8'),
switches 0:0e018d759a2a 286 ('iar', 'DISCO_F334C8'),
switches 0:0e018d759a2a 287 ('iar', 'DISCO_F429ZI'),
switches 0:0e018d759a2a 288 ('iar', 'DISCO_F469NI'),
switches 0:0e018d759a2a 289 ('iar', 'DISCO_F746NG'),
switches 0:0e018d759a2a 290 ('iar', 'DISCO_L476VG'),
switches 0:0e018d759a2a 291 ('iar', 'STM32F407'),
switches 0:0e018d759a2a 292 ('iar', 'MTS_MDOT_F405RG'),
switches 0:0e018d759a2a 293 ('iar', 'MTS_MDOT_F411RE'),
switches 0:0e018d759a2a 294 ('iar', 'MAXWSNENV'),
switches 0:0e018d759a2a 295 ('iar', 'MAX32600MBED'),
switches 0:0e018d759a2a 296 ('iar', 'MAX32620HSP'),
switches 0:0e018d759a2a 297 ('iar', 'MOTE_L152RC'),
switches 0:0e018d759a2a 298 ('iar', 'RZ_A1H'),
switches 0:0e018d759a2a 299
switches 0:0e018d759a2a 300 # ('sw4stm32', 'DISCO_F051R8'),
switches 0:0e018d759a2a 301 # ('sw4stm32', 'DISCO_F100RB'),
switches 0:0e018d759a2a 302 ('sw4stm32', 'DISCO_F303VC'),
switches 0:0e018d759a2a 303 ('sw4stm32', 'DISCO_F334C8'),
switches 0:0e018d759a2a 304 # ('sw4stm32', 'DISCO_F401VC'),
switches 0:0e018d759a2a 305 ('sw4stm32', 'DISCO_F407VG'),
switches 0:0e018d759a2a 306 ('sw4stm32', 'DISCO_F429ZI'),
switches 0:0e018d759a2a 307 ('sw4stm32', 'DISCO_F469NI'),
switches 0:0e018d759a2a 308 ('sw4stm32', 'DISCO_F746NG'),
switches 0:0e018d759a2a 309 ('sw4stm32', 'DISCO_L053C8'),
switches 0:0e018d759a2a 310 ('sw4stm32', 'DISCO_L476VG'),
switches 0:0e018d759a2a 311 ('sw4stm32', 'NUCLEO_F030R8'),
switches 0:0e018d759a2a 312 ('sw4stm32', 'NUCLEO_F031K6'),
switches 0:0e018d759a2a 313 ('sw4stm32', 'NUCLEO_F042K6'),
switches 0:0e018d759a2a 314 ('sw4stm32', 'NUCLEO_F070RB'),
switches 0:0e018d759a2a 315 ('sw4stm32', 'NUCLEO_F072RB'),
switches 0:0e018d759a2a 316 ('sw4stm32', 'NUCLEO_F091RC'),
switches 0:0e018d759a2a 317 ('sw4stm32', 'NUCLEO_F103RB'),
switches 0:0e018d759a2a 318 ('sw4stm32', 'NUCLEO_F302R8'),
switches 0:0e018d759a2a 319 ('sw4stm32', 'NUCLEO_F303K8'),
switches 0:0e018d759a2a 320 ('sw4stm32', 'NUCLEO_F303RE'),
switches 0:0e018d759a2a 321 ('sw4stm32', 'NUCLEO_F334R8'),
switches 0:0e018d759a2a 322 ('sw4stm32', 'NUCLEO_F401RE'),
switches 0:0e018d759a2a 323 ('sw4stm32', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 324 ('sw4stm32', 'NUCLEO_F411RE'),
switches 0:0e018d759a2a 325 ('sw4stm32', 'NUCLEO_F429ZI'),
switches 0:0e018d759a2a 326 ('sw4stm32', 'NUCLEO_F446RE'),
switches 0:0e018d759a2a 327 ('sw4stm32', 'NUCLEO_F446ZE'),
switches 0:0e018d759a2a 328 ('sw4stm32', 'NUCLEO_L011K4'),
switches 0:0e018d759a2a 329 ('sw4stm32', 'NUCLEO_L053R8'),
switches 0:0e018d759a2a 330 ('sw4stm32', 'NUCLEO_L073RZ'),
switches 0:0e018d759a2a 331 ('sw4stm32', 'NUCLEO_L152RE'),
switches 0:0e018d759a2a 332 ('sw4stm32', 'NUCLEO_L432KC'),
switches 0:0e018d759a2a 333 ('sw4stm32', 'NUCLEO_L476RG'),
switches 0:0e018d759a2a 334 ('sw4stm32', 'NUCLEO_F031K6'),
switches 0:0e018d759a2a 335 ('sw4stm32', 'NUCLEO_F042K6'),
switches 0:0e018d759a2a 336 ('sw4stm32', 'NUCLEO_F303ZE'),
switches 0:0e018d759a2a 337 ('sw4stm32', 'NUCLEO_F410RB'),
switches 0:0e018d759a2a 338
switches 0:0e018d759a2a 339 ('e2studio', 'RZ_A1H'),
switches 0:0e018d759a2a 340 # Removed following item to avoid script error
switches 0:0e018d759a2a 341 #(None, None),
switches 0:0e018d759a2a 342 ]:
switches 0:0e018d759a2a 343 print '\n=== Exporting to "%s::%s" ===' % (toolchain, target)
switches 0:0e018d759a2a 344 test_export(toolchain, target)
switches 0:0e018d759a2a 345
switches 0:0e018d759a2a 346 print "\n=== Test error messages ==="
switches 0:0e018d759a2a 347 test_export('lpcxpresso', 'LPC11U24', expected_error='lpcxpresso')