![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
Modules | |
| Old Nor Flash | |
| Spifi Nor Flash | |
Data Structures | |
| struct | nor_config_t |
| NOR Flash Config block structure. More... | |
| struct | nor_handle_t |
| NOR Flash handle info. More... | |
NOR FLASH Driver | |
| status_t | Nor_Flash_Init (nor_config_t *config, nor_handle_t *handle) |
| Initialize NOR FLASH devices. More... | |
| status_t | Nor_Flash_Read (nor_handle_t *handle, uint32_t address, uint8_t *buffer, uint32_t length) |
| Read page data from NOR Flash. More... | |
| status_t | Nor_Flash_Page_Program (nor_handle_t *handle, uint32_t address, uint8_t *buffer) |
| Program page data to NOR Flash. More... | |
| status_t | Nor_Flash_Erase_Sector (nor_handle_t *handle, uint32_t address, uint32_t size_Byte) |
| Erase sector. More... | |
| status_t | Nor_Flash_Erase_Block (nor_handle_t *handle, uint32_t address, uint32_t size_Byte) |
| Erase block. More... | |
| status_t | Nor_Flash_Erase_Chip (nor_handle_t *handle) |
| Erase Chip NOR Flash . More... | |
| struct nor_config_t |
Data Fields | |
| void * | memControlConfig |
| memory controller configuration, should be assigned to specific controller configuration structure pointer. More... | |
| void* nor_config_t::memControlConfig |
| struct nor_handle_t |
Data Fields | |
| uint32_t | bytesInPageSize |
| Driver Base address. More... | |
| uint32_t | bytesInSectorSize |
| Minimun Sector size in byte supported by Serial NOR. | |
| uint32_t | bytesInMemorySize |
| Memory size in byte of Serial NOR. | |
| void * | deviceSpecific |
| Device specific control parameter. | |
| uint32_t nor_handle_t::bytesInPageSize |
Page size in byte of Serial NOR
| status_t Nor_Flash_Init | ( | nor_config_t * | config, |
| nor_handle_t * | handle | ||
| ) |
This function initialize NOR Flash controller and NOR Flash.
| config | NOR flash configuration. The "memControlConfig" and "driverBaseAddr" are controller specific structure. please set those two parameter with your Nand controller configuration structure type pointer. such as for SEMC: |
spifi_mem_nor_config_t spifiNorconfig = { ..... } nor_config_t config = { .memControlConfig = (void *) .driverBaseAddr = (void *)SPIFI0; }
| handle | The NOR Flash handler. |
| execution | status |
| status_t Nor_Flash_Read | ( | nor_handle_t * | handle, |
| uint32_t | address, | ||
| uint8_t * | buffer, | ||
| uint32_t | length | ||
| ) |
| handle | The NOR Flash handler. |
| address | NOR flash start address to read data from. |
| buffer | NOR flash buffer to read data to. |
| length | NOR flash read length. |
| execution | status |
| status_t Nor_Flash_Page_Program | ( | nor_handle_t * | handle, |
| uint32_t | address, | ||
| uint8_t * | buffer | ||
| ) |
| handle | The NOR Flash handler. |
| address | The address to be programed. |
| buffer | The buffer to be programed to the page. |
| execution | status |
| status_t Nor_Flash_Erase_Sector | ( | nor_handle_t * | handle, |
| uint32_t | address, | ||
| uint32_t | size_Byte | ||
| ) |
| handle | The NOR Flash handler. |
| address | The start address to be erased. |
| size_Byte | Erase sector size. |
| execution | status |
| status_t Nor_Flash_Erase_Block | ( | nor_handle_t * | handle, |
| uint32_t | address, | ||
| uint32_t | size_Byte | ||
| ) |
| handle | The NOR Flash handler. |
| address | The start address to be erased. |
| size_Byte | Erase block size. |
| execution | status |
| status_t Nor_Flash_Erase_Chip | ( | nor_handle_t * | handle | ) |
| handle | The NOR Flash handler. |
| execution | status |