Skip to main content
DLim.16
Associate III
January 6, 2022
Solved

How to connect 3-4SEL to SPI2_CLK on STWINKT1B Eval Board?

Hi,

I would like to have SPI2_CLK signal available on the CN2 connector (STMod+ interface) on the STWINKT1B eval board. Based on the schematic, looks like one can activate SPI2_CLK signal on STMOD4 via the 3-4SEL pin on the STG3692 digital switch. But I don't know how to do that and what to set up on the STM32CubeIDE side, can someone please help?

Thanks.

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
January 6, 2022

All you need to do is to set 3-4SEL of the STG3692 to 1 (high) to close the switch 3S1 to STMOD4.

3-4SEL is connected to pin B8 (PD1) of the STM32L4R9ZIJ6.

Just insert into your program something like

HAL_GPIO_WritePin(GPIOD, GPIO_PIN_1, GPIO_PIN_SET);

or similar, e.g. using your predefined pin name, to set the pin PD1 to 1.

Good luck!

Regards

/Peter

In order 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.

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
January 6, 2022

All you need to do is to set 3-4SEL of the STG3692 to 1 (high) to close the switch 3S1 to STMOD4.

3-4SEL is connected to pin B8 (PD1) of the STM32L4R9ZIJ6.

Just insert into your program something like

HAL_GPIO_WritePin(GPIOD, GPIO_PIN_1, GPIO_PIN_SET);

or similar, e.g. using your predefined pin name, to set the pin PD1 to 1.

Good luck!

Regards

/Peter

In order 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.
DLim.16
DLim.16Author
Associate III
January 6, 2022

It turns out I have to set pin PF14 instead of PD1 because that's what 3-4SEL is actually connected to. It works now, thanks Peter!

0693W00000HqoG1QAJ.png