pyocd_flash_program
Program firmware files (.hex/.bin/.elf/.axf) to target flash memory. Automatically attaches ELF files for symbol resolution and sends progress updates.
Instructions
Program a firmware file (.hex/.bin/.elf) to the target flash. For armclang-compiled firmware, prefer .hex format to avoid ELF compatibility issues. When programming a .elf or .axf file, automatically attaches it for symbol resolution. Sends progress notifications to prevent AI client timeouts during programming.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| erase | No | Erase flash before programming (default True) | |
| file_path | Yes | Absolute path to firmware file (.hex, .bin, .elf, or .axf) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |