diff options
| author | HiFiPhile <[email protected]> | 2026-05-27 20:44:04 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2026-05-29 10:03:09 +0200 |
| commit | 33f151a43b39de4207bcdc49ea1e9e8dd8a5d248 (patch) | |
| tree | 33d25001cfbf4c32c8bcbd9e306df9141e8a4b40 | |
| parent | d85ddd2f8a93f2bfcedfb0365fa6826f1ab86fca (diff) | |
bsp/stm32f4: enable flash cache
Signed-off-by: HiFiPhile <[email protected]>
| -rw-r--r-- | hw/bsp/stm32f4/family.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/bsp/stm32f4/family.c b/hw/bsp/stm32f4/family.c index 4eea5c7a8..3a323e673 100644 --- a/hw/bsp/stm32f4/family.c +++ b/hw/bsp/stm32f4/family.c @@ -109,6 +109,11 @@ void USARTn_IRQHandler(void) { void board_init(void) { board_clock_init(); + + __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); + __HAL_FLASH_DATA_CACHE_ENABLE(); + __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); + //SystemCoreClockUpdate(); // Enable All GPIOs clocks |
