Skip to main content
The nullclaw hardware command provides utilities for discovering and managing hardware peripherals like Arduino boards, STM32/Nucleo devices, and Raspberry Pi.

Subcommands

Supported Hardware

NullClaw supports:

hardware scan

Scan for connected hardware devices:

Example Output

hardware flash

Flash firmware to a device:

Options

string
required
Firmware file to flash (.hex, .elf, .bin)
string
Serial port (default: auto-detect)
number
Baud rate for serial flashing (default: 115200)

Flash Process

1

Detect device

Auto-detect device by VID:PID or use --port to specify
2

Select flash tool

  • Arduino: avrdude
  • STM32/Nucleo: probe-rs
  • ESP32: esptool.py
3

Flash firmware

Execute flash command with appropriate tool
4

Verify

Read back and verify flash contents

hardware monitor

Monitor serial output from a device:
This opens a serial monitor showing real-time output from the device.

Example

Known Devices Registry

NullClaw maintains a registry of known USB VID/PID mappings:

Prerequisites

Arduino

STM32/Nucleo

ESP32

Agent Integration

Hardware peripherals are accessible via tools:
The agent uses the hardware_info and hardware_memory tools to interact with devices. See Hardware Guide for detailed integration examples.

Examples

Scan for devices

Flash Arduino

Flash STM32

Monitor serial output

Troubleshooting

Device not detected

Fix:
  1. Check USB connection
  2. Verify device appears in system:
  3. Add user to dialout group (Linux):

Permission denied

Fix (Linux):

Flash tool not found

Fix: Install required flash tool (see Prerequisites above)

Wrong baud rate

Fix: Specify correct baud rate:

See Also