background image

1

General information

This document applies to the STM32L476xx Arm

®

-based microcontroller devices.

Note:

Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.

UM2949

General information

UM2949

 - 

Rev 1

page 2/60

Summary of Contents for STSW-ST25DV002

Page 1: ...es the content of the tag when close by The reader communicates with the ST25DV64KC DISCO board using the ISO 15693 protocol while the STM32L476xx microcontroller device communicates with the ST25DV I...

Page 2: ...This document applies to the STM32L476xx Arm based microcontroller devices Note Arm is a registered trademark of Arm Limited or its subsidiaries in the US and or elsewhere UM2949 General information U...

Page 3: ...erial peripheral interface URI Uniform resource identifier URL Uniform resource locator USB Universal serial bus 2 2 Number convention and notation The following conventions and notations apply in thi...

Page 4: ...00 pins and more a Quad SPI Flash memory interface available on all packages and an extensive range of enhanced I Os and peripherals connected to two APB buses two AHB buses and a 32 bit multi AHB bus...

Page 5: ...cro and mini connectors and no external power supply is required This motherboard embeds the STM32L476VG microcontroller and different peripherals LCD display and touchscreen to interface with the use...

Page 6: ...eds the ST25DV64KC device and a 40 mm x 23 mm 13 56 MHz double layer inductive etched antenna no need for any tuning components The ST25DV64KC communicates with the STM32L476VG 32 bit MCU via the I C...

Page 7: ...NFC software Refer to Software toolbox for NFC tags user manual UM2444 available on www st com The ST25DV I2C tag is fully compliant with the NFC Forum Type 5 standard As this standard is recently in...

Page 8: ...the firmware behavior the descriptions are detailed from the microcontroller point of view 4 2 1 Discover ST25DV I2C tag menu As shown in Figure 5 the Discover ST25DV I2C tag menu proposes several dem...

Page 9: ...agement and Generating the RF and RF user interrupts using the ST25PC NFC software with the CR95HF sections respectively for Android ST25 NFC application and for the CR95HF reader used with the ST25PC...

Page 10: ...any RF reader or Android smart phone Using the CR95HF IC and ST25PC NFC software the user is able to send interrupts or drive the GPO see Figure 8 and Figure 9 Select the ST25DV I2C tag product Selec...

Page 11: ...Figure 8 ST25DV I2C tag contextual menu Figure 9 PC software ST25DV I2C tag special commands interface UM2949 Main menu UM2949 Rev 1 page 11 60...

Page 12: ...SCO energy harvesting measurement display A LED is also turned on to simulate the effect of the energy harvesting when the RF field is approaching or when it leaves The energy harvesting pin is connec...

Page 13: ...1 Area 1 contains an NDEF with a vCard This area is readable by anyone but can only be written after presenting password 1 2 Area 2 contains an NDEF with a different vCard This area cannot be read wi...

Page 14: ...n the ST25DV I2C tag tag see Figure 8 2 In the contextual menu select the Multi Area Editor item 3 Move the sliders for each area until the desired value is reached see Figure 12 for an example of an...

Page 15: ...en see Figure 13 1 From the table select the area to protect up to four areas 2 In the Area protection column set one of four options for read and write operations only three are available for Area 1...

Page 16: ...6 byte ST25DVxxKC EEPROM page When entering this menu the following screens show the difference by emulating an ST25DVxxKC EEPROM page write and performing the actual write on the ST25DVxxKC EEPROM Fi...

Page 17: ...Figure 16 ST25DVxxKC EEPROM write screen Figure 17 ST25DVxxKC EEPROM write results UM2949 Main menu UM2949 Rev 1 page 17 60...

Page 18: ...sage requires an additional Bluetooth Low Energy module Wi Fi OOB NDEF message requires an additional Wi Fi module Figure 18 ST25DV64KC DISCO NFC NDEF demonstrations menu display URI demonstration Thi...

Page 19: ...2C tag memory the SMS is displayed on the screen Figure 20 ST25DV64KC DISCO read SMS content display Note If the MCU reads the ST25DV I2C tag memory it does not contain an SMS an error message is disp...

Page 20: ...vCard may or may not embed a picture Reads the ST25DV I2C tag content If the vCard was previously stored the following information is displayed on the board screen name title organization cell phone n...

Page 21: ...ion content in the ST25DV I2C tag With the MCU the user Stores an NDEF message containing a geolocation it is then read with an NFC reader or with a smart phone Reads any geolocation that is stored in...

Page 22: ...the message If the data written to the ST25DV I2C tag is not a valid Proprietary configuration record the MCU displays an error message and continues waiting for a valid Proprietary configuration reco...

Page 23: ...e with this name HID The HID protocol is natively supported by Android 6 0 smart phones and this demonstration allows the user to control a pointer on the paired phone by touching the screen of the ST...

Page 24: ...CU reads the ST25DV I2C tag memory it does not contain a WPS OOB an error message is displayed Smart phone and Wi Fi pairing Refer to Reading and writing NDEF on a smart phone with the Android ST25 ap...

Page 25: ...screen displays the content of the tag Click on the Read from selected tag button to refresh the list content The right most list helps the user compose an NDEF message The current tag content is the...

Page 26: ...nge is only carried out in one direction at a time half duplex The mailbox contains indicators giving the reader status and generates pulses on a GPO which must be connected to an external interrupt G...

Page 27: ...se actions are described in the following 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 I2C tag featu...

Page 28: ...ST25DV I2C tag tag in the Inventory pane see Figure 31 then select the Fast Transfer Mode option in the menu Two tabs appear below the tag selection box Read Message by default and Write Message Clic...

Page 29: ...in bytes of the mailbox content and on the Read Message button to display the current content of the mailbox In the ST25PC NFC software the full FTM set of demonstrations are accessible from the menu...

Page 30: ...ST25PC NFC software Access to ST25V I2C FTM demonstrations Smart phone and FTM data transfers Several menus accessible by the drawer menu are dealing with the Fast transfer mode data transfers Mailbo...

Page 31: ...box management FTM demonstration Stopwatch demonstration As prerequisite to any data transfer the mailbox has to be enabled without any pending message The correct status is shown in Figure 35 UM2949...

Page 32: ...Figure 35 Mailbox status UM2949 Main menu UM2949 Rev 1 page 32 60...

Page 33: ...aulty packets This is the default and recommended mode Error recovery disabled Data transfer is done at max throughput There is no recovery in case of transmission error PC software and FTM data trans...

Page 34: ...n the Flash memory and it is not intended to be used for new demonstrations To come back to the initial firmware press the reset button and it reboots the reader with the with this firmware To prepare...

Page 35: ...9 if not the user has to enter a new password to continue Figure 40 Figure 39 ST25DV64KC DISCO firmware upgrade password OK Figure 40 ST25DV64KC DISCO firmware upgrade wrong password During the transf...

Page 36: ...rade Features Upgrade a new firmware to the ST25DV64KC DISCO board Demonstration steps see the screen illustration in Figure 43 1 Check the mailbox status Must be enable withtout any pending messages...

Page 37: ...To execute a R2H firmware upgrade first select a binary file to send with the Select File button see Figure 44 CRC computation is done when loading the file and is displayed on the screen To start th...

Page 38: ...tinue the demonstration as illustrated in the Smart phone and picture transfers and Smart phone and picture download transfer sections During the transfer the full length of data transmitted is displa...

Page 39: ...ick on Send picture to tag Select a picture in phone memory The upload display screens are illustrated in Figure 45 and Figure 45 Transfer from smart phone to tag UM2949 Main menu UM2949 Rev 1 page 39...

Page 40: ...VERY Demos menu see Figure 33 select the FTM Picture Transfer item To run a R2H transfer from CR95HF reader to Host board first select the Pick a picture to upload item from the command list see Figur...

Page 41: ...ads the mailbox message To start this demonstration the user must perform an action on the firmware side The picture icon at bottom left allows the user to enter a new menu see Figure 48 which lets th...

Page 42: ...KC DISCO image upload start The kit is now waiting for the reader to read the message in the mailbox see Smart phone and picture transfers and PC software and picture upload transfer sections to conti...

Page 43: ...from tag button Select a picture on the ST25 discovery kit The transfer starts Smart phone and picture upload transfers display Figure 51 Smart phone and picture upload transfers display PC software...

Page 44: ...reader In this demonstration the data takes random binary values Each time the mailbox is free the MCU writes data and the GPO informs it when the reader consumes the mailbox message To start this de...

Page 45: ...computed CRC and transfer time see Figure 50 In case of failure the display shows an error message To return to the Fast transfer mode demonstration simply touch the screen Smart phone and H2R data t...

Page 46: ...nsfer item To send data from the ST25DV64KC DISCO board to the HF reader select Receive a buffer in a file in the command menu Select the buffer size to be sent from the ST25DV64KC DISCO board and cli...

Page 47: ...ossible stopwatch values 8 byte frames to the MCU using the mailbox The MCU displays these values on the LCD screen and computes the duration between two consecutive updates The average and maximum in...

Page 48: ...atus Start Starts the stopwatch the display is updated accordingly and frames are sent to the host if a tag is in the field The display is updated starting from 00 00 00 minutes seconds milliseconds S...

Page 49: ...SCOVERY Demos menu see Figure 33 select the FTM Picture Transfer item Click on the Start button to begin sending time data to the board Click on Pause to temporarily stop the timer The Resume button s...

Page 50: ...Figure 58 ST25PC NFC software and Stopwatch demonstration UM2949 Main menu UM2949 Rev 1 page 50 60...

Page 51: ...tain up to 256 bytes Packet is called the amount of data that fits into the ST25DV mailbox Depending of the size of the data to send there are one or more packets to transmit When sending big data fil...

Page 52: ...response to one or more received packets to indicate if the transmission was successful or not Figure 61 Structure of a status packet MS54574V1 S Unused Bytes Status Byte 1 byte The following table de...

Page 53: ...et s received 00 SEGMENT_OK 01 SEGMENT_ERROR Ex CRC error packet lost etc So a status byte with the value 0x80 corresponds to SEGMENT_OK and 0x81 corresponds to SEGMENT_ERROR A 4 ST Light Protocol On...

Page 54: ...sponse data contains 4 bytes one indicating the board name and 3 indicating the firmware version 0x01 FTM_SEND_PICTURE Data must contain the picture Null 0x02 FTM_READ_PICTURE Null The response data c...

Page 55: ...Revision history Table 6 Document revision history Date Revision Description of changes 03 Fev 22 1 Initial release UM2949 UM2949 Rev 1 page 55 60...

Page 56: ...Main menu 7 4 2 1 Discover ST25DV I2C tag menu 8 4 2 2 RF GPO interrupt demonstration 9 4 2 3 ST25DV I2C tag energy harvesting demonstration 12 4 2 4 ST25DV I2C tag states demonstration 13 4 2 5 ST25...

Page 57: ...s 3 Table 2 Main menu item definition 7 Table 3 Control byte structure definition 52 Table 4 Status byte structure 53 Table 5 FTM commands list 54 Table 6 Document revision history 55 UM2949 List of t...

Page 58: ...e 27 Smart phone and URL NDEF write menu display 25 Figure 28 ST25PC NFC software NDEF interface 26 Figure 29 ST25DV64KC DISCO Fast transfer mode display 27 Figure 30 Smart phone and Fast transfer mod...

Page 59: ...Smart phone and stopwatch transfers 49 Figure 58 ST25PC NFC software and Stopwatch demonstration 50 Figure 59 Example of transmission with three packets per segment 51 Figure 60 Structure of a packet...

Page 60: ...ts and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted by ST herein Resale of ST pro...

Reviews: