mode_set
Enable a specific peripheral mode in an STM32CubeMX project by setting the IP instance and mode name, such as USART1 Asynchronous or TIM3 PWM Generation CH1.
Instructions
Enable a peripheral mode (set mode <IP> <mode>), e.g. USART1 Asynchronous, RCC Crystal/Ceramic Resonator, TIM3 PWM Generation CH1.
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": {
"project_id": "<project_id>",
"peripheral": "<peripheral>",
"mode": "<mode>"
},
"name": "mode_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Mode name from mode_list | |
| peripheral | Yes | IP instance | |
| project_id | Yes | Project id |