Includes library modifications to allow access to AIN_4 (AIN_0 / 5)

Committer:
bryantaylor
Date:
Tue Sep 20 21:26:12 2016 +0000
Revision:
0:eafc3fd41f75
hackathon

Who changed what in which revision?

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