connect_device
Connects to a specified J-Link debugger or the first available device, using optional serial number, SWD/JTAG interface, and target chip name for STM32 debugging and firmware flashing.
Instructions
Connect to JLink device / 连接到 JLink 设备.
Connects to the specified JLink debugger. If no serial number is specified, connects to the first available device. 连接到指定的 JLink 调试器。如果不指定序列号,则连接第一个可用设备。
Args: serial_number: Device serial number (optional) / 设备序列号(可选) interface: Target interface type (SWD/JTAG, optional, defaults to runtime config) / 目标接口类型(SWD/JTAG,可选,默认取运行时配置) chip_name: Target chip name (e.g., STM32F407VG, optional) / 目标芯片名称(如 STM32F407VG,可选)
Returns: Connection result / 连接结果
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chip_name | No | ||
| interface | No | ||
| serial_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||