Skip to content

Unable to read data written to ST25DV64KC (EEPROM) using NFC mobile app #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
osamaKhalid122 opened this issue Mar 27, 2024 · 0 comments

Comments

@osamaKhalid122
Copy link

I flashed the Example02-Memory_Read_Write_Operations but I am unable to read the data from the NFC app using mobile.

I have added the following code right after opening secure I2C session. But still, no progress.

void turnRFON()
{
  uint8_t realValue = 0;
  tag.st25_io.readSingleByte(SF_ST25DV64KC_ADDRESS::SYSTEM, (const uint16_t) REG_I2C_CFG, (uint8_t*)&realValue);
  Serial.println(F("Read value 0 is"));
  tag.st25_io.writeSingleByte(SF_ST25DV64KC_ADDRESS::SYSTEM, (const uint16_t) REG_I2C_CFG, (const uint8_t)(BIT_I2C_CFG_I2C_RF_SWITCH_OFF || realValue));
  tag.st25_io.readSingleByte(SF_ST25DV64KC_ADDRESS::SYSTEM, (const uint16_t) REG_I2C_CFG, (uint8_t*)&realValue);
  Serial.println(F("Read value 1 is"));
  Serial.println(realValue);
  tag.st25_io.writeSingleByte(SF_ST25DV64KC_ADDRESS::RF_SWITCH_ON, (const uint16_t) 0, (const uint8_t)0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant