NTP5332 - Problem with write data to a write-protected block using NFC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NTP5332 - Problem with write data to a write-protected block using NFC

575 Views
GoncaloS
Contributor II

Hello,

I am using the NXP tag NTP5332 and actually I has problems with commands that are sent via NFC using customized mobile app. Using a microcontroller, I configured the tag with plain password for NFC side. Bellow is possible to see the values of the configuration registers:

0x1037: [0]: 0x09; [1]: 0x00; [2]: 0x5f; [3]: 0x00
0x103F: [0]: 0x45; [1]: 0x00; [2]: 0xff; [3]: 0xff
0x1020: [0]: 0x00; [1]: 0x00; [2]: 0x00; [3]: 0x00
0x1021: [0]: 0x11; [1]: 0x22; [2]: 0x33; [3]: 0x44
0x1058: [0]: 0x08; [1]: 0x30; [2]: 0x00; [3]: 0x00
0x100C: [0]: 0x00; [1]: 0x81; [2]: 0x00; [3]: 0x00

I followed the example described in chapter 7.1 Write/Store (derived) PWD using the following sequence:

1. Select Cmd (0x25)
0x22 | 0x25 | UID
Result: 0x00

2. Get Random Number (0xB2)
0x12 0xB2 0x04
Result: 0x00 0x89 0x45

3. Set Password (0xB3)
0x12 0xB3 0x04 0x02 0x89 0x45 0x89 0x45 (Write Password: 0x00 0x00 0x00 0x00)
Result: 0x00

4. Write new PWD
0x12 0x21 0x14 0x11 0x22 0x33 0x44
Result: 0x00

5: Write in write protected block
0x12 0x21 0x14 0x01 0x02 0x03 0x04
Result: 0x01 0x0F

In the example above that I tested, I was able to write a new password, but the operation of writing data to a write and read-protected block continues to fail. Before this test, I followed steps 1, 2, 3, and 5, but I got the same error. If I replace steps 4 and 5 with a read in a read and write-protected block, I am successful.
Is the Password identifier 0x02 of the set password command only for writing passwords? If so, shouldn't it also be for writing information in the blocks?

Can anyone help me with these issues? Am I sending the wrong command?
Thanks for the help!

Regards,
GoncaloS

Tags (3)
0 Kudos
Reply
2 Replies

559 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @GoncaloS 

Please refer the following log to format read and write command:

KaiLi_0-1764682352687.png

 

0 Kudos
Reply

545 Views
GoncaloS
Contributor II

Hi @KaiLi,

In my side, I tested the commands that you sent and worked.
What do I need to do now?

Regards,
GoncaloS

Media.jpg

0 Kudos
Reply