File tree 1 file changed +17
-0
lines changed
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_GIGA
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,23 @@ void SetSysClock(void)
76
76
}
77
77
}
78
78
}
79
+
80
+ // Set seemingly unrelated pins that prevent QSPI from working
81
+ GPIO_InitTypeDef GPIO_InitStruct ;
82
+ GPIO_InitStruct .Mode = GPIO_MODE_ANALOG ;
83
+ GPIO_InitStruct .Speed = GPIO_SPEED_FREQ_LOW ;
84
+ GPIO_InitStruct .Pull = GPIO_NOPULL ;
85
+ GPIO_InitStruct .Alternate = 0 ;
86
+
87
+ GPIO_InitStruct .Pin = GPIO_PIN_13 ;
88
+ __HAL_RCC_GPIOD_CLK_ENABLE ();
89
+ HAL_GPIO_Init (GPIOD , & GPIO_InitStruct );
90
+ __HAL_RCC_GPIOD_CLK_DISABLE ();
91
+
92
+ GPIO_InitStruct .Pin = GPIO_PIN_7 ;
93
+ __HAL_RCC_GPIOF_CLK_ENABLE ();
94
+ HAL_GPIO_Init (GPIOF , & GPIO_InitStruct );
95
+ __HAL_RCC_GPIOF_CLK_DISABLE ();
79
96
}
80
97
81
98
#if ( ((CLOCK_SOURCE ) & USE_PLL_HSE_XTAL ) || ((CLOCK_SOURCE ) & USE_PLL_HSE_EXTC ) )
You can’t perform that action at this time.
0 commit comments