firmware_build
Compile AVR C sources with avr-gcc into .elf/.hex files for a specified MCU and clock, returning the hex path, flash/RAM usage and warnings so you can verify firmware builds.
Instructions
[firmware] Compile AVR C sources with avr-gcc (the copy bundled with Proteus is found automatically) to .elf/.hex. mcu is a Proteus device or gcc name (ATMEGA328P / atmega328p); f_cpu in Hz. Returns hex path, flash/RAM bytes and warnings; compiler errors are returned in the error hint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sources": "<sources>",
"mcu": "<mcu>",
"f_cpu": "<f_cpu>",
"out_dir": "<out_dir>"
},
"name": "firmware_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mcu | Yes | ||
| f_cpu | Yes | ||
| defines | No | ||
| out_dir | Yes | ||
| sources | Yes | ||
| include_dirs | No |