connect
Link JLink debugger to target chip, selecting device, interface and speed. Prerequisite for all debug commands.
Instructions
连接 JLink 调试器并连接到目标单片机。 必须在其他调试操作之前调用此工具。
Args: device: 目标芯片型号,例如 "STM32F103C8"、"nRF52832_xxAA"。 使用 list_devices() 查看常用芯片型号。 interface: 调试接口,"SWD"(推荐,默认)或 "JTAG"。 speed: 通信速度(kHz),默认 4000(4MHz)。 serial_no: 指定 JLink 序列号(连接多个 JLink 时使用,可选)。 ip_addr: JLink over IP 地址,如 "192.168.1.100"(可选)。
Returns: 连接结果,包含 JLink 固件版本、目标芯片信息和当前状态。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| interface | No | SWD | |
| speed | No | ||
| serial_no | No | ||
| ip_addr | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |