STM32Cube MCU Full Package for the STM32H7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Describe the bug
SPI45 does Not have a PCLK1 clock source, it should PCLK2 (and D2PCLK2). You can see that in CubeMX, the first clock source in the MUX is PCLK2:
And also in any H7 reference manual (for example dm00176879 section 9.5.8 Figure 57) you can see SPI45 the only PCLK source available is PCLK2:
So RCC_SPI4CLKSOURCE_D2PCLK1 should be renamed to RCC_SPI4CLKSOURCE_D2PCLK2 and RCC_SPI45CLKSOURCE_PCLK1 to RCC_SPI45CLKSOURCE_PCLK2
I can send a PR to fix that, but not sure if you want to avoid breaking existing code, alternatively for backwards compatibility you might want to consider adding:
Describe the bug SPI45 does Not have a
PCLK1
clock source, it shouldPCLK2
(andD2PCLK2
). You can see that in CubeMX, the first clock source in the MUX is PCLK2:And also in any H7 reference manual (for example
dm00176879
section9.5.8
Figure57
) you can see SPI45 the only PCLK source available is PCLK2:So
RCC_SPI4CLKSOURCE_D2PCLK1
should be renamed toRCC_SPI4CLKSOURCE_D2PCLK2
andRCC_SPI45CLKSOURCE_PCLK1
toRCC_SPI45CLKSOURCE_PCLK2
I can send a PR to fix that, but not sure if you want to avoid breaking existing code, alternatively for backwards compatibility you might want to consider adding: