ST ST25DV-DISCOVERY User manual

October 2021 UM2062 Rev 3 1/55
1
UM2062
User manual
Firmware for the ST25DV-DISCOVERY boards
Introduction
This document describes the functionalities of the STSW-ST25DV001 firmware, developed
to fully exploit the capabilities of the ST25DV-DISCOVERY boards, based on ST25DV.
The ST25DV is an IC for contactless applications that can communicate with a
microcontroller through an I²C interface; this makes the ST25DV a dynamic tag. On the RF
side, the reader (for instance a smart phone) can retrieve and update the content of the tag
when close to it.
The reader communicates with the ST25DV-DISCOVERY board using the ISO 15693
protocol, while the STM32F405 microcontroller communicates with the ST25DV through an
I²C bus.
With this discovery kit, the ST25DV can be programmed with different contents, following
the NFC Forum standard. This means that a smart phone can read it natively, without any
specific application being previously installed.
A specific fast transfer mode can be used to transfer data directly to the microcontroller,
without using the embedded EEPROM.
www.st.com

Contents
2/55 UM2062 Rev 3
Contents
1 List of acronyms and notational conventions . . . . . . . . . . . . . . . . . . . . 6
1.1 Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Representation of numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 ST25DV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 STM32F405 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 ST25DV-DISCOVERY boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.1 ST25DV-DISCOVERY motherboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.2 ST25DV daughter board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Prerequisite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2.1 Discover ST25DV menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2.2 RF GPO interrupt demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2.3 “Fast Transfer Mode Demo” menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.4 NFC NDEF demonstrations menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Appendix A FTM protocol details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
A.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
A.2 Operating modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
A.3 Low-level protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
A.4 ST Light Protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

UM2062 Rev 3 3/55
List of tables
3
List of tables
Table 1. FTM commands list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Table 2. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

List of figures
4/55 UM2062 Rev 3
List of figures
Figure 1. Communication scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 2. ST25DX-DISCOVERY motherboard MB1283-B. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 3. ST25DV_Discovery_ANT_C5 board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4. ST25DV-DISCOVERY main menu display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5. ST25DV-DISCOVERY features menu display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 6. ST25DV-DISCOVERY interrupt generation display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 7. Smart phone GPO register configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 8. Use of PC software to manage GPO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. ST25DV-DISCOVERY energy harvesting measurement display . . . . . . . . . . . . . . . . . . . . 14
Figure 10. Smart phone and area display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 11. ST25DV-DISCOVERY Fast Transfer Mode display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 12. Smart phone and Fast Transfer Mode use cases display . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 13. FTM demonstration selection on ST25PC-NFC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 14. FTM demonstration user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 15. R2H data transfer diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 16. ST25DV-DISCOVERY R2H data transfer in progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 17. ST25DV-DISCOVERY R2H data transfer done . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 18. ST25DV drawer menu (Mailbox management, FTM demonstration,
Stopwatch demonstration) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 19. Mailbox Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 20. Data transfers from reader to tag of a random buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 21. ST25DV-DISCOVERY firmware upgrade: password check . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 22. ST25DV-DISCOVERY firmware upgrade: password OK . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 23. ST25DV-DISCOVERY firmware upgrade: bad password. . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 24. Software end transfer status display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 25. ST25DV-DISCOVERY firmware upgrade: transfer done . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 26. Smart phone and firmware upgrade display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 27. Firmware upgrade demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 28. Transfer from smart phone to tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 29. Image transfer demonstration: send a picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 30. H2R data transfer diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 31. ST25DV-DISCOVERY Select picture to upload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 32. ST25DV-DISCOVERY Image upload start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 33. ST25DV-DISCOVERY Image upload successful . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 34. Transfer from tag to smart phone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 35. Image transfer demonstration: receive a picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 36. ST25DV-DISCOVERY select H2R data size to transfer display. . . . . . . . . . . . . . . . . . . . . 36
Figure 37. Smart phone and data transfers H2R with selected size . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 38. H2R data transfer demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 39. ST25DV-DISCOVERY stopwatch start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 40. Smart phone and stopwatch transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 41. ST25DV-DISCOVERY NFC NDEF demonstrations menu display . . . . . . . . . . . . . . . . . . . 39
Figure 42. ST25DV-DISCOVERY read URI display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 43. ST25DV-DISCOVERY read SMS content display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 44. ST25DV-DISCOVERY read Email content display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 45. ST25DV-DISCOVERY read vCard content display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 46. ST25DV-DISCOVERY read Geolocation display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 47. ST25DV-DISCOVERY MyApp demonstration screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

UM2062 Rev 3 5/55
List of figures
5
Figure 48. Smart phone and Multi records editor display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 49. Smart phone and NDEF discover display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 50. Smart phone and URL NDEF write menu display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 51. Example of transmission with three packets per segment . . . . . . . . . . . . . . . . . . . . . . . . . 50
Figure 52. Structure of a packet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Figure 53. Structure of a status packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 54. Structure of a command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 55. Structure of a command response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

List of acronyms and notational conventions
6/55 UM2062 Rev 3
1 List of acronyms and notational conventions
1.1 Acronyms
APB: Advanced peripheral bus
AAR: Android™ application record
BLE: Bluetooth®Low Energy
CAN: Controller area network
GPS: Global positioning system
GPO: General purpose output
H2R: Host to reader
IEC: International electrotechnical commission
ISO: International organization for standardization
MCU: Micro controller unit (microcontroller)
NFC: Near field communication
OOB: Out of band
R2H: Reader to host
RF: Radio frequency
RFID: Radio frequency identification
RISC: Reduced instruction set computer
SPI: Serial peripheral interface
URI: Uniform resource identifier
URL: Uniform resource locator
USB: Universal serial bus
1.2 Representation of numbers
The following conventions and notations apply in this document unless otherwise stated:
•Binary numbers are represented by strings of 0 and 1 digits shown with the most
significant bit (MSB) on the left, the least significant bit (LSB) on the right, and “0b”
added at the beginning. Example: 0b11110101.
•Hexadecimal numbers are represented by using numbers 0 to 9 and characters A to
F and adding “0x” at the beginning. The most significant bit (MSB) is shown on the left
and the least significant bit (LSB) on the right. Example: 0xF5.
•Decimal numbers are represented without any trailing character. Example: 245.

UM2062 Rev 3 7/55
Overview
48
2 Overview
2.1 ST25DV
The ST25DV is a dynamic tag IC for contactless applications (ISO 15693). It manages the
RF communication with a reader. It also includes frame coding, RF modulation and
manages the anti-collision process.
The ST25DV works as an NFC Forum Type 5 tag, supporting detection, read and write
operations.
The ST25DV (see Figure 1) can communicate with a reader without any external control.
Figure 1. Communication scheme
2.2 STM32F405
The STM32F405xx microcontrollers are based on the high-performance ARM®(a) Cortex®-
M4 32-bit RISC core operating at a frequency of up to 168 MHz. The Cortex®-M4 core
features a floating -point unit (FPU) single precision, which supports all ARM®single-
precision data-processing instructions and data types. It also implements a full set of DSP
instructions and a memory protection unit (MPU) that enhances application security.
The STM32F405xx incorporate high-speed embedded memories (Flash memory up to 1
Mbyte, SRAM up to 192 Kbytes), up to 4 Kbytes of backup SRAM, an extensive range of
enhanced I/Os and peripherals connected to two APB buses, three AHB buses and a 32-bit
multi-AHB bus matrix.
All devices offer three 12-bit ADCs, two DACs, a low-power RTC, twelve general-purpose
16-bit timers including two PWM timers for motor control, two general-purpose 32-bit timers,
MS42492V1
MCU ST25DV RF
I2C
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.

Overview
8/55 UM2062 Rev 3
a true random number generator (RNG) and a cryptographic acceleration cell. They also
feature standard and advanced communication interfaces:
•Up to three I2Cs
•Three SPIs, two I2Ss full duplex: to achieve audio class accuracy, the I2S peripherals
can be clocked via a dedicated internal audio PLL or via an external clock enabling
synchronization
•Four USARTs and two UARTs
•An USB OTG full-speed and an USB OTG high-speed with full-speed capability (with
the ULPI)
•Two CANs
•An SDIO/MMC interface
These features make the STM32F405xx microcontrollers suitable for a wide range of
applications, such as
•Motor drive and application control
•Medical equipment
•Industrial applications: PLC, inverters, circuit breakers
•Printers and scanners
•Alarm systems, video intercom and HVAC
•Home and audio appliances
2.3 ST25DV-DISCOVERY boards
The ST25DV-DISCOVERY is an evaluation kit, which allows the user to evaluate the
performance of the ST25DV dynamic tag. The kit is composed of two boards:
•motherboard
•ST25DV daughter board
2.3.1 ST25DV-DISCOVERY motherboard
The ST25DV-DISCOVERY is powered through any of the USB bus (micro and mini
connectors) and no external power supply is required.
This motherboard embeds the STM32F405VG microcontroller and different peripherals:
•LCD display and touchscreen to interface with the user
•USB connectors to connect to a PC (mini-USB for the STLink debugger and micro-USB
available for the user application)
•Optional modules: Wi-Fi®and Bluetooth®Low Energy (BLE) to connect with a smart
phone
The connector on the right side of the board is dedicated to the daughter boards that embed
the NFC tags.

UM2062 Rev 3 9/55
Overview
48
Figure 2. ST25DX-DISCOVERY motherboard MB1283-B
2.3.2 ST25DV daughter board
This board embeds the ST25DV NFC device and a 31 mm x 30 mm, 13.56 MHz double
layer inductive etched antenna (no need for tuning components).
The ST25DV communicates with the STM32F405VG 32-bit MCU via the I²C bus.
Figure 3. ST25DV_Discovery_ANT_C5 board

Firmware description
10/55 UM2062 Rev 3
3 Firmware description
3.1 Prerequisite
The ST25DV products are dynamic tags, their content and configuration can be driven by
both a microcontroller (through I²C) and a reader through the RF.
To benefit from the ST25DV demonstration kit, the user must have one of the following:
•A smart phone with the NFC capability enabled, combined with the ST25 NFC
application installed on it (see UM2131, available on www.st.com)
•An NFC reader with a dedicated PC software. ST25PC-NFC software embeds all
features and demonstrations to be used with ST25DV-DISCOVERY board. Refer to
UM2444 (Software toolbox for NFC tags) for more information about it.
The ST25DV is fully compliant with the NFC Forum Type 5 standard. This standard has
been introduced recently, hence some features could not be fully supported by the oldest
smart phones.
3.2 Main menu
The main menu (see Figure 4) is composed of three icons, used to access sub-menus.
Figure 4. ST25DV-DISCOVERY main menu display
Each item allows the user to enter a sub-menu containing a set of use cases, as indicated
below:
Note: If the Wi-Fi®and/or the BLE modules have been added to the board the corresponding
icons are available to access the Wi-Fi®and Bluetooth®pairing demonstrations.
Discover ST25DV
Fast transfer mode demonstration
NFC NDEF demonstrations

UM2062 Rev 3 11/55
Firmware description
48
To select a category, touch the screen on an icon. Then to start a demonstration, touch the
screen on the icon of the desired demonstration (see description below). A long touch on an
icon displays, in the top line, the description of the corresponding demonstration(s).
As the purpose of this document is to illustrate the firmware behavior, the descriptions is
detailed from the microcontroller point of view.
3.2.1 Discover ST25DV menu
As shown in Figure 5, the “Discover ST25DV” menu proposes several demonstrations of the
ST25DV specific features, among them:
•GPO interrupts
•Energy harvesting
•ST25DV states
•Multi-areas and passwords
Figure 5. ST25DV-DISCOVERY features menu display
3.2.2 RF GPO interrupt demonstration
The ST25DV has a GPO that can be used to send interrupts to the microcontroller.
Several kinds of event can be configured on the RF side to trigger the GPO interrupt. In this
demonstration all possible interrupt sources are enabled, except the “RF activity”, which
occurs too often for correct readability when using a smart phone as a reader.
To start the demonstration, select the “GPO control Demo” menu, this displays the
instructions until it detects a GPO interrupt.
As soon as the first GPO interrupt is received, the LCD displays the list of sources of
received interrupt, and for each of them the number of times they occurred (see Figure 6).

Firmware description
12/55 UM2062 Rev 3
Figure 6. ST25DV-DISCOVERY interrupt generation display
The event types and of the way to generate them are listed below:
•Field On: place a reader near the ST25DV
•Field Off: move a reader away from the ST25DV
•EEPROM written: modify the content of the ST25DV
•RF Interrupt: requires the use of a specific reader command, that can be sent either by
a smart phone running the ST25 NFC application, or by a reader (see the instructions
in Smart phone GPO management and Manage GPO using ST25PC-NFC software)
•RF User: requires the use of a specific reader command, that can be sent either by a
smart phone running the ST25 NFC application or by a reader (see the instructions in
Smart phone GPO management and Manage GPO using ST25PC-NFC software)
To get the ST25 NFC application, read the ST25DV with a smart phone (after entering the
GPO demo), this automatically opens the required application (or propose the installation of
the application). The automatic application selection is done using an NDEF with an
Android™ application record (AAR).
Note: The mailbox events can also be used to trigger the GPO interrupts; they are not mentioned
here, as they would require entering the ST25DV in the Mailbox mode.
Smart phone GPO management
The ST25 NFC application can handle the RF Interrupt and the RF user interrupt using
register fields information. Do not forget to present configuration password before any
register change.

UM2062 Rev 3 13/55
Firmware description
48
Figure 7. Smart phone GPO register configuration
The ST25 NFC application can generate the RF Interrupt and the RF user interrupt using
features located in the Tools fragment in association with the RF GPO interrupt
demonstration.
Manage GPO using ST25PC-NFC software
STMicroelectronics develops a PC software able to drive some dedicated NFC reader and
communicate with NFC tags.
Using this software user is able to manage GPO and to send RF interrupts to the ST25DV-
DISCOVERY. Figure 8 show the use of ManageGPO command.
For additional information about ST25PC-NFC software, Refer to UM2444 (Software
toolbox for NFC tags) for more information about it, available on www.st.com.

Firmware description
14/55 UM2062 Rev 3
Figure 8. Use of PC software to manage GPO
ST25DV energy harvesting demonstration
The ST25DV is able to harvest the energy provided by the RF to power other devices.
This demonstration displays the voltage, current and power provided by the ST25DV. A led
is also powered-up to simulate the effect of the energy harvesting when the RF field is
approaching or when it leaves.
The current consumption is simulated by a digital potentiometer set to 240 Ohm (plus the
measurement resistor).
Figure 9. ST25DV-DISCOVERY energy harvesting measurement display

UM2062 Rev 3 15/55
Firmware description
48
ST25DV states demonstration
This menu illustrates the possibility to change the state of the ST25DV (for example, to save
power). This demonstration proposes three different modes:
1. RF disabled mode: RF commands are interpreted but not executed. ST25DV responds
with the error code 0x0F
2. Sleep mode: all RF communication are disabled, the RF interface does not interpret the
commands, but minimizes consumption of RF interface
3. Low power down: the ST25DV is fully inactive from host-I2C side, but the memory
content can be accessed on the RF side
For all above cases, the demonstration consists in writing an NDEF with the ST25 URL and
changing the ST25DV state. A message is displayed that invites the user to try to read the
content of the ST25DV, and check that it is not possible.
The content of the ST25DV can be read again as soon as the demonstration screen has
been passed.
Note: For the Low power mode, the ST25DXSPARE jumper must be present on the
ST25DV-DISCOVERY board on the MCU pin, and a 12-pin package must be used for the
ST25DV.
ST25DV multi area and password demonstration
The ST25DV can be configured to define up to four different areas in memory. Each area
may have a custom security level, requiring one of the three passwords to be provided in
order to read and/or write the memory.
This demonstration sets two different areas:
•Area1 contains an NDEF with a vCard. This area is readable by anyone but can only be
written after presenting the password 1.
•Area2 contains an NDEF with a different vCard. This area cannot be read without the
password 1 and cannot be written even after the password presentation.
By default, all the passwords are set to 0000 0000 0000 0000. These values can only be
updated from the RF side.
To execute the demonstration, the user must first read the ST25DV without any specific
application. The phone should display the vCard stored in Area1.
Then the user can open the ST25 NFC application, and tap the tag again, two areas are
detected, and the Area1 vCard is displayed.
The user may try to write a different NDEF to the Area1, and check that the write fails unless
password 1 is presented.
If the user selects the Area2 NDEF, the application requests the password1 before
displaying the Area2 vCard.
The user may try to write a different NDEF in Area2, this does not work even after
presenting the password1. This is expected as the security level of Area2 prevents any write
access to the memory.

Firmware description
16/55 UM2062 Rev 3
Smart phone and multi areas
When the tag has been configured in multi areas, the ST25 NFC application can handle
areas and present to the user areas and content. User can choose the desired area
selecting the corresponding menu in the application drawer.
In case of special protections in an area, the application displays security status information.
On click, a popup is used to present the area password needed to access area content.
Figure 10. Smart phone and area display
3.2.3 “Fast Transfer Mode Demo” menu
This demonstration is intended to demonstrate the capability of the ST25DV to exchange
data between a reader and the MCU in a faster way, than exchanging data through
EEPROM, using proprietary protocol through ISO 15693 standard. To perform the data
exchange the ST25DV shares a RAM buffer of 256 bytes available for the reader and the
MCU (also called Mailbox).
Data exchange can only be carried out in one direction at a time. The mailbox contains
indicators that allow the reader to know its status and generate pulses on a GPO, which can
be connected to an external interrupt (GPIO input) of the microcontroller. For more details
on the Mailbox feature, refer to the ST25DV datasheet.
When the user selects the Fast Transfer Mode icon (see Figure 4), a message displays
“Starting Demo…”. During this time, the firmware is initialized, enabling the Mailbox
functionality and erasing the Flash memory on the MCU (in order to store data downloaded
through NFC). Then, when the demonstration has finished its initialization the message
“Ready to start demo!!” is displayed, as shown on Figure 11.
Note: When Mailbox feature is enabled, EEPROM memory is in read only. To modify EEPROM
again you'll need to disable the Mailbox feature.

UM2062 Rev 3 17/55
Firmware description
48
Figure 11. ST25DV-DISCOVERY Fast Transfer Mode display
The picture and note icons, at the bottom left, point to a sub-menu that allows the user
choose a picture or a random data buffer, that is transferred to a reader (see Host to reader
image upload and Host to reader data transfer).
The home icon (bottom right) allows the user to go back to the main menu (Figure 4).
At this step, the firmware is waiting for an action from the reader or from the user to start.
These actions are described in the next sections.
Smart phone and Fast Transfer Mode use cases
Available actions can be accessed after tag has been taped, and are available in the
ST25DV features or demonstrations menus within the application “Drawer”.
Available use cases are:
•Mailbox management, enable/disable mailbox and display mailbox register fields status
•Data Transfer, to demonstrate basics transfers
•Firmware Upgrade, to demonstrate the firmware upgrade use case
•Picture transfers, to demonstrate how to upload or download pictures
•Stopwatch synchronization, to demonstrate fast transfer latency with a smart phone

Firmware description
18/55 UM2062 Rev 3
Figure 12. Smart phone and Fast Transfer Mode use cases display
PC software and Fast Transfer Mode use cases
As with Android™ phones, all the Fast Transfer Mode demonstrations can be played using
ST25PC-NFC software delivered by STMicroelectronics and able drive some NFC reader to
communicate with NFC tags. Refer to UM2444 (Software toolbox for NFC tags) for more
information about it, available on www.st.com.
Select “FTM Demos”, in ST25DV-DISCOVERY menu to access to “FTM demos”.

Firmware description
20/55 UM2062 Rev 3
Figure 14. FTM demonstration user interface
Available demonstrations are:
•Check board version (R2H)
•Firmware Upgrade demo (R2H)
•Send a picture: select a picture to be sent to the ST25DV-DISCOVERY board using
FTM protocol (R2H)
•Receive a picture: select a picture on the ST25DV-DISCOVERY board and transfer it
on PC user interface using FTM protocol (H2R)
•Send a 100-kbyte random buffer: send data to the ST25DV-DISCOVERY board (R2H)
•send a file: send a selected file to the ST25DV-DISCOVERY board (R2H)
•Receive a buffer in a file: select the data size on the ST25DV-DISCOVERY and
transfer it to a selected file in user’s computer using FTM protocol (H2R)
•Stop watch demo: demonstrate the synchronization between the PC and the
DISCOVERY board using FTM protocol (R2H)
Reader to host data transfer
This function allows the user to send data from the reader to the STM32F405. In this
demonstration data are not used after receipt, they are only stored in the Flash memory and
CRC calculation is sent to the reader for data integrity check.
Table of contents
Other ST Computer Hardware manuals

ST
ST STM32CubeF2 User manual

ST
ST X-NUCLEO-IDB04A1 User manual

ST
ST STEVAL-C34KAT1 User manual

ST
ST STM32F078CB User manual

ST
ST X-NUCLEO-IDB04A1 User manual

ST
ST STM32F038 6 Series User manual

ST
ST STM32U5 Nucleo-64 User manual

ST
ST STEVAL-IFP046V1 User manual

ST
ST STLINK-V3PWR User manual

ST
ST X-NUCLEO-53L7A1 User manual

ST
ST EVSPIN948 User manual

ST
ST X-NUCLEO-SAFEA1B Operating instructions

ST
ST X-NUCLEO-BNRG2A1 User manual

ST
ST EVSPIN958 User manual

ST
ST X-NUCLEO-IDB05A2 User manual

ST
ST UM3019 User manual

ST
ST TDA911 Series Installation and operating instructions

ST
ST X-NUCLEO-OUT02A1 User manual

ST
ST X-NUCLEO-OUT01A1 User manual

ST
ST B-WB1M-WPAN1 User manual