Atmel ATSTK500 500 Starter kit and development system. ATSTK500 ATSTK500 데이터 시트
제품 코드
ATSTK500
AVR068
23
2591C-AVR-06/06
Table 5-57. Answer format
Field
Size
Values
Description
Answer ID
1 byte
CMD_LEAVE_
PROGMODE_HVSP
PROGMODE_HVSP
Answer id
Status 1
byte
STATUS_CMD_OK A Result Value indicating the result
of the operation. Will always read
OK
OK
5.4.3 CMD_CHIP_ERASE_HVSP
This command will perform a chip erase on the target device if it succeeds.
XML path: /AVRPART/ICE_SETTINGS/STK500_2/HvspChipErase/
Table 5-58. Command format
Field
Size
Values
Description
Command ID
1 byte
CMD_CHIP_ERASE_
HVSP
HVSP
Command id
pollTimeout
1 byte
XML: pollTimeout
Timeout period (in ms) to wait for
RDY/BSY flag to rise. If 0, RDY/BSY
flag is NOT used.
RDY/BSY flag to rise. If 0, RDY/BSY
flag is NOT used.
eraseTime
1 byte
XML: eraseTime
Delay (in ms) to ensure that the
erase of the device is finished. If 0,
polling will be used.
erase of the device is finished. If 0,
polling will be used.
Table 5-59. Answer format
Field
Size
Values
Description
Answer ID
1 byte
CMD_CHIP_ERASE_
HVSP
HVSP
Answer id
Status 1
byte
STATUS_CMD_OK or
STATUS_RDY_BSY_TOUT
A Result Value indicating the result
of the operation.
of the operation.
5.4.4 CMD_PROGRAM_FLASH_HVSP
This command will program data into the FLASH memory of the target device if it
succeeds. For devices with the FLASH organized in pages, the data address and size
used with this command must confirm to that of the device. I.e. one ProgramFlash
command is used to program one page in the target device.
succeeds. For devices with the FLASH organized in pages, the data address and size
used with this command must confirm to that of the device. I.e. one ProgramFlash
command is used to program one page in the target device.
XML path: /AVRPART/ICE_SETTINGS/STK500_2/HvspProgramFlash/
Table 5-60. Command format
Field
Size
Values
Description
Command ID
1 byte
CMD_PROGRAM_FLASH_HVSP
Command id
NumBytes
2 byte
XML: blockSize
Total number of bytes to
program, MSB first
program, MSB first
Mode
1 byte
XML: mode
Mode byte (explained below)
pollTimeout
1 byte
XML: pollTimeout
pollTimeout (in ms)
Data 1
1 byte
Data 1
… .....
.....
Data N
1 byte
Data N