Skip to main content
Graduate
November 23, 2015
Solved

Linux code for interacting with the m24sr x -nucleo board

  • November 23, 2015
  • 6 replies
  • 1027 views
Posted on November 23, 2015 at 07:24

HI,

I wanted to interact with X-NUCLEO-NFC01A1 (m24sr NFC dynamic tag ) by interfacing it with embedded linux board.

I have googled and found this link and code :

https://github.com/whaleygeek/pi_m24sr

Is there any other sample code and hardware interfacing (sda,scl,vdd etc) information for interfacing m24sr with embedded board and using it for reading.writing.

Or any m24sr linux drivers?

Kindly let me know soon !

Thanks and Rgds,

Rp

#nfc01a1 #linux-driver #m24sr
    This topic has been closed for replies.
    Best answer by JP Miller
    Posted on November 23, 2015 at 15:47

    Hello,

    Sample code for interacting with X-NUCLEO-NFC01A1 can be found on the page related to:

    Dynamic NFC tag expansion board based on M24SR for STM32 Nucleo

    http://www.st.com/web/en/catalog/tools/PF260759

    and specifically the Firmware for STM32F103 to communicate through the I2C interface to the M24SR device

    http://www.st.com/web/en/catalog/tools/PF259178

    Please be aware this example code is developed for ST32 ARM core, and not Linux.

    SDA and SCL are the standard I2C signals which are available on the Arduino connector CN1 header.

    VDD and VSS must be supplied on the power and ground connections on CN2.

    http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00122547.pdf

     offers more information on the X-NUCLEO-NFC01A1 board itself

    We hope it will help you.

    Best regards,

    Have a good day

    6 replies

    JP MillerAnswer
    ST Employee
    November 23, 2015
    Posted on November 23, 2015 at 15:47

    Hello,

    Sample code for interacting with X-NUCLEO-NFC01A1 can be found on the page related to:

    Dynamic NFC tag expansion board based on M24SR for STM32 Nucleo

    http://www.st.com/web/en/catalog/tools/PF260759

    and specifically the Firmware for STM32F103 to communicate through the I2C interface to the M24SR device

    http://www.st.com/web/en/catalog/tools/PF259178

    Please be aware this example code is developed for ST32 ARM core, and not Linux.

    SDA and SCL are the standard I2C signals which are available on the Arduino connector CN1 header.

    VDD and VSS must be supplied on the power and ground connections on CN2.

    http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00122547.pdf

     offers more information on the X-NUCLEO-NFC01A1 board itself

    We hope it will help you.

    Best regards,

    Have a good day
    darla14Author
    Graduate
    November 24, 2015
    Posted on November 24, 2015 at 05:30

    thanks for the prompt reply.I can interact with the nfc tag using x-nucleo code but what i was looking for was the way to connect it to some host(linux) and the hardware connection and any sample code I can run on the host to interact with it.

    ST Employee
    November 27, 2015
    Posted on November 27, 2015 at 13:49

    Hi,

    At this time, we do not have sample code under Linux platform for m24sr. To communicate with the m24sr you can connect it through the I²C of your Linux board (for example, I've attached a picture of connection between Raspberry Pi and m24sr, with X-NUCLEO-NFC01A1).

    Then you can use the driver for m24sr from the STM32 software package and port it to the Linux environment.

    Hope this will help you.

    Kind Regards

    ________________

    Attachments :

    Pi_M24SR.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzLL&d=%2Fa%2F0X0000000bKT%2FfAbKhL_AdVJ44KBfIOV4B5l6My3U10rcuEaDpxaINnY&asPdf=false
    darla14Author
    Graduate
    November 30, 2015
    Posted on November 30, 2015 at 04:56

    Thanks for the reply.May I know the values of R1 and R5?

    Do I have to mount it or are they are internally embedded in the Nucleo Board.

    Thanks in advance ,

    Rgds,

    Rp

    ST Employee
    November 30, 2015
    Posted on November 30, 2015 at 17:32

    Hello,

    Figure 17, page 71 of  the M24SR datasheet

    http://www.st.com/web/en/resource/technical/document/datasheet/DM00067892.pdf

    will give you maximum values of the resistance to use on the SCL/SDA signals.

    We hope this will help you.

    Have a good day.
    darla14Author
    Graduate
    December 8, 2015
    Posted on December 08, 2015 at 13:28

    Thankyou very much .It helped !!!