MBEDHTRUN(1)

πŸ“¦
version 1.4.4 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ MBEDHTRUN(1) ✨

okay so bestie, meet mbedhtrun β€” a User Commands page and literally your new fave CLI πŸ’–


🌸 NAME 🌸

mbedhtrun β€” flash, reset and perform host-supervised tests on Mbed platforms πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

mbedhtrun --image-path FLASH_FILE --micro MICRO
          --port PORT --disk TARGET_PATH
         [--target-id TARGET_ID] [--sync SYNC]
         [--sync-timeout TIMEOUT] [--copy METHOD]
         [--retry-copy ATTEMPTS] [--tag-filters FILTERS]
         [--reset] [--program_cycle_s TIMEOUT]
         [--reset-timeout TIMEOUT] [--process-start-timeout TIMEOUT]
         [--polling-timeout TIMEOUT]
         [--enum-host-tests DIR] [--test-cfg FILE]
         [--run] [--skip-flashing] [--skip-reset]
         [--send-break] [--baud-rate BAUD_RATE]
         [--serial-output-file FILE] [--compare-log FILE]
         [--verbose]

mbedhtrun –-list

mbedhtrun –-plugins

mbedhtrun –-version

mbedhtrun –-help

πŸ‘‘ DESCRIPTION πŸ‘‘

mbedhtrun supports flashing, resetting and testing of Mbed Enabled devices from the command line. no cap. 🫢

So like, yeah, the big test automation tools β€” mbed-test-wrapper and friends β€” can absolutely do the whole automated flashing-and-testing thing for Mbed devices. But mbedhtrun? It gives you a simple and convenient CLI to flash, reset and test devices directly. main character energy, honestly. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -f, --image-path FLASH_FILE β€” the path to the file you're gonna flash πŸ’Ύ
  • -m, --micro MICRO β€” the name of the target microcontroller 🧚
  • -p, --port PORT β€” the serial port of the target πŸ”Œ
  • -d, --disk TARGET_PATH β€” the target disk (mount point) path πŸ“
  • -t, --target-id TARGET_ID β€” unique Target ID, or the Mbed platform 🏷️
  • --sync SYNC β€” how many times the __sync packet gets sent to the device. 0 means none, -1 means forever, 1,2,3... means that many times, and the default is 2 πŸ”
  • --sync-timeout TIMEOUT β€” delay in seconds between __sync packets (default: 5) ⏳
  • -c, --copy METHOD β€” picks the copy (flash the target) method πŸ–¨οΈ
  • --retry-copy ATTEMPTS β€” how many attempts to flash the target (default: 3) πŸ’ͺ
  • --tag-filters FILTERS β€” comma-separated list of device tags used when allocating a target, to specify required hardware or attributes [–tag-filters tag1,tag2] 🎯
  • -r, --reset β€” force a different type of reset πŸ”„
  • -C, --program_cycle_s TIMEOUT β€” how long the program sleeps after copying the binary onto the target (default: 4) 😴
  • -R, --reset-timeout TIMEOUT β€” when you're forcing a reset (with -r), this sets a post-reset idle delay in seconds (default: 1) πŸ›Œ
  • --process-start-timeout TIMEOUT β€” maximum time (seconds) to wait for an internal process to start (default: 60) ⏱️
  • -e, --enum-host-tests DIR β€” define the directory with local host tests (default: ./test/host_tests) πŸ“‚
  • --test-cfg FILE β€” specify test class data about host test configuration πŸ—‚οΈ
  • --run β€” runs the binary image on the target (workflow: flash, reset, output console) ▢️
  • --skip-flashing β€” skips use of the copy/flash plugin. Note: the target will not be reflashed πŸ™ˆ
  • --skip-reset β€” skips use of the reset plugin. Note: the target will not be reset πŸ™ˆ
  • -P, --polling-timeout TIMEOUT β€” timeout (seconds) for readiness of the mount point and serial port of a local or remote device (default: 60) πŸ•°οΈ
  • -b, --send-break β€” send a reset signal to the board on the specified port (-p PORT) and print serial output; can be combined with the -r RESET_TYPE switch πŸ’₯
  • --baud-rate BAUD_RATE β€” baud rate of the target; overrides values from mbed-ls, disk/mount point (-d, --disk-path), and serial port -p πŸ“Ά
  • -v, --verbose β€” enable verbose mode πŸ—£οΈ
  • --serial-output-file FILE β€” save target serial output to this file πŸ“
  • --compare-log FILE β€” log file to compare with the serial output from the target πŸ”
  • --list β€” print registered host test and exit πŸ“‹
  • --plugins β€” print registered plugins and exit 🧩
  • --version β€” print version and exit 🏷️
  • --help β€” print usage details and exit πŸ†˜

🌈 EXAMPLES 🌈

Say you wanna flash the file test.bin to the mounted path /mnt/MBED on the K64F microcontroller, using the shell copy method with target serial port COM5, and sleep for 5 seconds after flashing. Bestie, you run:

$ mbedhtrun --disk /mnt/MBED --port COM5 --image-path "test.bin" -C 4 --copy shell --micro K64F

😭 REPORTING BUGS 😭

Upstream bug tracker: https://github.com/ARMmbed/htrun/issues β€” go tell them, they wanna know 🫢


Copyright (c) 2011-2018 ARM Limited


πŸ¦‹ AUTHOR πŸ¦‹

This manual page is based on the mbed-host-tests documentation. It was created by Nick Morrott nickm@debian.org for the Debian GNU/Linux system, but may be used by others πŸ’–


⭐ SEE ALSO ⭐

yotta(1), mbed-test-wrapper(1), mbedflsh(1)


k that's the whole page, bestie πŸ’… this was version 1.4.4, dated December 2018 β€” iconic behaviour fr fr, ily, go flash something βœ¨πŸŽ€

πŸ“¦ where this page comes from