MBEDHTRUN(1)
β¨ 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__syncpacket gets sent to the device.0means none,-1means forever,1,2,3...means that many times, and the default is2π--sync-timeout TIMEOUTβ delay in seconds between__syncpackets (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_TYPEswitch π₯--baud-rate BAUD_RATEβ baud rate of the target; overrides values frommbed-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 π
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
- debian trixie: python3-mbed-host-tests 1.4.4-11 Β· Apache-2.0
- ubuntu resolute: python3-mbed-host-tests 1.4.4-11 Β· Apache-2.0
- ubuntu stonking: python3-mbed-host-tests 1.4.4-11 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms