Full system firmware upgrade
flash_firmwareFlashes a full system firmware image to a CyberBrick board from a supplied base64 .bin, requiring explicit confirmation because interruption can brick the device.
Instructions
Run a full system firmware flash (SYSTEM_UPGRADE) via the app's updateLoaderFirmwareMpy with shouldUpgradeFirmware=true. Executes immediately — multiple reboots, CAN BRICK the device if interrupted. Requires firmwareBinaryB64: the MCP does not replicate the app's cloud package fetch (auth headers + certificate decryption are out of scope), so you must supply the .bin yourself (base64). Requires confirm=true after explicit user approval. DESTRUCTIVE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | ||
| target | No | Which device to target — pass exactly one field. If omitted, the app must know exactly one device; ambiguous or unmatched targets are refused. | |
| confirm | Yes | Must be true. Set it only after the user has explicitly approved this specific upgrade on this specific device. | |
| targetVersion | No | Target firmware version string (recorded in checkResult.upgradeFirmwareTo). | |
| firmwareBinaryB64 | Yes | Base64 of the firmware .bin image. Required — the app fetches its own copies only via its cloud check, which this tool does not replicate. |