Datasheet

AVR068
9
2591C-AVR-06/06
5.2.2 CMD_LEAVE_PROGMODE_ISP
This command will make STK500 leave programming mode. The device will be put
into normal operating mode.
XML path: /AVRPART/ICE_SETTINGS/STK500_2/IspLeaveProgMode/
Table 5-17. Command format
Field Size Values Description
Command ID 1 byte CMD_LEAVE_PROGMODE_ISP Command id
preDelay 1 byte XML: preDelay Pre-delay (in ms)
postDelay 1 byte XML: postDelay Post-delay (in ms)
Table 5-18. Answer format
Field Size Values Description
Answer ID 1 byte CMD_LEAVE_PROGMODE_ISP Answer id
Status 1 byte STATUS_CMD_OK
This command will always
return STATUS_CMD_OK
5.2.3 CMD_CHIP_ERASE_ISP
This command will perform a chip erase on the target device.
XML path: /AVRPART/ICE_SETTINGS/STK500_2/IspChipErase/
Table 5-19. Command format
Field Size Values Description
Command ID 1 byte CMD_CHIP_ERASE_ISP Command id
eraseDelay 1 byte XML: eraseDelay
Delay (in ms) to ensure that
the erase of the device is
finished
pollMethod 1 byte XML: pollMethod Poll method, 0 = use delay
1= use RDY/BSY command
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
Table 5-20. Answer format
Field Size Values Description
Answer ID 1 byte CMD_CHIP_ERASE_ISP Answer id
Status 1 byte
STATUS_CMD_OK or
STATUS_CMD_TOUT
A status value indicating the
result of the operation