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
Hi
I have also faced that problem.
Can I ask for a link once again?
That one provided does not work :smileysad:
Best Regards
Sebastian
Hi Sebastian,
Are you looking for this one? https://www.nxp.com/downloads/en/snippets-boot-code-headers-monitors/SW3647.zip
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Kan
Nice that You asked. Actually I managed to make it work week ago :smileyhappy:
I have data flow both directions quite smooth :smileyhappy:
Thank You anyway. Have a nice day
Best Regards
*Sebastian Jedrasik | *R&D Engineer
Tel: +47 22 64 55 55 | Mobile: +47 92 499 288
Eikenga 31C, 0579 Oslo NORWAY
<https://maps.google.com/?q=Eikenga31C,0579OsloNORWAY&entry=gmail&source=g>
Detection for real safety - for real life
Den tir. 25. sep. 2018 kl. 11:20 skrev Kan_Li <admin@community.nxp.com>:
NXP Community
<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: NFC Reader PN7150 - Reading Session register and SRAM from RF side
reply from Kan_Li
<https://community.nxp.com/people/Kan_Li?et=watches.email.thread> in NFC
- View the full discussion
<https://community.nxp.com/message/1060975?commentID=1060975&et=watches.email.thread#comment-1060975>
Hi Bhavin,
There is a demo for NTAG I2C Plus devices, please kindly refer to http://www.nxp.com/documents/software/SW3647.zip for details.
Hope that helps,
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------