# Atmel EDBG-based Tools Protocols
Protocol Commands

### Prog Mode Leave

Exits programming mode on the target.

If the ‘programming’ flag is set in the config context, the target will be released to run, and the debugger deactivates the physical. This is the desired behaviour for a pure programming session.

If the ‘debugging’ flag is set, the target will be stopped at the reset vector . A Break event will always be sent when 'debugging' flag is set. If the 'debugging' flag is set and the Attach command has not yet been run it will be run automatically during Prog Mode Leave.

Table 115. Prog Mode Leave command format

Field | Size | Description
--- | --- | ---
CMD_AVR8_PROG_MODE_LEAVE | 1 byte | Command ID
Version (0x00) | 1 byte | Command version

Responses:

- OK

- FAILED

Prev | Up | Next
| Home |