HAL NAND Overview ¶
Introducing NAND ¶
- group NAND_Introduction
-
The NAND hardware abstraction layer provides a set of APIs to interface with NAND flash memory devices via the STM32 Flexible Memory Controller (FMC) peripheral.
The NAND HAL driver streamlines common memory operations, such as read and program accesses, by handling peripheral initialization, configuration, command sequencing, and data transfers.
This abstraction layer ensures portability and ease of use across different STM32 series.
Module and files ¶
The following diagram illustrates the NAND module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the NAND module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL NAND module, specifying their locations, default values, and descriptions:
- group NAND_Configuration_Table
-
¶
Configuration inside the NAND driver ¶
Config defines
Description
Default value
Note
USE_ASSERT_DBG_PARAM
from IDE
None
Allows to use the assert check parameters.
USE_ASSERT_DBG_STATE
from IDE
None
Allows to use the assert check states.
USE_HAL_CHECK_PARAM
from hal_conf.h
0
Allows to use the run-time check parameters.
USE_HAL_NAND_MODULE
from hal_conf.h
1
Allows to use the HAL NAND module.
USE_FMC_CLK_ENABLE_MODEL
from hal_conf.h
HAL_CLK_ENABLE_NO
Allows to enable the FMC clock.
USE_HAL_NAND_USER_DATA
from hal_conf.h
0
Allows to use user data.
USE_HAL_NAND_ECC
from hal_conf.h
1
Allows to use the FMC ECC mechanism computation.
USE_HAL_NAND_EXTRA_CMD
from hal_conf.h
1
Allows to use the extra command for read operation.