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
- 
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 
This function initialize FMC module with user configuration
- Parameters
 - 
  
    | base | The FMC peripheral base address.  | 
    | config | pointer to user configuration structure.  | 
  
   
 
 
      
        
          | void FMC_Deinit  | 
          ( | 
          FMC_Type *  | 
          base | ) | 
           | 
        
      
 
This function De-initialize FMC module.
- Parameters
 - 
  
    | base | The FMC peripheral base address.  | 
  
   
 
 
This function provides default configuration for fmc module, the default wait states value is 5.
- Parameters
 - 
  
    | config | pointer 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
 - 
  
    | base | The FMC peripheral base address.  | 
    | startAddress | Flash start address for signature generation.  | 
    | length | Length of address range.  | 
    | flashSignature | Pointer which stores the generated flash signarue.  |