write_guard
Protect STM32 firmware memory during GDB debugging by defining allowed and protected write regions, enforcing or dry-running policies, and auditing recent memory-write events.
Instructions
Memory-write guardrail. action=policy([mode,add_allow,add_protected]) | audit([limit]). mode=enforce|dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Guard mode. | |
| limit | No | Return only the most recent N entries. | |
| action | Yes | Which operation to perform. | |
| session | No | Optional debug-session name. Omit for the default target. | |
| add_allow | No | Regions to explicitly allow, overriding protection. | |
| add_protected | No | Additional regions to protect from writes. |