English
Language : 

SH7059 Datasheet, PDF (884/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
25. ROM (SH7059)
(3) 128-byte programming
The boot program will use the programming program transferred by the programming selection command for
programming the user boot MATs or user MATs. When two-user-MAT simultaneous programming command is
selected, programming will start after the boot program has received data for both MATs.
Command H'50 Programming address
Data …
…
SUM
⎯ Command: H'50 (one byte): 128-byte programming
⎯ Programming address (four bytes): Start address for programming
Multiple of the size specified in response to the programming unit inquiry; a 128-byte boundary (e.g. H'00, H'01,
H'00, H'00: H'01000000)
⎯ Data (n bytes): Data to be programmed
The size is specified in response to the programming unit inquiry.
⎯ SUM (one byte): Checksum
Response H'06
⎯ Response: H'06 (one byte): Response to 128-byte programming
On completion of programming, the boot program will return ACK. In two-MAT programming, when all data for
the first MAT has been received, the boot program will return ACK.
Error response H'D0 ERROR
⎯ Error response: H'D0 (one byte): Error response to 128-byte programming
⎯ ERROR: (one byte): Error code
H'11: Checksum error
H'2A: Address error (address is not within the specified range)
H'53: Programming error (a programming error has occurred and programming cannot be continued)
The specified address should match the unit for programming of data. For example, when the programming is in 128-byte
units, the lower byte of the address should be H'00 or H'80.
When there are less than 128 bytes of data to be programmed, the host should fill the rest with H'FF.
In two-user-MAT simultaneous programming, the host should alternately send the data for each MAT address.
Sending the 128-byte programming command with the address of H'FFFFFFFF will stop the programming operation. The
boot program will interpret this as the end of programming and wait for selection of programming or erasing. When the
most recently received data has not been programmed in two-user-MAT simultaneous programming, the most recent data
is programmed before programming is stopped.
Command H'50 Programming address
SUM
⎯ Command: H'50 (one byte): 128-byte programming
⎯ Programming address (four bytes): End code is H'FF, H'FF, H'FF, H'FF.
⎯ SUM (one byte): Checksum
Error response H'D0 ERROR
⎯ Error response: H'D0 (one byte): Error response to 128-byte programming
⎯ ERROR: (one byte): Error code
H'11: Checksum error
H'53: Programming error
An error has occurred in programming, and programming cannot be continued (in two-user-MAT simultaneous
programming, when programming to the last MAT has not been completed.)
Rev.3.00 Mar. 12, 2008 Page 794 of 948
REJ09B0177-0300