cancel
Showing results for 
Search instead for 
Did you mean: 

STM32C071 clock config problem in CubeMX

TDJ
Lead

Hi ST,

I’m trying to configure the clocks for the STM32C071GBUx MCU in CubeMX (latest version, 6.17).

This MCU has two SPI interfaces, two UARTs, and two I²C peripherals. However, CubeMX only allows me to configure the clock for one UART, one I²C, and no SPI at all.

Am I missing something?

I’ve attached the complete clock configuration diagram below.

Screen Shot 2026-04-24 at 05.00.59.888 PM.png

Screen Shot 2026-04-24 at 05.03.14.420 PM.png

14 REPLIES 14

Simply catch is datasheet claims independent clock SPI1, but this dont exist in clock tree diagram. Based this on current for this independent block seems ... But back to @TDJ query , simply add to diagram (SPI1) or remove independent info from pdfs



@MM..1 wrote:

simply add to diagram (SPI1) 


Which diagram? datasheet? reference manual? which page?

 


@MM..1 wrote:

or remove independent info from pdfs


Better to indicate which info to be removed in the pdf..

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.

OMG
Diagram i mean MX Clock settings
and independent SPI1 clock is mentioned for example in Table 35 C071 pdf.


@MM..1 wrote:

and independent SPI1 clock is mentioned for example in Table 35 C071 pdf.


I don't see any mention of "independent" wording in Table 35. That table is focusing on power consumption and it shows all the peripherals connected to the different bridges AHB/APB. I don't see why need to remove SPI1 from table 35!

 


@MM..1 wrote:

Diagram i mean MX Clock settings


SPI1 is multiplexed with I2S1:

mALLEm_0-1777394596291.png

Perhaps CubeMx needs to mention SPI1/I2S1 instead of I2S1.

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.

@MM..1 wrote:

and independent SPI1 clock is mentioned for example in Table 35 C071 pdf.


Ok I see it now:

mALLEm_0-1777395426590.png

 

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.