cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 (STM32F427). Is it possible to configure PH1/OSC_OUT pin as GPIO when HSE BYPASS (external clock generator on PH0/OSC_IN pin) is enabled?

ARaid.1
Associate III

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.

0693W00000JQ7fEQAT.jpg 

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 ?

0693W00000JQ7gWQAT.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

> 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

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

> 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

If you feel a post has answered your question, please click "Accept as Solution".