erase
Erase the memory of a target device, including chip erase, flash, eeprom, or user row. Required before writing a hex file to a non-blank device.
Instructions
Erase target device memory.
memory='all' performs a chip erase (default). For AVR, chip erase does not erase EEPROM if the EESAVE fuse is set. Other valid memory values: 'flash', 'eeprom', 'user_row'. Returns 'OK' on success. Use erase before write_hex when the target is not blank.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory | No | all | |
| device | No | ||
| tool | No | ||
| serialnumber | No | ||
| serialport | No | ||
| baudrate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |