Skip to main content
Visitor II
August 26, 2025
Solved

ST25R3916B configuration for card reading and card emulation (tag) modes

  • August 26, 2025
  • 2 replies
  • 402 views

Hello,
What options need to be enabled or disabled to work in card reading or card emulation (tag) modes?
I am using X-NUCLEO-NFC08A1 and X-CUBE-NFC6. Currently the cards are read, but not emulated (I need to send a link to the smartphone).

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

    Hi,

    make sure to use the polling demo, not the ndef demo and make sure to recompile the polling demo with the DEMO_CARD_EMULATION_ONLY compilation flag.

    Rgds

    BT

     

    2 replies

    Technical Moderator
    August 26, 2025

    Hi,

    The polling demo of the X-CUBE-NFC6 package includes card emulation. Since both the ST25R3916B and the phones function as a reader and card emulator, the behavior is unpredictable.

    To force the ST25R3916B to operate exclusively in card emulation mode, recompile the polling demo with the DEMO_CARD_EMULATION_ONLY compilation flag.

    Rgds

    BT

    ok_ppAuthor
    Visitor II
    August 26, 2025

    Hi Brian,
    thanks for the answer.
    But the smartphone does not accept the URL, and the program displays a message:
    "3. Present a tag to write a URI record and an Android Application record"
    Where is my mistake?

    Technical Moderator
    August 26, 2025

    Hi,

    make sure to use the polling demo, not the ndef demo and make sure to recompile the polling demo with the DEMO_CARD_EMULATION_ONLY compilation flag.

    Rgds

    BT

     

    ok_ppAuthor
    Visitor II
    August 27, 2025

    Hi Brian,
    it works.
    Thank you very much!