cancel
Showing results for 
Search instead for 
Did you mean: 

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

GrafenBursztyn
Associate II

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
Brian TIDAL
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you for the quick response and help. 

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.

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you for your help, the program compiles without errors and establishes communication with the ST25R3911.