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:
- OneShot: reads in energy harvesting mode the ambient light and environmental sensor data on your IoT node by the means of an NFC enabled reader, such as a mobile phone or tablet, through a suitable AndroidST or iOST application such as the ST NFC Sensor (for only STEVAL-SMARTAG2B)
- SimpleBootLoader: apply the firmware updated replacing the current running firmware with the new version received via NFC or runs the current firmware if the new version is not available.
- SmarTag2: reads the ambient light, motion and environmental sensor data on your IoT node by the means of an NFC enabled reader, such as a mobile phone or tablet, through a suitable AndroidST or iOST application such as the ST Asset Tracking.
Applications:
- FirmwareUpdate: it saves the new firwmare received via NFC using the ST FTM protocol and saves it on the right flash region and works with the SimpleBootLoader example for enabling the Firmware Update capability.
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.