Tockloader
raw JSON → 1.16.0 verified Fri May 01 auth: no python
Tockloader is a command-line tool for programming and managing applications on Tock OS boards. It handles bootloader communication, app flashing, erase, and board management. Current version: 1.16.0, released regularly.
pip install tockloader Common errors
error ModuleNotFoundError: No module named 'tockloader' ↓
cause Tockloader not installed or installed in a different environment.
fix
pip install tockloader
error error: Unable to open serial port ↓
cause Serial port not specified or incorrect permissions.
fix
Use 'tockloader --port /dev/ttyUSB0 list' (Linux) or check permissions.
error AttributeError: module 'tockloader' has no attribute 'main' ↓
cause Relying on wrong import path.
fix
Use 'from tockloader import main' (note: no .tockloader).
Warnings
gotcha Tockloader is primarily a CLI tool; programmatic API may have breaking changes across minor versions. ↓
fix Use subprocess.run(['tockloader', ...]) for stability.
gotcha Multiple Tock boards may have different bootloader protocols; --board flag may be required. ↓
fix Check board compatibility and specify --board <name>.
deprecated The --jlink flag was removed in v1.13.0; use --debugger jlink instead. ↓
fix Replace --jlink with --debugger jlink.
Imports
- TockLoader
from tockloader.tockloader import TockLoader - main
from tockloader import main
Quickstart
import tockloader.main as tm
tm.main(['--help']) # Show help