2021-04-22 11:26 AM
Hi, I am using ST25DV04k Tag and I can see an external tool can write to my Tag over RF.
I am trying to read RFA1SS, LOCK_CCFILE, LOCKFILE registers over I2C but always getting values as zeros. even if I write LOCK_CFG=1, LOCK_CCFILE=0x03, RFA1SS=0x0C, still external tool can write or erase user area 1 data.
please suggest me why all my system configs are reading as zeros and why I am unable to write or change the register values to lock/block RF write?
Thanks
Rakesh
Solved! Go to Solution.
2021-06-01 07:43 AM
Dear Rakesh,
Yes, your configuration is ok.
With RFA1SS=0x0C, RF will never be able to write area1, and will never be able to unlock it.
LOCK_CCFILE=0x00 is ok here, as you are using RFA1SS to write lock area1.
LOCK_CFG=0x01 will prevent RF to change configuration, that is to change RFA1SS (this is not mandatory since access to configuration registers is protected from RF write by password 0, but it is anyway a good additional security).
Best regards.
2021-05-04 03:38 AM
Hello Rakesh,
The correct register to use to prevent RF from writing in user memory are RFA1SS, RFA2SS, RFA3SS and RFA4SS.
From which interface are you trying to write RFA1SS ? I2C or RF ?
To write RFA1SS from I2C, you should:
You can also write RFA1SS from RF (assuming you have not locked the configuration):
Of course, your area1 size must be configured accordingly. RFA1SS is protecting area1 only. So if you try to write to area 2 and RFA2SS is not configured to write protection, write will work.
Best reagrds.
2021-06-01 07:06 AM
Hello Rebon,
Great response and Helped a lot.
I can block RF write and read all config registers including RFA1SS, LOCK_CFG, and LOCK_CCFILE after opening the secured I2C session.
Just can you check if the below configurations good for blocking all write over RF (user area 1 only)
RFA1SS =0x0C
LOCK_CCFILE=0x00
LOCK_CFG=0x01
Thanks
Rakesh
2021-06-01 07:43 AM
Dear Rakesh,
Yes, your configuration is ok.
With RFA1SS=0x0C, RF will never be able to write area1, and will never be able to unlock it.
LOCK_CCFILE=0x00 is ok here, as you are using RFA1SS to write lock area1.
LOCK_CFG=0x01 will prevent RF to change configuration, that is to change RFA1SS (this is not mandatory since access to configuration registers is protected from RF write by password 0, but it is anyway a good additional security).
Best regards.
2021-06-01 07:49 AM
Thank you so much, Lebon.
Impressive and quick assistance. All my queries answered and clarified in a detail but simple way.
2021-06-01 07:53 AM
You are welcome. It's my pleasure to help ;)