NHS31xx SW API
nfcprogramloader: NFC one-time Program Loader (closed)

Detailed Description

This closed application acts as a second stage bootloader, placed at the highest writable sectors in flash (see FLASH_NR_OF_RW_SECTORS). It gives the customer the possibility to program the IC via NFC (no wired connection needed).

Introduction
The NFC program loader facilitates wireless download of the final product application binary into the NHS31xx IC. This allows on-the-field programming of the required custom application when SWD is no longer accessible.
Note
Once an application binary is flashed using the NFC program loader, the NFC program loader won't be available anymore. the IC will immediately boot into the flashed application and no other application image can be flashed via NFC.
Get started (and how to operate)
The NHS31xx IC initially (after leaving power-off state) writes an initial message to the NFC block, containing version information. After that, the host can start the download by simply sending the first data packet. The very last packet has a different message ID and includes a file CRC. Detailed information about the protocol can be found in the protocol submodule (NFC Program loader app.spec. messages).
ARM application overview
The top level flow of the application is described in the following diagram:
dot_inline_dotgraph_1.png
Warning
The nfcprogramloader is not designed to be used in NFC passive power mode. FLASH write operations will result in voltage drops, causing the IC to reset.

Modules

 NFC Program loader app.spec. messages