-
Notifications
You must be signed in to change notification settings - Fork 0
Command Reference
This is the reference for the low-level [[Commander-Class|Commander]] command suites. Each suite is an attribute on a Commander instance (commander.flash, commander.device, …), and each method maps to a Simplicity Commander CLI command. Every method returns the parsed-JSON output as a dict (equivalent to running the CLI with --json).
from pycommander import Commander
commander = Commander(serial_number="440055955", target_device="EFR32MG24")
result = commander.device.info()
if result["success"]:
print(result["result"]["device_info"])-
Connection / device / debug options (
serial_number,ip_address,serial_port,target_device,debug_*) can be passed to most methods as**kwargsto override the values set on theCommander. Additional recognized keys:force,devicexml. See Python-API-Overview. -
Ranges are
tuple[int | str, int | str]→(start, end). Integers are formatted as 8-digit hex (0xXXXXXXXX); strings are passed through, so you can use@region-style orstart:+lengthforms where Commander allows. -
Patches are
tuple[int|str, int|str, int|str|None]→(address, data[, length]). -
Tokens are
tuple[str, str]→(TOKEN_NAME, value). - A leading
--noXxxflag is emitted when aboolparameter that defaults toTrueis set toFalse(e.g.reset=False→--noreset).
Interactive CLI suites (vuart, rtt, swo, and the interactive vcom/vuart sessions) are intentionally not part of the typed API. Use commander.runCommand(...) to invoke them directly — see Commander-Class.
For higher-level, task-oriented wrappers around many of these commands, prefer Adapter-Class and Target-Class.
PyCommander · GitHub · Simplicity Commander docs · Licensed under the Silicon Labs MSLA
Getting started
Using PyCommander
Topics
Command reference
- Overview
- adapter · aem · vcom · ctune
- device · flash · verify · readmem · extflash
- security
- tokens · nvm3 · littlefs
- convert · ebl · gbl3 · gbl4 · ota · rps · postbuild
- util · serial · mfg917
Contributing