Enable D2 SRAM1/2/3 clocks.
@@ -16,6 +16,13 @@ void HAL_MspInit()
// Set the system clock
SystemClock_Config();
+ #if defined(MCU_SERIES_H7)
+ // Enable D2 SRAM1/2/3 clocks.
+ __HAL_RCC_D2SRAM1_CLK_ENABLE();
+ __HAL_RCC_D2SRAM2_CLK_ENABLE();
+ __HAL_RCC_D2SRAM3_CLK_ENABLE();
+ #endif
+
// Config Systick
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
@@ -25,6 +32,7 @@ void HAL_MspInit()
__GPIOC_CLK_ENABLE();
__GPIOD_CLK_ENABLE();
__GPIOE_CLK_ENABLE();
+
#if defined (STM32F769xx)
__GPIOF_CLK_ENABLE();
__GPIOG_CLK_ENABLE();
