cancel
Showing results for 
Search instead for 
Did you mean: 

Can I configure SPI1 on PA4-7 and USART1 TX on PA9 simultaneously?

briankaz
Associate III

Hello,

I am developing a project using STM32H742VIT6.

I have tentatively tried to configure SPI on PA4-7 outputs and USART1 TX on PA9 simultaneously.  However, when I try to implement this configuration on STM32CubeMX, it automatically places USART1 TX on PB14.

I don't see anything in the documentation restricting what pin combinations SPI1 and USART1 can be configured on...  Is this allowed?  If not, can someone point me where in the documentation these interdependencies can be found?

Thanks!
-Brian

1 REPLY 1
STTwo-32
ST Employee

Hello @briankaz 

There is no restriction on using PA9 as USART1_TX will be using SPI1 on pins 4,5,6,7. 

STTwo32_0-1702621942795.png

Is just CubeMx that will setting the USART1 it configure the TX to the PB15 and the RX to the PB14. 

STTwo32_1-1702622078930.png

All you have to do is to click on the PA9 and check USART1_TX and it will be automatically changed.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.