NXP UM11154 User manual

UM11154
NTAG SmartSensor getting started: Reprogramming an NHS31xx using Flash Magic
Rev. 2.02 — 14 August 2020 User manual
Document information
Information Content
Keywords NTAG SmartSensor, NHS3100, NHS3152, LPC-Link2, program
how to get started using Flash Magic.
NXP Semiconductors
NTAG SmartSensor getting started:
Reprogramming an NHS31xx using Flash Magic
Revision history
Rev Date Description
v.2 2020-08-14 second revision
Modifications: Adding links to images for NHS3100SENSORDB
Adding links to iOS apps
Adding links to images for the Signed URL demo
v.1 2018-09-20 first revision
UM11154
UM11154 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
User manual Rev. 2.02 — 14 August 2020
2 / 14
NXP Semiconductors

1 Introduction

The firmware residing on the FLASH memory in an NHS31xx chip can be replaced using a wired connection. Any firmware can be written using a wired connection, including the One-time NFC program downloader and the demo firmware images included in the SDK.
With the proper setup, a program running on your PC can take control of the flash controller via the debug interface of the chip, erase the FLASH memory, and reprogram it with your new firmware. There are different options, but the focus in this document is on the GUI of Flash Magic only.
This document provides links to various firmware images, ready to be used by the GUI of Flash Magic. Together with your NTAG SmartSensor board and this document, you can repurpose a board and start a different demo in minutes.
Note: The firmware currently residing in flash can disable access to the flash controller via the debug interface. This is recommended behavior for production images. More information can be found with the firmware documentation.
Note: More information for each specific board referenced in this document can be found on nxp.com:
UM11154
NTAG SmartSensor getting started:
Reprogramming an NHS31xx using Flash Magic
https://www.nxp.com/pages/:NHS3100
https://www.nxp.com/pages/:NHS3100UCODEADK
https://www.nxp.com/pages/:NHS3100SENSORADK
https://www.nxp.com/pages/:NHS3100THADADK
https://www.nxp.com/pages/:NHS3152THADADK
https://www.nxp.com/pages/:NHS3152
UM11154 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
User manual Rev. 2.02 — 14 August 2020
3 / 14
NXP Semiconductors

2 Flash Magic

Other tools exist, besides Flash Magic, that allow a wired programming approach. During development, the LPCXpresso IDE is continually used. During production, gang programming services are available for HVQFN24 and WLCSP25 packages.
Flash Magic can also be used for gang programming, using its command-line interface. This document focuses on the GUI interface of Flash Magic only.
Note: Only versions from v9.72 onwards have support for the NHS31xx ICs. Until Flash Magic is updated on other platforms, only the Windows platform is supported. The screenshots below are taken from Flash Magic v11.16.

2.1 Installation

Download Flash Magic from http://www.flashmagictool.com. Install and follow the prompts on the screen.
Note: Also allow the installation of the LPC USB drivers of NXP Semiconductors.

2.2 Usage

UM11154
NTAG SmartSensor getting started:
Reprogramming an NHS31xx using Flash Magic
When using Flash Magic, the images used for wired programming must all be in the Intel Hex (.hex) format.

2.2.1 Physical setup

Before launching Flash Magic, be sure that the HW is correctly connected:
1. No jumper may be placed over JP1.
2. A jumper must be placed over JP2.
3. Connect the LPC-Link2 board with your PC using a mini-USB cable.
4. Connect the demo PCB with the LPC-Link2 board using a JTAG cable.
Figure 1. NHS31xx Downloader - Step 1
UM11154 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
User manual Rev. 2.02 — 14 August 2020
4 / 14
NXP Semiconductors
Warning: Flash Magic cannot program via the LPC-Link2 debugger board if:
The LPC-Link2 board is not connected when Flash Magic is started.
The LPC-Link2 board is running a CMSIS-DAP debugger firmware other than the
customized version used by Flash Magic.
If Flash Magic cannot find your LPC-Link2 board, check your setup, power cycle the board, and restart Flash Magic.

2.2.2 GUI settings

Settings are remembered between sessions. Nonetheless, it is advised to check each setting each time before attempting to flash.
1. Select the NHS31xx IC you want to program.
2. Select the SWD over Link2 Interface.
3. Safest is to erase all Flash sectors.
4. Make sure that you select the correct firmware image, in Intel HEX format. Images
5. With the Execute checkbox ticked, the IC will reset and start executing the new
6. When all settings are correct, click Start to carry out the requested operations.
UM11154
NTAG SmartSensor getting started:
Reprogramming an NHS31xx using Flash Magic
Other settings in the communications step are ignored.
can be obtained via:
The download links to the different demo applications provided in the next chapter.
The SDK, in the Debug and Release subfolders of each provided demo and
example application.
The LPCXpresso IDE, where you compile your own application.
firmware immediately after programming has finished.
UM11154 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2020. All rights reserved.
User manual Rev. 2.02 — 14 August 2020
5 / 14
Loading...
+ 9 hidden pages