Hi, I want to use SPI2 on the STM32H757AIIx, the UFBGA169 package. STM32CubeMX allocates PC2_C pin as SPI2_MISO, but the datasheet only shows ADC2_INN1, ADC3_INP0 as additional functions. SPI2_MISO is not defined on that pin (K13). Which one is correct ? Datasheet or STM32CubeMX ?
No error neither on the datasheet nor in the CubeMx.
That UFBGA169 package doesn’t have PC2 GPIO, but PC2_C. All the alternate functions available on PC2 are available on PC2_C over the analog switch.
The analog switch that connects the internal PC2 (the IO which is not exposed externally to the package) is closed by default in this package so it connects to PC2_C.
See note 3 under the Table 8. STM32H757xI pin/ball definition in the DS12931:
So in your case configure SPI IO on PC2_C in CubeMx and ensure you keep the analog switch closed.
No error neither on the datasheet nor in the CubeMx.
That UFBGA169 package doesn’t have PC2 GPIO, but PC2_C. All the alternate functions available on PC2 are available on PC2_C over the analog switch.
The analog switch that connects the internal PC2 (the IO which is not exposed externally to the package) is closed by default in this package so it connects to PC2_C.
See note 3 under the Table 8. STM32H757xI pin/ball definition in the DS12931:
So in your case configure SPI IO on PC2_C in CubeMx and ensure you keep the analog switch closed.