Lines Matching +full:zephyr +full:- +full:sdk +full:-
3 # Copyright (c) 2020-2021 Gerson Fernando Budke <nandojve@gmail.com>
5 # SPDX-License-Identifier: Apache-2.0
18 pytest.skip("skipping Linux-only bossac tests", allow_module_level=True)
20 TEST_BOSSAC_PORT = 'test-bossac-serial'
27 ['stty', '-F', TEST_BOSSAC_PORT, 'raw', 'ispeed', '115200',
28 'ospeed', '115200', 'cs8', '-cstopb', 'ignpar', 'eol', '255',
30 ['bossac', '-p', TEST_BOSSAC_PORT, '-R', '-w', '-v',
31 '-b', RC_KERNEL_BIN],
35 ['stty', '-F', TEST_BOSSAC_PORT, 'raw', 'ispeed', TEST_BOSSAC_SPEED,
36 'ospeed', TEST_BOSSAC_SPEED, 'cs8', '-cstopb', 'ignpar', 'eol', '255',
38 ['bossac', '-p', TEST_BOSSAC_PORT, '-R', '-w', '-v',
39 '-b', RC_KERNEL_BIN],
43 ['stty', '-F', TEST_BOSSAC_PORT, 'raw', 'ispeed', '115200',
44 'ospeed', '115200', 'cs8', '-cstopb', 'ignpar', 'eol', '255',
46 ['bossac', '-p', TEST_BOSSAC_PORT, '-R', '-w', '-v',
47 '-b', RC_KERNEL_BIN, '-e'],
50 ['stty', '-F', TEST_BOSSAC_PORT, 'raw', 'ispeed', '115200',
51 'ospeed', '115200', 'cs8', '-cstopb', 'ignpar', 'eol', '255',
53 ['bossac', '-p', TEST_BOSSAC_PORT, '-R', '-w', '-v',
54 '-b', RC_KERNEL_BIN, '-o', str(TEST_OFFSET)],
59 'stty', '-F', TEST_BOSSAC_PORT, 'raw', 'ispeed', '115200',
60 'ospeed', '115200', 'cs8', '-cstopb', 'ignpar', 'eol', '255',
64 'bossac', '-p', TEST_BOSSAC_PORT, '-R', '-w', '-v',
65 '-b', RC_KERNEL_BIN, '-o', str(TEST_FLASH_ADDRESS),
71 'stty', '-F', TEST_BOSSAC_PORT, 'raw', 'ispeed', '1200',
72 'ospeed', '1200', 'cs8', '-cstopb', 'ignpar', 'eol', '255',
76 'bossac', '-p', TEST_BOSSAC_PORT, '-R', '-w', '-v',
77 '-b', RC_KERNEL_BIN, '-o', str(TEST_FLASH_ADDRESS),
81 # SAM-BA ROM without offset
83 # No zephyr,code-partition (defined on DT)
89 # SAM-BA ROM/FLASH with offset
97 # SAM-BA ROM/FLASH without offset
105 # SAM-BA Extended Arduino with offset
114 # SAM-BA Extended Adafruit with offset
123 # SAM-BA omit offset
131 # SAM-BA Legacy Mode
143 # the contents of 'dotconfig' to tmpdir/zephyr/.config.
145 zephyr = tmpdir / 'zephyr'
146 zephyr.mkdir()
147 with open(zephyr / '.config', 'w') as f:
173 Any SDK
178 without zephyr,code-partition
184 no --offset
185 no -e
206 Any SDK
211 without zephyr,code-partition
214 --bossac-port
217 no --offset
218 no -e
220 args = ['--bossac-port', str(TEST_BOSSAC_PORT)]
243 Any SDK
248 without zephyr,code-partition
251 --bossac-port
252 --speed
255 no --offset
257 args = ['--bossac-port', str(TEST_BOSSAC_PORT),
258 '--speed', str(TEST_BOSSAC_SPEED)]
281 Any SDK
286 without zephyr,code-partition
289 --erase
292 no --offset
294 args = ['--bossac-port', str(TEST_BOSSAC_PORT),
295 '--erase']
318 SDK >= 0.12.0
323 with zephyr,code-partition
326 --bossac-port
329 --offset
332 '--bossac-port',
363 Any SDK
368 with zephyr,code-partition
371 --bossac-port
374 no --offset
394 Test SAM-BA extended protocol with Arduino variation
397 SDK >= 0.12.0
403 with zephyr,code-partition
406 --bossac-port
409 --offset
428 Test SAM-BA extended protocol with Adafruit UF2 variation
431 SDK >= 0.12.0
437 with zephyr,code-partition
440 --bossac-port
443 --offset
463 Test SAM-BA legacy protocol
466 Any SDK
472 with zephyr,code-partition
475 --bossac-port
478 no --offset
498 Test old SDK and ask user to upgrade
501 SDK <= 0.12.0
506 with zephyr,code-partition
520 " --offset flag. Please upgrade to a newer" \
521 " Zephyr SDK version >= 0.12.0."
534 Test SAM-BA offset wrong configuration. No chosen code partition.
537 Any SDK
542 with zephyr,code-partition (missing)
555 assert str(rinfo.value) == "The device tree zephyr,code-partition" \
569 Test SAM-BA offset wrong configuration. No CONFIG_USE_DT_CODE_PARTITION
573 Any SDK
578 with zephyr,code-partition
594 " zephyr,code-partition device tree node should not be defined." \
595 " Check Zephyr SAM-BA documentation."