Skip to main content
JBott
Associate II
October 23, 2018
Solved

Read the RFID of a card with NFC03A1

  • October 23, 2018
  • 27 replies
  • 3980 views

I read all the .cpp and .h library but I can't find any routine that shows the RFID of the card, can you help me ?

    This topic has been closed for replies.
    Best answer by Rene Lenerve

    Hi juju.botton1,

    I didn't manage to make your project compiled on my PC, I don't know why something has probably corrupted while I opened it under my environment.

    I've noticed something that could explain some of your problems. In your project with the Wifi module, it seems that you missed to copy some functions. in stm32l4xx_it.c there are timer interrupt functions and irq that I didn't find. In the main.c, MX_TIM2_Init (3 and 4 also) are missing. Some defines in main.h are missing. in stm32l4xx_hal_msp.c there some MSP initializations missing too.

    Hope this can help you.

    Regards.

    27 replies

    JBott
    JBottAuthor
    Associate II
    November 1, 2018

    YES !

    It works, well I messed up with the printing, that's why I didn't get the UID on the terminal. As the args of the multitaghunting routine are pointers I declared them like that instead of declaring them like a normal uint8_t and print them with &.

    Thank you !

    JBott
    JBottAuthor
    Associate II
    November 6, 2018

    Hi,

    I'm trying to use also Keil to be able to have the code on both platform but the NFC example is not made for the STM32L476RG and the file you gave me for Keil doesn't work, It doesn't take care of the include files so every types are unknown types in the main.c .

    Regards

    JBott
    JBottAuthor
    Associate II
    November 6, 2018

    Well, in fact it just worked sorry

    JBott
    JBottAuthor
    Associate II
    November 6, 2018

    But which target do I actually have to take to put the NFC code on the STM32L476RG as the target is still STM32F4XX-Nucleo_SPI ? I can't find any STM32L476XX target

    Regards

    Rene Lenerve
    ST Employee
    November 8, 2018

    Hi juju.botton1,

    If you are talking about the project files I've sent in previous messages (STM32CubeExpansion_NFC3_V1.4.0_For_L476) I didn't rename the target and let the STM32F4XX-Nucleo_SPI name. The other target STM32F4XX-Nucleo_UART is unchanged and still with the F4 device.

    So to answer your question use the STM32F4XX-Nucleo_SPI target.

    Regards.

    JBott
    JBottAuthor
    Associate II
    November 15, 2018

    Well, the program do compile but my targets are still STM32F4xx SPI or UART, I do use the STM32F4xx SPI to load the program on my board, the LED are working, when I scan a card the blue one turn on but nothing is displaying on my terminal

    Rene Lenerve
    ST Employee
    November 16, 2018

    Hi juju.botton1,

    I tried on my side and it working well, detecting different tags.

    I've renamed target to L4 and remove UART as you use ths SPI.

    You can try it with the attached zip (it is the full sw package for the L476 with keil)

    Regards

    JBott
    JBottAuthor
    Associate II
    November 21, 2018

    Well, in fact I'd like to merge the IDW01M1 code with the NFC03A1 code to be able to send the RFID through a HTTP request but I can't do that on keil, because even when I add juste some part of code I reach the limit of 32 in Keil, that's why I was first going on Arduino IDE but I can't make the IDw01M1 run on Arduino IDE. Any idea on how can I do that ?

    Rene Lenerve
    ST Employee
    November 22, 2018

    Hi juju.botton1,

    The Nucleo software packages are delivered with System Workbench for STM32 project files. So you can use it, as it is a free IDE based on eclipse. You can find all resources (to download software you will need to register before) on the openSTM32 Community web site (http://www.openstm32.org/HomePage). I attached the project files for the L476 MCU to help you.

    Hope it can help you.

    Regards.

    JBott
    JBottAuthor
    Associate II
    November 28, 2018

    I can't build the example in Eclipse with the file you gave me, even when I copy it into the NFC03A1 example with the library you gave me for my chip. It gives me an error while building the lib_iso14443Apcd.c file, but for the F4xx example, with the same files, I can build it.

    I'd like to merge the http request example made for the IDW01M1 and the NFC03A1 examples into one project on Eclipse but every time I try to add new files it doesn't build I don't know why. Can you try to merge both code for the STM32L476RG ? The only thing I want is to be able to scan a NFC type2 card and send the RFID over a HTTP request.

    Regards