STM32G431KBU SPI Clock limited to 40MHz by CubeMX?
Hi Community, I'm using CubeMX 5.5.0 to setup my STM32G431KBU application, with these parameters:
SYSCLK = 100MHz
APB2 peripheral clock = 100MHz
SPI1 mode = Full-Duplex Master
Clock Parameters -> Prescaler (for Baud Rate) = 2
then I receive an "Parameter Error" message box:
With this Prescaler value and APB2 Clock Frequency (100.0MHz), Baud Rate is more than: 40.0 MBits/s. Please set Prescaler more than 4.
And with Prescaler=4, I get the Baud Rate=25.0 MBits/s
But according to the manual, the max SPI clock frequency is 75MHz for Master mode, and 50MHz for Master transmitter mode. I want to set Prescaler = 2, to get a 50MHz SPI clock frequency.
Is this a bug of CubeMX?
