Skip to main content
Andrew Neil
Super User
November 27, 2023
Solved

CubeIDE Clock Editor won't allow HSE selection with external clock

STM32CubeIDE Version: 1.13.0; Build: 17399_20230707_0829 (UTC).

 

It seems that the IDE greys-out the options to use HSE: 

AndrewNeil_0-1701107859575.pngAndrewNeil_2-1701108049197.png

Unless both PF0 is configured as RCC_OSC_IN and PF1 is configured as RCC_OSC_OUT:

AndrewNeil_3-1701108149468.pngAndrewNeil_4-1701108210571.png

 

Surely, it should be possible to use HSE when only PF0 is configured as RCC_OSC_IN - as shown in the Reference Manual:

AndrewNeil_5-1701108364238.png

 

This topic has been closed for replies.
TDK
TDKBest answer
November 27, 2023

You have to enable bypass mode under RCC. Just reserving the pin (i.e. the pin is yellowed out) isn't enough.

TDK_0-1701109500521.png

TDK_1-1701109533631.png

 

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

4 replies

TDK
TDKBest answer
November 27, 2023

You have to enable bypass mode under RCC. Just reserving the pin (i.e. the pin is yellowed out) isn't enough.

TDK_0-1701109500521.png

TDK_1-1701109533631.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andrew Neil
Super User
November 27, 2023

Ah, right - that does it.

Seems a bit clunky, though.

The 'resolve clock issues' didn't suggest this if I selected HSE and then switched back to just PF0 in clock mode.

And this is the IOC generated specifically for the F0-Disco - which, by default, has no crystal fitted and gets its clock from the on-board STLink.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
November 27, 2023

It does manage to automatically set 'Crystal/Ceramic resonator' when you configure both PF0 and PF1 - so why can't it automatically set 'Bypass' when you only configure PF0 ?

:face_with_rolling_eyes:

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.