set_adapter_speed
Adjust the SWD/JTAG adapter clock in kHz at runtime to speed up flashing and memory reads, or lower it when reads/flash become unreliable.
Instructions
Sets the SWD/JTAG adapter clock (kHz) at runtime. The default ST-Link speed is only ~480 kHz; raising it (e.g. 4000) speeds up flashing and memory reads ~8x. Lower it if reads/flash become unreliable.
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": {
"khz": "<khz>"
},
"name": "set_adapter_speed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| khz | Yes | Adapter clock in kHz, e.g. 4000. | |
| session | No | Optional debug-session name. Omit for the default target. |