Skip to content

Commit

Permalink
Enable instruction cache for stm32u5 boards
Browse files Browse the repository at this point in the history
  • Loading branch information
gabChouin committed Sep 6, 2023
1 parent 4fb15f6 commit c4566c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/bsp/stm32u5/boards/stm32u575nucleo/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static inline void board_clock_init(void)
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};

/* Enable Power Clock*/
/* Enable Power Clock */
__HAL_RCC_PWR_CLK_ENABLE();

/** Configure the main internal regulator output voltage
Expand Down
3 changes: 3 additions & 0 deletions hw/bsp/stm32u5/family.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ void board_init(void)

UART_CLK_EN();

/* Enable Instruction cache */
HAL_ICACHE_Enable();

#if CFG_TUSB_OS == OPT_OS_NONE
// 1ms tick timer
SysTick_Config(SystemCoreClock / 1000);
Expand Down
1 change: 1 addition & 0 deletions hw/bsp/stm32u5/family.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ SRC_C += \
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_icache.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_rcc.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_rcc_ex.c \
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_pwr.c \
Expand Down

0 comments on commit c4566c4

Please sign in to comment.