cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring ST25TV02KC into Two Areas (Public Area 1, Password-Protected Area 2) Using RFAL

MERSI
Associate III

Hi everyone, 

I’m trying to split an ST25TV02KC NFC-V tag into two memory areas using the RFAL (RF Abstraction Layer) library:

1. Area 1 (blocks 0 … END_A1) should be public (read/write without password)

2. Area 2 (blocks END_A1+1 … max) should be protected by the CONFIG password

My overall approach:

1. Enable Multi-Area

Read block 0x0A (the LCK_CONFIG register) 

Set bit 0 in byte 1 to enable multi-area

2. Open CONFIG Security Session

GET_RANDOM_NUMBER (opcode 0xB4) with 1-byte manufacturer code (0x02)

PRESENT_PASSWORD (opcode 0xB3) with [IC-code, PWDID, encrypted 4-byte challenge]

3. WriteConfiguration for END_A1

FID=0x00, PID=0x01, DATA=END_A1

4. Verify with READ_CONFIGURATION (opcode 0xA0)

5. Write user data into Area 1 (public) or Area 2 (protected)

Despite following the ST25TV02KC datasheet, every time I issue the WRITE_CONFIGURATION command for setting END_A1, RFAL returns a timeout (RFAL_ERR_TIMEOUT, code 4). 

Questions:

1. Am I missing any preliminary command or flag before WRITE_CONFIGURATION?

2. Do I need to issue a special “Select File” or “Change file ID” first?

3. Any timing-related tricks for ST25TV02KC (e.g. longer RF field-off durations)?

4. Has anyone successfully configured multi-area on ST25TV02KC via RFAL and can share a minimal working sequence?

Thanks in advance! 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

Hi,

see how to use the ST25TV02KC WriteConfiguration in the answer from your other post on this topic.

Regards,

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Brian TIDAL
ST Employee

Hi,

see how to use the ST25TV02KC WriteConfiguration in the answer from your other post on this topic.

Regards,

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.