Skip to content

Commit 1a06df6

Browse files
committed
drivers: clock_control: stm32: enable clocks for SRAM1 and SRAM2
enables the AHB2 peripheral clocks for SRAM1 and SRAM2 on STM32H7RSX series using LL_AHB2_GRP1_EnableClock. These clocks are required to access the corresponding SRAM regions during runtime. Fixes potential access faults when using SRAM1 and SRAM2. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 11a8ff6 commit 1a06df6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/clock_control/clock_stm32_ll_h7.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,10 @@ int stm32_clock_control_init(const struct device *dev)
10401040
#endif
10411041
z_stm32_hsem_lock(CFG_HW_RCC_SEMID, HSEM_LOCK_DEFAULT_RETRY);
10421042

1043+
#if defined(CONFIG_SOC_SERIES_STM32H7RSX)
1044+
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_AHBSRAM1);
1045+
LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_AHBSRAM2);
1046+
#endif
10431047
/* Set up individual enabled clocks */
10441048
set_up_fixed_clock_sources();
10451049

0 commit comments

Comments
 (0)