File tree Expand file tree Collapse file tree 9 files changed +62
-0
lines changed
targets/TARGET_STM/TARGET_STM32F7 Expand file tree Collapse file tree 9 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
150
150
__PWR_CLK_ENABLE ();
151
151
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
152
152
153
+ // Select HSI as system clock source to allow modification of the PLL configuration
154
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
155
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
156
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
157
+
153
158
// Enable HSE oscillator and activate PLL with HSE as source
154
159
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
155
160
if (bypass == 0 ) {
@@ -208,6 +213,11 @@ uint8_t SetSysClock_PLL_HSI(void)
208
213
// Enable power clock
209
214
__PWR_CLK_ENABLE ();
210
215
216
+ // Select HSI as system clock source to allow modification of the PLL configuration
217
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
218
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
219
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
220
+
211
221
// Enable HSI oscillator and activate PLL with HSI as source
212
222
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
213
223
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
150
150
__PWR_CLK_ENABLE ();
151
151
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
152
152
153
+ // Select HSI as system clock source to allow modification of the PLL configuration
154
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
155
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
156
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
157
+
153
158
// Enable HSE oscillator and activate PLL with HSE as source
154
159
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
155
160
if (bypass == 0 ) {
@@ -208,6 +213,11 @@ uint8_t SetSysClock_PLL_HSI(void)
208
213
// Enable power clock
209
214
__PWR_CLK_ENABLE ();
210
215
216
+ // Select HSI as system clock source to allow modification of the PLL configuration
217
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
218
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
219
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
220
+
211
221
// Enable HSI oscillator and activate PLL with HSI as source
212
222
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
213
223
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
68
68
.ANY (+RW +ZI)
69
69
}
70
70
71
+ ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM0_START + MBED_RAM0_SIZE - Stack_Size - AlignExpr(ImageLimit(RW_IRAM1), 16)) { ; Heap growing up
72
+ }
73
+
71
74
ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE) EMPTY -Stack_Size { ; stack
72
75
}
73
76
}
Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
150
150
__PWR_CLK_ENABLE ();
151
151
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
152
152
153
+ // Select HSI as system clock source to allow modification of the PLL configuration
154
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
155
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
156
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
157
+
153
158
// Enable HSE oscillator and activate PLL with HSE as source
154
159
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
155
160
if (bypass == 0 ) {
@@ -208,6 +213,11 @@ uint8_t SetSysClock_PLL_HSI(void)
208
213
// Enable power clock
209
214
__PWR_CLK_ENABLE ();
210
215
216
+ // Select HSI as system clock source to allow modification of the PLL configuration
217
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
218
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
219
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
220
+
211
221
// Enable HSI oscillator and activate PLL with HSI as source
212
222
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
213
223
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
68
68
.ANY (+RW +ZI)
69
69
}
70
70
71
+ ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM0_START + MBED_RAM0_SIZE - Stack_Size - AlignExpr(ImageLimit(RW_IRAM1), 16)) { ; Heap growing up
72
+ }
73
+
71
74
ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE) EMPTY -Stack_Size { ; stack
72
75
}
73
76
}
Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
150
150
__PWR_CLK_ENABLE ();
151
151
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
152
152
153
+ // Select HSI as system clock source to allow modification of the PLL configuration
154
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
155
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
156
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
157
+
153
158
// Enable HSE oscillator and activate PLL with HSE as source
154
159
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
155
160
if (bypass == 0 ) {
@@ -209,6 +214,11 @@ uint8_t SetSysClock_PLL_HSI(void)
209
214
// Enable power clock
210
215
__PWR_CLK_ENABLE ();
211
216
217
+ // Select HSI as system clock source to allow modification of the PLL configuration
218
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
219
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
220
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
221
+
212
222
// Enable HSI oscillator and activate PLL with HSI as source
213
223
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
214
224
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
68
68
.ANY (+RW +ZI)
69
69
}
70
70
71
+ ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM0_START + MBED_RAM0_SIZE - Stack_Size - AlignExpr(ImageLimit(RW_IRAM1), 16)) { ; Heap growing up
72
+ }
73
+
71
74
ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE) EMPTY -Stack_Size { ; stack
72
75
}
73
76
}
Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
150
150
__PWR_CLK_ENABLE ();
151
151
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
152
152
153
+ // Select HSI as system clock source to allow modification of the PLL configuration
154
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
155
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
156
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
157
+
153
158
// Enable HSE oscillator and activate PLL with HSE as source
154
159
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSE ;
155
160
if (bypass == 0 ) {
@@ -212,6 +217,11 @@ uint8_t SetSysClock_PLL_HSI(void)
212
217
// Enable power clock
213
218
__PWR_CLK_ENABLE ();
214
219
220
+ // Select HSI as system clock source to allow modification of the PLL configuration
221
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK ;
222
+ RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_HSI ;
223
+ HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_0 );
224
+
215
225
// Enable HSI oscillator and activate PLL with HSI as source
216
226
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
217
227
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
68
68
.ANY (+RW +ZI)
69
69
}
70
70
71
+ ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM0_START + MBED_RAM0_SIZE - Stack_Size - AlignExpr(ImageLimit(RW_IRAM1), 16)) { ; Heap growing up
72
+ }
73
+
71
74
ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE) EMPTY -Stack_Size { ; stack
72
75
}
73
76
}
You can’t perform that action at this time.
0 commit comments