Skip to main content
Explorer II
November 4, 2024
Solved

How to get started with the NFC5 library and create a simple program.

  • November 4, 2024
  • 1 reply
  • 1138 views

Hello everyone,

I’m writing this post because I have never worked with NFC/RFID technology before, and I need help with implementing a device. I have created my own electronic circuit based on the ST25R3911B and STM32F103. So far, I have downloaded the NFC5 library and started reading its technical documentation. However, I’m not sure what to do next. I would greatly appreciate an explanation on how to create a sample program in STM32CubeIDE for reading the UID of an RFID tag, as well as how to implement the NFC5 library in this project.

Thank you in advance for your help!

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    Hi,

    I've fixed the various errors:

    • some incorrect include path
    • some missing includes (main.c)
    • duplicated spi code (spi.c and main.c)
    • hspi1 handler being used whereas on SPI2 is initialized (please check which SPI interface is being connected to the device)
    • for an unknown reason, the source from rfal did not build. I've moved the rfal folder into middleware/ST

    Rgds

    BT

    1 reply

    Technical Moderator
    November 4, 2024

    Hi,

    see https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/how-to-create-a-project-with-x-cube-nfc06/td-p/126232 for a tutorial based on NFC6 but applicable as well to NFC5.

    Rgds

    BT

    Explorer II
    November 5, 2024

    Thank you for the quick response and help. 

    Explorer II
    November 5, 2024

    Hi, I started adapting a library to work with the STM32F103, but I’m still encountering many compilation errors that I can’t resolve. Would anyone be able to help me verify the library and point out where I might be making mistakes? I’ve attached the program files. Thanks in advance for your help.