2022-02-16 05:15 PM
I need to feed STM32F427 with external clock generator and at the same time use PH1/OSC_OUT pin as GPIO output.
What I doing.
STM32CubeMX 6.3.0, FW_F4 v1.26.2 Firmware, "Pinout & Configuration" TAB -> Categories -> RCC -> High Speed Clock (HSE) BYPASS CLOCK SOURCE. Then we see on "Pinout view" signals RCC_OSC_IN + RCC_OSC_OUT with green enabled pins PH0/OSC_IN and PH1/OSC_OUT.
Now try to setup PH1/OSC_OUT pin as GPIO. HSE BYPASS disabled and conflicted with text explanation "High Speed Clock (HSE) Conflict with PH1/OSC_OUT mapped with GPIO output" (see screenshot below).
I have read RM0090 rev19:
6.2.1 HSE clock (p.154),
8.3.14 Using the OSC_IN/OSC_OUT pins as GPIO PH0/PH1 port pins (p. 278).
Seems it impossible to have both external generator (HSE BYPASS) on pin OSC_IN, and OSC_OUT as GPIO pin at the same time?
Is it true ?
Solved! Go to Solution.
2022-02-16 07:29 PM
> Is it possible to configure PH1/OSC_OUT pin as GPIO when HSE BYPASS (external clock generator on PH0/OSC_IN pin) is enabled?
No.
https://community.st.com/s/question/0D50X00009XkaDpSAJ/gpioh-pin1-as-normal-gpio
2022-02-16 07:29 PM
> Is it possible to configure PH1/OSC_OUT pin as GPIO when HSE BYPASS (external clock generator on PH0/OSC_IN pin) is enabled?
No.
https://community.st.com/s/question/0D50X00009XkaDpSAJ/gpioh-pin1-as-normal-gpio