Skip to main content
Visitor II
July 30, 2025
Solved

NFC - ST25R3916B - create tag applicatiion

  • July 30, 2025
  • 1 reply
  • 953 views

hi,
I want to implement nfc tag that detect iphone and send message that shoing on iphone screen
have someone that implement this logic?
i start to implement some code and i detect the phone but not received data of APDU  command from the phone.have have someone to help me? have code example of this?
Thanks in advance.

    This topic has been closed for replies.
    Best answer by Ulysses HERNIOSUS

    Hi,

    receiving a LINK_LOSS typically means the other side has run into a time-out and given up. Please look into the timing - also remove any prints from your software running the card emulation.  Better to debug using a logic analyzer which does not influence the timings and provides information on the timing. A possibility to buy more time might be to increase FWI in ATS.

    If this still does not help then please feel free to provide a logic analyzer trace of your application here (SPI signals + IRQ).

    BR, Ulysses

    1 reply

    Technical Moderator
    July 30, 2025

    Hi,

    Do you mean:

    • Your system is based on a dynamic tag communicating with a microcontroller (MCU) over I²C.
    • Your system is woken up when entering the phone's NFC field, that is, your system is powered by the harvested energy.
    • Reading the tag by the phone triggers an action on the phone.

    As the title of your post refers to ST25R3916B, do you mean your system is based on a reader in Card Emulation mode?

    Feel free to provide more information, such as which tag or which MCU is used or whether Card Emulation is use. 

    Usually, iPhone reacts when the tag memory contains an NDEF URI message. Using the NFC Tap iOS app, NDEF messages can be written to and read from the tag memory. Once an NDEF message (e.g., containing a URI) is written to the tag memory, you can tap the tag and observe how the iPhone handles it.

    If an ST25R3916B is being used in Card Emulation mode rather than a physical tag, the X-CUBE-NFC6 provides a demo that includes Card Emulation. Just enable the DEMO_CARD_EMULATION_ONLY compilation flag. A default URI (st.com) is provided in the emulated memory.

    Regards,
    BT

     

    avielAuthor
    Visitor II
    July 31, 2025

    Hi Brian,
    My  system is based on a dynamic tag communicating with a microcontroller (MCU) over SPI
    the micro is STM32wb55ceu6.

    the hardware configuration its ok,
    I starter with NFC tag so I not understand clearly what is Card emulation borad.
    for our purposes, i know exactly when the error in code:
    in rfalNfcWorker process' i received to RFAL_NFC_STATE_LISTEN_ACTIVATION
    but there i received RFAL_ERR_LINK_LOSS error after rfalNfcListenActivation().
    i see that means that i have problem with ATS parameters but i see that ats in configure automaticly in RfalWoker.
    I hope that you understand me...
    Thank you very much for your help.

    Technical Moderator
    July 31, 2025

    Hi,

    rfalNfcWorker/RFAL_NFC_xxx/rfalWorker/... are related to RF Abstraction Layer for ST25R reader device. This is not related to dynamic tag. 

    Do you mean a ST25R3916B is connected to a STM32wb55ceu6 and that this ST25R3916B is supposed to act as a tag?

    What is your hardware environment: X-NUCLEO-NFC08A1 connected to a P-NUCLEO-WB55 or do you have your own custom board?

    Which firmware package have you used for the RFAL: X-CUBE-NFC6 ? ST25R Embedded Lib? Standalone RFAL module?

    Rgds

    BT