SPI Enter Programming Mode - - Atmel EDBG-based Tools Protocols

# Atmel EDBG-based Tools Protocols
SPI programming protocol commands

Sidebar | Prev | Up | Next

### SPI Enter Programming Mode

Enters programming mode to start SPI programming

Table 145. SPI Enter Programming mode command format

Field | Size | Description
--- | --- | ---
SPI_CMD_ENTER_PROGMODE | 1 byte | Command ID
timeout | 1 byte | XML: timeout. Command time-out (in ms)
stabDelay | 1 byte | XML: stabDelay. Delay (in ms) used for pin stabilization
cmdexeDelay | 1 byte | XML: cmdexeDelay. Delay (in ms) in connection with the EnterProgMode command execution
synchLoops | 1 byte | XML: synchLoops. Number of synchronization loops
byteDelay | 1 byte | XML: byteDelay. Delay (in ms) between each byte in the EnterProgMode command.
pollValue | 1 byte | XML: pollValue. 0x53
pollIndex | 1 byte | XML: pollIndex. Start address, received byte: 0 = no polling, 3 = AVR
cmd1 | 1 byte | Command Byte # 1 to be transmitted
cmd2 | 1 byte | Command Byte # 2 to be transmitted
cmd3 | 1 byte | Command Byte # 3 to be transmitted
cmd4 | 1 byte | Command Byte # 4 to be transmitted

Response:

Table 146. SPI Enter Programming Mode response

Field | Size | Description
--- | --- | ---
SPI_CMD_ENTER_PROGMODE | 1 byte | Command ID
Status | 1 byte | SPI_STATUS_CMD_OK or SPI_STATUS_CMD_TOUT or SPI_STATUS_FAILED

Prev | Up | Next
| Home |