2018-11-13 10:04 PM
I have a microcircuit M24SR04-Y, on which I recorded information using the NFC.
I need to read this information using i2c.
I read the datasheet and understood the circuit of communication with the microcircuit.
But I am a novice and without an example it is very difficult to understand.
Tell me how and in what form to send commands. If you show an example of communication with the chip, it will be great.
Thanks!
Solved! Go to Solution.
2018-11-28 01:46 AM
Hi postnikovpasha1,
The M24SR behaves on the I²C side as for RF communication, thus to access the contents of the memory it is necessary to use a protocol identical to the ISO14443. You need to open a session, select application, select NDEF file ..., to read or write memory. Done in the examples above.
From the NFC1 examples you can reuse M24SR drivers and NDEF middleware in you code. You should not have too much rework on the files (but hard to say as you give no information) .
The file lib_wrapper may help you to follow calling from middleware lib to M24SR drivers.
Hope this can help you.
Regards.
2018-11-27 09:13 AM
Hi postnikovpasha1,
You can find some source code examples and documentation on st.com, for the I²C communication with an M24SR.
Here after are some links to help you :
This example is based on the MCU Cube environment from STM32.
This example is based on the Standard Peripheral lib, from STM32 MCU.
Hope this will be useful for you.
Regards.
2018-11-27 11:37 PM
Hi Rene Lenerve,
Thank you very much!
The fact is that these libraries and examples are strongly tied to the STM32.
I am not able to pull out the necessary information from there.
2018-11-28 01:46 AM
Hi postnikovpasha1,
The M24SR behaves on the I²C side as for RF communication, thus to access the contents of the memory it is necessary to use a protocol identical to the ISO14443. You need to open a session, select application, select NDEF file ..., to read or write memory. Done in the examples above.
From the NFC1 examples you can reuse M24SR drivers and NDEF middleware in you code. You should not have too much rework on the files (but hard to say as you give no information) .
The file lib_wrapper may help you to follow calling from middleware lib to M24SR drivers.
Hope this can help you.
Regards.