2024-08-18 12:29 PM - edited 2024-08-19 02:11 AM
When I try to add the STEVAL-SMARTAG2 as a device to the ST Asset Tracker app, nothing happens. It detects the NFC, yet no ID is registered. Must I activate the NFC before?
Edit: I tried the steps (see below) in the manual to enable the UART by removing the "//", but I get no info/data in the Tera Term application after I press reset on the Smarttag2. What am I doing wrong?
Solved! Go to Solution.
2024-09-12 04:08 AM
Hello,
I read the messages and for me there is a bit confusion.
The package FP-SNS-SMARTAG2 is composed of 3 examples and 1 application:
Examples:
Applications:
Each example can be used for the topic that is dedicated only.
For the FirmwareUpdate, download the binary "FirmwareUpdate_BL.bin" in your STEVAL-SMARTAG2 board and using the binary "FirmwareUpdate.bin" to test the update firmware via NFC.
See the page 11,12,13, 16, 23 and 24 in the https://www.st.com/resource/en/product_presentation/fp-sns-smartag2-quick-start-guide.pdf.
NOTE: The "FirmwareUpdate" source code is ONLY simple application to show how to firmware update can be done via NFC.
In the pack ONLY "FirmwareUpdate" can be used for that.
You can use the source code of the "FirmwareUpdate" to write your application that support the the updated via NFC.
Regards,
Salvatore Curti.
2024-08-28 02:37 AM
Hi,
To communicate and register the STEVAL-SMARTAG2 on ST Asset Tracking App, the NFC on mobile phone must be activated.
See the Quick Start Guide to enable/disable the UART logging functionality. Make sure that the sources are recompiled after uncommenting SMARTAG2_ENABLE_PRINTF define (i.e. make sure Firmware_conf.h has been saved to the disk before compiling). Check the USB cable and the serial port setting (115200,8,N,1).
Rgds
BT
2024-08-29 07:23 AM
Thanks for your reply and the link to the guide! I was able to perform Step 1 and flash the pre-compiled binary and thereafter able to add the Smartag2 via NFC in the ST Asset App. But in Step 2 I did not have any further success as I still have issue with showing any text in Tera Term when pressing Reset on the Smartag2. The port setting is correct, I have uncommented the SMARTAG2_ENABLE_PRINTF define text and saved. Does the FP-SNS-SMARTAG2 folder have to be in a specific place?
2024-08-30 01:23 AM - edited 2024-08-30 01:25 AM
Hi,
I apologize by advance if my question is naive: have you recompiled the firmware and then downloaded it to the board after uncommenting SMARTAG2_ENABLE_PRINTF? Have you followed the instruction from "How Install the code after compiling the project" (slide 12 of the Quick Start Guide)
Rgds
BT
2024-08-30 02:40 AM
No I did not perform steps on slide 12 as I did not fully understand how to recompile and download using IDE (I work with mechanics where I am trying to evaluate some sensors for a project so my programming knowledge is not the best). Are there more detailed instructions on how to perform slide 12 steps?
2024-08-30 04:56 AM
Hi,
If I am not wrong, the UART is enabled by default in the SmarTag2.bin application. Have you inserted a CR2032 or a LIR2032 battery in the battery holder?
On my side, with a battery being inserted, I can see the trace on the serial terminal.
Rgds
BT
2024-08-30 07:31 AM
I tried again and now the log/text would show in Tera Term! The issue was that both programs have to be opened at the same time, as when I program in STM32CubeProgrammer it displays the log in Tera Term. Before I would program, close CubeProgrammer and then after open Tera Term and press "Reset" on the SmartTag2 where nothing happens. Because it says "When you first press the reset button, the application", this only works when I have both programs open and I program (at least for me).
I am suppose to be able to press Reset and the User button (https://www.st.com/resource/en/product_presentation/fp-sns-smartag2-quick-start-guide.pdf) on SmarTag2 in order for FTM to start and FW-update, but nothing happens. I also tried in the ST NFC app, but it says I need to update the FW version.
2024-09-02 07:42 AM
Hi,
make sure to flash SimpleBootLoader.bin at the standard boot address (0x08000000), then flash FirmwareUpdate.bin at 0x08002000:
Disconnect the flash programmer. Press the reset button on the board.
Wait few seconds. Once the following message is displayed "NFCTAG Written the Interrupt Configuration", press the USER button and wait for "Starting FTM" and then "Started FTM".
It should be then possible to update the FW with the ST25 NFC App.
Rgds
BT
2024-09-03 02:08 AM - edited 2024-09-03 05:52 AM
Great thanks this worked!:clapping_hands: Howver, later in the NFC app, I use the FirmwareUpdate.bin that I downloaded on my phone and edited the password (since the default one does not work) and it starts to update FW. But it does not seem to be very stable as the kb downloaded varies from 2000 to 0 until it aborts and the app crashes and then I have to re-flash everything again as it has "lost" connection in the app.
I have been able to log data in the ST Asset app and upload to the Cloud/website account, but I am not able to see any acc data on the web, do you know why? Acc data logs in the app while temperature and pressure show in app + web.
In general I must say that I prefer the Unico GUI more, if only ST could release those test-kits with battery as well as the cable has some test-limitations.
2024-09-12 04:08 AM
Hello,
I read the messages and for me there is a bit confusion.
The package FP-SNS-SMARTAG2 is composed of 3 examples and 1 application:
Examples:
Applications:
Each example can be used for the topic that is dedicated only.
For the FirmwareUpdate, download the binary "FirmwareUpdate_BL.bin" in your STEVAL-SMARTAG2 board and using the binary "FirmwareUpdate.bin" to test the update firmware via NFC.
See the page 11,12,13, 16, 23 and 24 in the https://www.st.com/resource/en/product_presentation/fp-sns-smartag2-quick-start-guide.pdf.
NOTE: The "FirmwareUpdate" source code is ONLY simple application to show how to firmware update can be done via NFC.
In the pack ONLY "FirmwareUpdate" can be used for that.
You can use the source code of the "FirmwareUpdate" to write your application that support the the updated via NFC.
Regards,
Salvatore Curti.