diff options
| author | Ha Thach <[email protected]> | 2026-06-05 21:23:40 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-05 21:23:40 +0700 |
| commit | 1009b14b02232adc70a0a5a5ed4a3a06118fef0d (patch) | |
| tree | ff083c76bbe662b40475cf90df7d78584113ee32 /test | |
| parent | 9dea2c8f397c004d3f3288bac3c0df9c842fe713 (diff) | |
add tm4c123x evk to hill pool (#3676)
* add ek_tm4c123gxl to the hil pool, flashing with lm4flash
Diffstat (limited to 'test')
| -rwxr-xr-x | test/hil/hil_test.py | 13 | ||||
| -rw-r--r-- | test/hil/tinyusb.json | 14 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index b0b3fc17e..609199d1b 100755 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -496,6 +496,19 @@ def reset_uniflash(board): return subprocess.CompletedProcess(args=['dummy'], returncode=0) +def flash_lm4flash(board, firmware): + # TI Tiva-C / Stellaris ICDI: lightweight lm4flash, resets and runs after write + flasher = board['flasher'] + ret = run_cmd(f'lm4flash -s {flasher["uid"]} {flasher["args"]} {firmware}.bin') + return ret + + +def reset_lm4flash(board): + # lm4flash has no reset-only mode; it resets+runs on flash, so reset is a no-op + flasher = board['flasher'] + return subprocess.CompletedProcess(args=['dummy'], returncode=0) + + # ------------------------------------------------------------- # Tests: dual # ------------------------------------------------------------- diff --git a/test/hil/tinyusb.json b/test/hil/tinyusb.json index 467b7378a..79b2645c7 100644 --- a/test/hil/tinyusb.json +++ b/test/hil/tinyusb.json @@ -1,6 +1,20 @@ { "boards": [ { + "name": "ek_tm4c123gxl", + "uid": "010105186C60A110", + "tests": { + "device": true, + "host": false, + "dual": false + }, + "flasher": { + "name": "lm4flash", + "uid": "0E205D19", + "args": "-v" + } + }, + { "name": "espressif_p4_function_ev", "uid": "6055F9F98715", "build": { |
