cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F070 APB1 clock can't be configured with HSI clock

XR.1
Senior

Hi,

APB1 clock can't be enabled if HSI clock is chosen. It says that the driven clock must be 10M<=x<48M, so, without using the PLL it's impossible to get the 10MHz.

Captura de pantalla de 2025-09-20 00-08-43.png

 

Things get worse when I try to feed the PLL from the HSI: it says that the PLL should have HSE as an input!

20250919_235605_1758347808903.jpg

If I go on despite the recommendation, then I get this message:

Captura de pantalla de 2025-09-20 00-24-25.png

 

How can I enable the APB1 clock without using an externa crystal?

 

What should I do if I want to choose both: not to use an external crystal and still using the USB peripheral?

 

For now I can disable the USB port because I'm not in a rush with it, but this isn't a solution.

May I overlooking something?

BTW, this is a custom board.

 

Thank you in advanced!

 

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

In that device, USB needs an external crystal to work without issues. So if you are not using USB, disable it. If you need to use USB in the future you need to use HSE+ an external crystal.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
mƎALLEm
ST Employee

Hello,

In that device, USB needs an external crystal to work without issues. So if you are not using USB, disable it. If you need to use USB in the future you need to use HSE+ an external crystal.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

I thought I read somewhere that in this part the USB module was crystal less, and clearly I was embarrasingly wrong. I disabled USB and things got better. 

Thank you!