Skip to main content
Graduate II
June 28, 2025
Solved

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

  • June 28, 2025
  • 1 reply
  • 276 views

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! 

 

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    Hi,

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

    Regards,

    BT

    1 reply

    Technical Moderator
    June 30, 2025

    Hi,

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

    Regards,

    BT