2021-11-02 03:26 AM
Hi ST Support,
I have an STM32H743ZI and use SPI4 for the SPI communication.
I have generated the Project from the Cube MX and configured an SPI clock of 50Mhz, But on the Logic analyzer captures, I can see only the clock of 25Mhz. We are trying to interface with some Slaves where STM32H743ZI is a DMA Master.
It would be great if we get some code that can show us a Clock frequency of 50Mhz on the Logic analyzer.
I am attaching the Cube MX file for reference.
2021-11-02 04:46 AM
Hello,
Please try PLL3Q as SPI4 input source clock, and configure:
DIVM3 : /3
DIVN3 : x96
DIVQ3 : /8
2021-11-02 06:00 AM
Hello Mike,
If the above configurations are done, I am observing a SPI4 clock of 257Mhz with clock errors. But I need only 50Mhz for SPI4 and must see the same on the Logic analyzer.
What must be the input frequency?
If needed you can share me the ioc file with clock config
2021-11-02 06:08 AM
The settings I gave you are derived from the .ioc you attached to this thread.
25 MHz XTAL, and HSE as input for the PLLs.
2021-11-02 06:22 AM
Is this a custom board? Most ST boards have an 8 MHz HSE clock source, not 25 MHz. Perhaps that's what is wrong, although it doesn't fully explain this:
> An SPI clock of 257 MHz
2021-11-07 10:59 PM
Hi,
For the settings that were suggested, It shows a SPI4 clock of 100Mhz. I need it to be 50Mhz and the same to be seen on the Logic analyzer.
2021-11-08 06:01 AM
So increase the prescaler by a factor of 2.