MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
FMC: Hardware flash signature generator

Overview

The MCUXpresso SDK provides a peripheral driver for the Flash Signature generator module of MCUXpresso SDK devices.

The flash module contains a built-in signature generator. This generator can produce a 128-bit signature from a range of flash memory. A typical usage is to verify the flashed contents against a calculated signature (for example, during programming). The signature generator can also be accessed via an IAP function call or ISP command.

Generate flash signature

  1. FMC_GenerateFlashSignature() function generates flash signature for a specified address range.

This example code shows how to generate 128-bit flash signature using the FMC driver.

Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/fmc

Modules

 FMC driver
 

Functions

void FMC_Init (FMC_Type *base, fmc_config_t *config)
 Initialize FMC module. More...
 
void FMC_Deinit (FMC_Type *base)
 Deinit FMC module. More...
 
void FMC_GetDefaultConfig (fmc_config_t *config)
 Provides default configuration for fmc module. More...
 
void FMC_GenerateFlashSignature (FMC_Type *base, uint32_t startAddress, uint32_t length, fmc_flash_signature_t *flashSignature)
 Generate hardware flash signature. More...
 

Driver version

#define FSL_FMC_DRIVER_VERSION   (MAKE_VERSION(2U, 0U, 0U))
 Driver version 2.0.0. More...
 

Macro Definition Documentation

#define FSL_FMC_DRIVER_VERSION   (MAKE_VERSION(2U, 0U, 0U))

Function Documentation

void FMC_Init ( FMC_Type *  base,
fmc_config_t config 
)

This function initialize FMC module with user configuration

Parameters
baseThe FMC peripheral base address.
configpointer to user configuration structure.
void FMC_Deinit ( FMC_Type *  base)

This function De-initialize FMC module.

Parameters
baseThe FMC peripheral base address.
void FMC_GetDefaultConfig ( fmc_config_t config)

This function provides default configuration for fmc module, the default wait states value is 5.

Parameters
configpointer to user configuration structure.
void FMC_GenerateFlashSignature ( FMC_Type *  base,
uint32_t  startAddress,
uint32_t  length,
fmc_flash_signature_t flashSignature 
)

This function generates hardware flash signature for specified address range.

Note
This function needs to be excuted out of flash memory.
Parameters
baseThe FMC peripheral base address.
startAddressFlash start address for signature generation.
lengthLength of address range.
flashSignaturePointer which stores the generated flash signarue.