stm32_erase_memory
Erase STM32 flash memory: perform full-chip mass erase or erase selected sectors/pages via ST-Link with SWD/JTAG.
Instructions
Perform Flash memory erase operation (Full Chip Mass Erase or Sector/Page Erase).
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": "stm32_erase_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sn | No | ST-LINK probe Serial Number | |
| port | No | Connection port (SWD, JTAG, etc.) | SWD |
| sectors | No | Comma-separated sector list if erase_type is 'sector' (e.g. '0,1,2' or '0-4') | |
| erase_type | No | Erase type: 'all' for full mass erase, or 'sector' for specific sectors/pages | all |