Skip to content

Commit 35bda48

Browse files
committed
Issue #767 - Enable FLASH PREFETCH for all STM32 platforms.
Looks to solve observed issues when low power modes are cycled.
1 parent 465893d commit 35bda48

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/boards/NAMote72/cmsis/stm32l1xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
134134
#define TICK_INT_PRIORITY ((uint32_t)0) /*!< tick interrupt priority */
135135
#define USE_RTOS 0
136-
#define PREFETCH_ENABLE 0
136+
#define PREFETCH_ENABLE 1
137137
#define INSTRUCTION_CACHE_ENABLE 1
138138
#define DATA_CACHE_ENABLE 1
139139

src/boards/NucleoL073/cmsis/stm32l0xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */
151151
#define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */
152152
#define USE_RTOS 0U
153-
#define PREFETCH_ENABLE 0U
154-
#define PREREAD_ENABLE 1U
153+
#define PREFETCH_ENABLE 1U
154+
#define PREREAD_ENABLE 0U
155155
#define BUFFER_CACHE_DISABLE 0U
156156

157157
/* ########################## Assert Selection ############################## */

src/boards/NucleoL152/cmsis/stm32l1xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
134134
#define TICK_INT_PRIORITY ((uint32_t)0) /*!< tick interrupt priority */
135135
#define USE_RTOS 0
136-
#define PREFETCH_ENABLE 0
136+
#define PREFETCH_ENABLE 1
137137
#define INSTRUCTION_CACHE_ENABLE 1
138138
#define DATA_CACHE_ENABLE 1
139139

src/boards/SKiM880B/cmsis/stm32l1xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
134134
#define TICK_INT_PRIORITY ((uint32_t)0) /*!< tick interrupt priority */
135135
#define USE_RTOS 0
136-
#define PREFETCH_ENABLE 0
136+
#define PREFETCH_ENABLE 1
137137
#define INSTRUCTION_CACHE_ENABLE 1
138138
#define DATA_CACHE_ENABLE 1
139139

src/boards/SKiM881AXL/cmsis/stm32l0xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
#define VDD_VALUE ((uint32_t)3300U) /*!< Value of VDD in mv */
153153
#define TICK_INT_PRIORITY ((uint32_t)0U) /*!< tick interrupt priority */
154154
#define USE_RTOS 0U
155-
#define PREFETCH_ENABLE 0U
155+
#define PREFETCH_ENABLE 1U
156156
#define PREREAD_ENABLE 1U
157157
#define BUFFER_CACHE_DISABLE 0U
158158

src/boards/SKiM980A/cmsis/stm32l1xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
#define VDD_VALUE ((uint32_t)3300) /*!< Value of VDD in mv */
134134
#define TICK_INT_PRIORITY ((uint32_t)0) /*!< tick interrupt priority */
135135
#define USE_RTOS 0
136-
#define PREFETCH_ENABLE 0
136+
#define PREFETCH_ENABLE 1
137137
#define INSTRUCTION_CACHE_ENABLE 1
138138
#define DATA_CACHE_ENABLE 1
139139

src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_conf_template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
192192
#define TICK_INT_PRIORITY 0x0FU /*!< tick interrupt priority */
193193
#define USE_RTOS 0U
194-
#define PREFETCH_ENABLE 0U
194+
#define PREFETCH_ENABLE 1U
195195
#define INSTRUCTION_CACHE_ENABLE 1U
196196
#define DATA_CACHE_ENABLE 1U
197197

0 commit comments

Comments
 (0)