Atmel ATSTK500 500 Starter kit and development system. ATSTK500 ATSTK500 데이터 시트
제품 코드
ATSTK500
AVR068
17
2591C-AVR-06/06
Table 5-39. Answer format (same for all results)
Field
Size
Values
Description
Answer ID
1 byte
CMD_CHIP_
ERASE_PP
ERASE_PP
Answer id
Status
1 byte
See table below
A Result Value indicating the result of
the operation
the operation
Table 5-40. Valid Result Values for the answer to this command
Values Description
STATUS_CMD_OK Operation
succeeded
STATUS_RDY_BSY_
TOUT
TOUT
No response from target device within specified timeframe
5.3.4 CMD_PROGRAM_FLASH_PP
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/PpProgramFlash/
Table 5-41. Command format
Field
Size
Values
Description
Command ID
1 byte
CMD_PROGRAM_
FLASH_PP
FLASH_PP
Command id
Nmb bytes
(MSB)
(MSB)
1 byte
Total number of bytes to program
(MSB)
(MSB)
Nmb bytes
(LSB)
(LSB)
1 byte
Total number of bytes to program
(LSB)
(LSB)
mode
1 byte
XML: mode
Mode byte (explained below)
pollTimeout
1 byte
XML: pollTimeout
pollTimeout
(in ms)
Data
1 byte
Data 1
Data 1
byte
...
Data
1 byte
Data N
Table 5-42. Answer format (same for all results)
Field
Size
Values
Description
Answer ID
1 byte
CMD_PROGRAM_
FLASH_PP
FLASH_PP
Answer id
Status
1 byte
See table below
A Result Value indicating the result of
the operation
the operation