Skip to content

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

Open
@osamaKhalid122

Description

@osamaKhalid122

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions