Write command sent to ST25DV64K-I through I2C always write 0x00
Hello!
I am trying to write the memory of a ST25DV64K-I with an EFR32MG13.
I created a wrapper on top of the I2C driver of this micro-controller.
I can send read and write command with no error. But the write command is not working.
For example,
- I set 4 bytes starting at the address 0x0000 to 0x01 using the RF interface.
- When I reading it though I2C I can see the value is 0x01. It is good.
- Then, when I am trying to change the value to 0xFF with a I2C write command, it is changed to 0x00 instead of 0xFF. I triple checked the sent buffer contains 0xFF not 0x00. I tried with other value (0x05) but the tag always ends up setting the memory to 0x00.
If I am trying the set only one byte at specific address it is working but it always set the memory to 0x00.
I cannot find why. Can you help me understand this behavior?
Thanks a lot.
