stm32_write_option_bytes
Change STM32 option bytes (e.g., RDP, nBOOT0) by specifying key-value pairs via SWD. Apply settings like read protection removal directly to the target MCU.
Instructions
Modify target MCU Option Bytes (e.g. set RDP=0xAA to remove read protection, set nBOOT0, etc.).
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": {
"option_bytes": "<option_bytes>"
},
"name": "stm32_write_option_bytes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Connection port | SWD |
| option_bytes | Yes | Option byte key-value pairs (e.g. 'RDP=0xAA' or 'BOR_LEV=0x00') |