UM1940
29.2.4
NAND Control functions
This subsection provides a set of functions allowing to control dynamically the NAND
interface.
This section contains the following APIs:
HAL_NAND_ECC_Enable()
HAL_NAND_ECC_Disable()
HAL_NAND_GetECC()
29.2.5
NAND State functions
This subsection permits to get in run-time the status of the NAND controller and the data
flow.
This section contains the following APIs:
HAL_NAND_GetState()
HAL_NAND_Read_Status()
29.2.6
Detailed description of functions
HAL_NAND_Init
Function name
Function description
Parameters
Return values
HAL_NAND_DeInit
Function name
Function description
Parameters
Return values
HAL_NAND_ConfigDevice
Function name
Function description
Parameters
HAL_StatusTypeDef HAL_NAND_Init (NAND_HandleTypeDef *
hnand, FSMC_NAND_PCC_TimingTypeDef *
ComSpace_Timing, FSMC_NAND_PCC_TimingTypeDef *
AttSpace_Timing)
Perform NAND memory Initialization sequence.
hnand: pointer to a NAND_HandleTypeDef structure that
contains the configuration information for NAND module.
ComSpace_Timing: pointer to Common space timing
structure
AttSpace_Timing: pointer to Attribute space timing structure
HAL: status
HAL_StatusTypeDef HAL_NAND_DeInit
(NAND_HandleTypeDef * hnand)
Perform NAND memory De-Initialization sequence.
hnand: pointer to a NAND_HandleTypeDef structure that
contains the configuration information for NAND module.
HAL: status
HAL_StatusTypeDef HAL_NAND_ConfigDevice
(NAND_HandleTypeDef * hnand, NAND_DeviceConfigTypeDef
* pDeviceConfig)
Configure the device: Enter the physical parameters of the device.
hnand: pointer to a NAND_HandleTypeDef structure that
DocID028236 Rev 2
HAL NAND Generic Driver
373/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?