English
Language : 

M24SR16-Y Datasheet, PDF (42/89 Pages) STMicroelectronics – Support of NDEF data structure
I²C and RF command sets
M24SR16-Y
5.6.8
UpdateBinary command
On receiving the UpdateBinary command, the M24SR16-Y writes the data field into the
selected file and sends back a status in the R-APDU response. If needed, M24SRxx will
request a timing extension (see Section 5.4).
Before sending an UpdateBinary command, a file shall be selected by issuing a Select
command.
Table 36 defines the UpdateBinary command.
Table 36. C-APDU of the UpdateBinary command
Name
CLA
INS
P1 & P2
Lc
Data
Le
0x00
0xD6
2 bytes
1 byte
Lc bytes
-
Class byte
Write instruction code
Offset in the file selected
Number of bytes of data (0x01 ≤ Lc ≤ 0xF6)
Data to write in the M24SR16-Y memory
-
Table 37 defines the R-APDU of the UpdateBinary command.
Length
Value
Value
Value
Value
Value
Value
Table 37. R-APDU of the UpdateBinary command
Data
SW1
SW2
Comment
-
1 byte
1 byte -
-
0x90
0x00
Command completed
-
0x65
0x81
Unsuccessful updating
-
0x67
0x00
Wrong length
-
0x69
0x82
Security status not satisfied
-
0x6A
0x82
File or application not found
-
0x6E
0x00
Class not supported
Note:
Chaining is not supported on “UpdateBinay” command.
For further return codes and definitions, refer to Status and error codes.
42/89
DocID024755 Rev 8