HAL SDRAM Overview ¶
Introducing SDRAM ¶
- group SDRAM_Introduction
-
The SDRAM hardware abstraction layer provides a set of APIs to interface with SDRAM devices via the STM32 Flexible Memory Controller (FMC) peripheral.
The SDRAM HAL driver simplifies the initialization, configuration and the sending of the required commands, ensuring that the memory is correctly prepared, fully accessible and ready for use.
This abstraction layer ensures portability and ease of use across different STM32 series.
Module and files ¶
The following diagram illustrates the SDRAM module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the SDRAM 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 SDRAM module, specifying their locations, default values, and descriptions:
- group SDRAM_Configuration_Table
-
¶
Configuration inside the HAL SDRAM driver ¶
Prepocessor flags
Default value
Comment
USE_HAL_SDRAM_MODULE
1
Enable HAL SDRAM driver module
USE_HAL_SDRAM_REGISTER_CALLBACKS
0
Allow the user to define their own callback
USE_HAL_CHECK_PARAM
0
Enable runtime parameter check
USE_FMC_CLK_ENABLE_MODEL
HAL_CLK_ENABLE_NO
Enable the gating of the peripheral clock
USE_HAL_CHECK_PROCESS_STATE
0
Enable atomicity of process state check
USE_HAL_SDRAM_USER_DATA
0
Add a user data inside HAL SDRAM handle
Software configuration defined in preprocessor environment:
Prepocessor flags
Default value
Comment
USE_ASSERT_DBG_PARAM
Not defined
Enable check param for HAL
USE_ASSERT_DBG_STATE
Not defined
Enable check state for HAL