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