Clarification about connecting UART and SPI to the STMod+
I am trying to connect an SPI communication device and a UART communication device to my STM32H7B3I-DK using the STMod+. From the datasheet for the discovery board, SPI and UART use the same lines (pin numbers 3 and 4) to connect the connections on the STMod+ to the discovery board. But then after reading the datasheet for the STMod+, it says that pins 2 and 8, and pins 3 and 9 are the same? This is where I'm a bit confused. So here are my questions:
- If I want enable SPI2 only or UART2 only, do I just set this by disabling the one that I don't need in ST32MXCUBE?
- If I want to use both SPI2 and UART2, do I connect the UART device to 2 and 3 and use pins 8 and 9 for the SPI device?
- Do I assume that the UART for the connector esp-01 (CN4) and the connector CN10 on the STMod+ are the same so I can only use one of them at any moment?
I have attached screenshots of the datasheets I'm referring to below. Thank you very much for your help!

