Skip to main content
Visitor II
December 19, 2021
Solved

How to restore SMARTAG1

  • December 19, 2021
  • 4 replies
  • 1556 views

I was investigating NFC functionality on STEVAL-SMARTAG1 board, and something went wrong. Most likely I mistyped a symbol while writing one of the registers using NFC Tap iOS app. The tag is no longer recognizable by the app, see the screenshot attached. I could not find any firmware to restore the tag. Is there a way to restore it?

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

    Hi Boris,

    the Firmware inside the STM32L031K of the STEVAL-SMARTAG1 is supposed to reformat the tag in case the CC in block #0 is incorrect (see NfcType5_NDEFInitHeader() in SmarTagAppStart()). The issue you described may be caused by an incorrect FW (in case someone else has used this board) or an HW issue on the board. I would suggest to reload the FW from  FP-SNS-SMARTAG1 using the procedure described in UM2389. You can also enable the printf (see the readme.txt file in the package).

    Rgds

    BT

    4 replies

    Technical Moderator
    December 20, 2021

    Hi,

    the firmware package for the STEVAL_SMARTAG1 is FP-SNS-SMARTAG1. It includes sources and binaries. Make sure to read UM2389 (Getting started with the STM32Cube function pack for IoT node with Dynamic NFC Tag, environmental and motion sensors).

    Rgds

    BT

    ST Employee
    December 20, 2021

    Hi ,

    I'm in charge of developing the iOS NFC tap application.

    Regarding your issue :

    • Please, could you detail more what did you write in register ?
    • I suspect that your CCFile is wrong. Please, could you tell me the magic number value when you display Tag information ? Normally it should be "E2"
    • Otherwise, what are the values returned by getSystemInfo ? Go in Menu "More" => "CoreNFC" => GetSystemInfo

    Thx and br,

    BRalc.1Author
    Visitor II
    December 20, 2021

    Hi Victor,

    Thanks for the message.

    NFCTap - I tried to enable FTM, no success. STException Command Failed. Before that I spent considerable amount of time trying to do the same thing from my own app. I was able to read MB_Mode but could not write into it to enable FTM.

    Your assumption about CCFile is correct. I tried to get any write command passing, CCFile was the first in the list. I guess it was not the best move. Although I wish to believe that I can make the tag working again.

    SystemInfo - please see screenshot attached.

    Thank you,

    Boris.

    Technical Moderator
    December 20, 2021

    Hi Boris,

    the Firmware inside the STM32L031K of the STEVAL-SMARTAG1 is supposed to reformat the tag in case the CC in block #0 is incorrect (see NfcType5_NDEFInitHeader() in SmarTagAppStart()). The issue you described may be caused by an incorrect FW (in case someone else has used this board) or an HW issue on the board. I would suggest to reload the FW from  FP-SNS-SMARTAG1 using the procedure described in UM2389. You can also enable the printf (see the readme.txt file in the package).

    Rgds

    BT