MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
FLASH: JN518X flash driver

Overview

The MCUXpresso SDK provides a peripheral driver for the flash driver module of MCUXpresso SDK devices.

Files

file  fsl_flash.h
 

Macros

#define FLASH_FAIL   (1 << 0)
 FLASH INT_STATUS register definitions. More...
 
#define FLASH_FAIL   (1 << 0)
 FLASH INT_STATUS register definitions. More...
 
#define FLASH_ERR   (1 << 1)
 Illegal command.
 
#define FLASH_ERR   (1 << 1)
 Illegal command.
 
#define FLASH_DONE   (1 << 2)
 Command complete.
 
#define FLASH_DONE   (1 << 2)
 Command complete.
 
#define FLASH_ECC_ERR   (1 << 3)
 ECC error detected.
 
#define FLASH_ECC_ERR   (1 << 3)
 ECC error detected.
 

Functions

void FLASH_Init (FLASH_Type *pFLASH)
 Enable the FLASH. More...
 
void FLASH_Powerdown (FLASH_Type *pFLASH)
 Power down the FLASH. More...
 
int FLASH_Wait (FLASH_Type *pFLASH)
 Wait for FLASH command to complete. More...
 
int FLASH_Erase (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End)
 Erase page. More...
 
int FLASH_ErasePages (FLASH_Type *pFLASH, uint32_t u32StartPage, uint32_t u32PageCount)
 Erase page. More...
 
int FLASH_BlankCheck (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End)
 Erase page. More...
 
int FLASH_MarginCheck (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End)
 Erase page. More...
 
int FLASH_Program (FLASH_Type *pFLASH, uint32_t *pu32Start, uint32_t *pu32Data, uint32_t u32Length)
 Erase page. More...
 
int FLASH_Checksum (FLASH_Type *pFLASH, uint8_t *pu8Start, uint8_t *pu8End, uint32_t au32Checksum[4])
 Erase page. More...
 
int FLASH_Read (FLASH_Type *pFLASH, uint8_t *pu8Start, uint32_t u32ReadMode, uint32_t au32Data[4])
 Read word. More...
 

Macro Definition Documentation

#define FLASH_FAIL   (1 << 0)

FLASH INT_ENABLE register definitions.

Command failed

#define FLASH_FAIL   (1 << 0)

FLASH INT_ENABLE register definitions.

Command failed

Function Documentation

void FLASH_Init ( FLASH_Type *  pFLASH)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
void FLASH_Powerdown ( FLASH_Type *  pFLASH)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_Wait ( FLASH_Type *  pFLASH)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
status
int FLASH_Erase ( FLASH_Type *  pFLASH,
uint8_t *  pu8Start,
uint8_t *  pu8End 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_ErasePages ( FLASH_Type *  pFLASH,
uint32_t  u32StartPage,
uint32_t  u32PageCount 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_BlankCheck ( FLASH_Type *  pFLASH,
uint8_t *  pu8Start,
uint8_t *  pu8End 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_MarginCheck ( FLASH_Type *  pFLASH,
uint8_t *  pu8Start,
uint8_t *  pu8End 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_Program ( FLASH_Type *  pFLASH,
uint32_t *  pu32Start,
uint32_t *  pu32Data,
uint32_t  u32Length 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_Checksum ( FLASH_Type *  pFLASH,
uint8_t *  pu8Start,
uint8_t *  pu8End,
uint32_t  au32Checksum[4] 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing
int FLASH_Read ( FLASH_Type *  pFLASH,
uint8_t *  pu8Start,
uint32_t  u32ReadMode,
uint32_t  au32Data[4] 
)
Parameters
pFLASH: Pointer to selected FLASHx peripheral
Returns
Nothing