MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Old Nor Flash

Overview

Functions

flash_err_t NOR_Flash_Init (flash_handle_t *handle, flash_config_t *config)
 Initializes the Flash peripheral. More...
 
flash_err_t NOR_Flash_ReadData (flash_handle_t *handle, uint32_t address, uint8_t *data, uint32_t dataSize)
 Reads the specified number of bytes from NOR_Flash memory. More...
 
flash_err_t NOR_Flash_WriteData (flash_handle_t *handle, uint32_t address, uint8_t *data, uint32_t dataSize)
 Writes the specified number of bytes to NOR_Flash memory. More...
 
flash_err_t NOR_Flash_isBusy (flash_handle_t *handle)
 Get the NOR_Flash busy status. More...
 
flash_err_t NOR_Flash_EraseBlock (flash_handle_t *handle, uint32_t address, uint32_t blockSize)
 Erase a block of block size memory. More...
 
flash_err_t NOR_Flash_ChipErase (flash_handle_t *handle)
 Erase the entire NOR_Flash memory. More...
 

Function Documentation

flash_err_t NOR_Flash_Init ( flash_handle_t handle,
flash_config_t config 
)
Parameters
handleFlash operation handle.
configPointer to the user-defined configuration structure.
Returns
Returns flash_ok if initialize success, otherwise returns error code.
flash_err_t NOR_Flash_ReadData ( flash_handle_t handle,
uint32_t  address,
uint8_t *  data,
uint32_t  dataSize 
)
Parameters
handleFlash operation handle.
addressNOR_Flash address to start reading from.
dataPointer to a memory location where the data read out from NOR_Flash will be stored.
dataSizeNumber of bytes to be read.
Returns
Returns flash_ok if read success, otherwise returns error code.
flash_err_t NOR_Flash_WriteData ( flash_handle_t handle,
uint32_t  address,
uint8_t *  data,
uint32_t  dataSize 
)
Parameters
handleFlash operation handle.
addressNOR_Flash address to start writing to.
dataPointer to a memory location where the data data to be written to NOR_Flash is stored.
dataSizeNumber of bytes to be written.
Returns
Returns flash_ok if write success, otherwise returns error code.
flash_err_t NOR_Flash_isBusy ( flash_handle_t handle)
Parameters
handleFlash operation handle.
Returns
Returns flash_busy if flash busy, otherwise returns flash_ok. If error happens, return error code.
flash_err_t NOR_Flash_EraseBlock ( flash_handle_t handle,
uint32_t  address,
uint32_t  blockSize 
)
Parameters
handleFlash operation handle.
addressNOR_Flash address to start erase.
blockSizeErase block size.
Returns
Returns flash_ok if erase success, otherwise return error code.
flash_err_t NOR_Flash_ChipErase ( flash_handle_t handle)
Parameters
handleFlash operation handle.
Returns
Returns flash_ok if erase success, otherwise return error code.