mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-23 15:11:19 -04:00
Add (hardware) production tests for the TK-1 and TP-1 (#69)
* ch552 firmware: add ch55x support files directly * Add sdcc compiler to docker image, for building CH552 firmware * Rework production test script * Add menu-based test runner * Rewrite production test flows as lists of individual tests * Add both production flows and manual tests to menu * Switch to using included binaries * production test: Update message format * test_txrx_touchpad: Retry if device communications fail * production test: put all binaries in binaries/ folder * binaries/top.bin: replace broken binary * flash_check: Check for explicit flash IDs * Document most test procedures * Test plan documentation * Sample udev rules * Production test: allow external references to be overridden * Remove outdated descriptions * Correct shebang * Update shebangs to comply with PEP 394 Change the python scripts to call python instead of python3, as this works cross platform. See: https://peps.python.org/pep-0394/#for-python-script-publishers * Move production test to higher-level directory * Clarify production test setup * Move USB C connector test to separate directory Co-authored-by: Michael Cardell Widerkrantz <mc@tillitis.se>
This commit is contained in:
parent
f511a84ab4
commit
072b204d3d
32 changed files with 2345 additions and 430 deletions
16
hw/production_test/reset.py
Executable file
16
hw/production_test/reset.py
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
import hid_test
|
||||
import time
|
||||
|
||||
|
||||
def reset_tk1():
|
||||
"""Manipulate the GPIO lines on the MTA1-USB-CH552 Programmer to issue a
|
||||
hardware reset to the TK1. The result is that TK1 again will be in firmware
|
||||
mode, so a new app can be loaded."""
|
||||
d = hid_test.ice40_flasher()
|
||||
d.gpio_set_direction(14, True)
|
||||
d.gpio_put(14, False)
|
||||
d.gpio_set_direction(14, False)
|
||||
d.close()
|
||||
|
||||
reset_tk1()
|
Loading…
Add table
Add a link
Reference in a new issue