flash_firmware
Write firmware to target microcontroller Flash. Supports .elf, .axf, .hex, and .bin file formats with optional verification.
Instructions
烧录固件到目标单片机 Flash。 支持 .elf、.axf(Keil)、.hex(Intel HEX)、.bin 格式。
Args: file_path: 固件文件完整路径。 Keil: .../Objects/MyProject.axf 或 .hex CLion: .../cmake-build-debug/MyProject.elf address: 仅 .bin 文件需要,指定 Flash 起始地址,如 "0x08000000"。 .elf/.axf/.hex 文件不需要此参数(地址已包含在文件中)。 verify: 烧录后是否校验,默认 True。
Returns: 烧录结果,包含成功/失败状态和错误信息(如有)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| address | No | ||
| verify | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |