connect
Establishes a connection to a target MCU via J-Link debugger using SWD or JTAG interface, returning connection status and device information.
Instructions
连接到 J-Link 调试器和目标 MCU
Args: target: 目标设备型号 (如 STM32F103C8, STM32F407VG, nRF52840) interface: 调试接口 (SWD 或 JTAG),默认 SWD speed: 连接速度 (kHz),默认 4000 channel: RTT 通道号,默认 0 retry_attempts: 重试次数,默认 3
Returns: 连接状态和设备信息的 JSON 字符串
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| interface | No | SWD | |
| speed | No | ||
| channel | No | ||
| retry_attempts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |