HAL NOR Overview ¶
Introducing NOR ¶
- group NOR_Introduction
-
The NOR hardware abstraction layer provides a set of APIs to interface with NOR flash memory devices via the STM32 Flexible Memory Controller (FMC) peripheral.
The NOR HAL driver simplifies the implementation of memory operations such as reading, writing, and erasing by managing peripheral initialization, configuration, and data handling.
This abstraction layer ensures portability and ease of use across different STM32 series.
Module and files ¶
The following diagram illustrates the NOR module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the NOR 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 NOR module, specifying their locations, default values, and descriptions:
- group NOR_Configuration_Table
-
¶
Configuration inside the NOR driver ¶
Config defines
Description
Default value
Note
USE_ASSERT_DBG_PARAM
from IDE
NA
Allows to use the assert check parameters.
USE_ASSERT_DBG_STATE
from IDE
NA
Allows to use the assert check states.
USE_HAL_CHECK_PARAM
from hal_conf.h
0U
Allows to use the run-time check parameters.
USE_HAL_CHECK_PROCESS_STATE
from hal_conf.h
0U
Allows to ensure a safe state transition.
USE_HAL_NOR_MODULE
from hal_conf.h
1U
Allows to use the HAL NOR module.
USE_HAL_NOR_PROTECTION
from hal_conf.h
0U
Allows to enable program protection register.
USE_FMC_CLK_ENABLE_MODEL
from hal_conf.h
HAL_CLK_ENABLE_NO
Allows to enable the FMC clock.
USE_HAL_NOR_USER_DATA
from hal_conf.h
0U
Allows to use user data.