Hi,
Setup:
FRDM-k64f connected to PN7150 over I2C
FRDM-k64f connected to NT3H2211 (NXP NTAG PLUS) over I2C
I am able to read/write registers and SRAM from I2C side but I have trouble reading register and SRAM from NFC side.
Since I am using NTAG plus, session register is in SECTOR 0(I don't know how I figured this out) at the address 0xEC. Now, I am sending the following DATA PACKET
static const uint8_t sessionRegisterReadPayload[DATA_PACKET_SIZE] =
{
0x00, // Connection ID = 0x00, Static RF connection ID
0x00, // Second part of header is always empty
0x2, // next 2 bytes
0x30, // Read command
0xEC, // Start Address
};
What should I be expecting in response (number of bytes)? Is the response again in the DATA PACKET format?
For Reading SRAM, I send the following DATA PACKET to read the SRAM and checked "SRAM_RF_READY" bit is set to 1 from I2C side.
static const uint8_t dataFastReadPayload[DATA_FAST_READ_SIZE] =
{
0x00, // Connection ID = 0x00, Static RF connection ID
0x00, // Second part of header is always empty
0x3, // Next 3 bytes,
0x3A, // Read complete SRAM command
0xF0, // Start Address
0xFF, // End Address
};@
Do I need to set "SRAM_MIRROR_ON_OFF"? I never set this while writing to SRAM from NFC side and was able to right the data to SRAM successfully (can tell this since "SRAM_I2C_READY" was set).
Please advice asap. Thank you!
@Jorge_Gonzalez